diff options
author | Daniel Sanders <daniel.sanders@imgtec.com> | 2016-02-29 16:06:38 +0000 |
---|---|---|
committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2016-02-29 16:06:38 +0000 |
commit | e4011df11c0f3481eac82e6d7d25d51325c213f7 (patch) | |
tree | 021958777d6fcef5db5241d8015681cd4890dce7 /test/MC/Mips/mips64r2 | |
parent | 0b84c67b0b7bd611a0b48b61a99d30448d5c58b1 (diff) |
[mips] Range check uimm20 and fixed a bug this revealed.
Summary:
The bug was that dextu's operand 3 would print 0-31 instead of 32-63 when
printing assembly. This came up when replacing
MipsInstPrinter::printUnsignedImm() with a version that could handle arbitrary
bit widths.
MipsAsmPrinter::printUnsignedImm*() don't seem to be used so they have been
removed.
Reviewers: vkalintiris
Subscribers: dsanders, llvm-commits
Differential Revision: http://reviews.llvm.org/D15521
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@262231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Mips/mips64r2')
-rw-r--r-- | test/MC/Mips/mips64r2/valid.s | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/MC/Mips/mips64r2/valid.s b/test/MC/Mips/mips64r2/valid.s index 815e6f0b1c2d..a7af903a9d48 100644 --- a/test/MC/Mips/mips64r2/valid.s +++ b/test/MC/Mips/mips64r2/valid.s @@ -286,6 +286,8 @@ a: swxc1 $f19,$12($k0) sync # CHECK: sync # encoding: [0x00,0x00,0x00,0x0f] sync 1 # CHECK: sync 1 # encoding: [0x00,0x00,0x00,0x4f] + syscall # CHECK: syscall # encoding: [0x00,0x00,0x00,0x0c] + syscall 256 # CHECK: syscall 256 # encoding: [0x00,0x00,0x40,0x0c] teq $0,$3 # CHECK: teq $zero, $3 # encoding: [0x00,0x03,0x00,0x34] teq $5,$7,620 # CHECK: teq $5, $7, 620 # encoding: [0x00,0xa7,0x9b,0x34] teqi $s5,-17504 |