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 | 03a8d2f8ecdbfd531d712e4b0ca0b66c091405db (patch) | |
tree | 58af7d8ed67b2cf4f1cc6a2a2e2963b81f7c03b3 /llvm/test/MC/Mips/mips4 | |
parent | 29620aca3e85cb16434069c86b43a4baf8accc67 (diff) | |
download | bcm5719-llvm-03a8d2f8ecdbfd531d712e4b0ca0b66c091405db.tar.gz bcm5719-llvm-03a8d2f8ecdbfd531d712e4b0ca0b66c091405db.zip |
[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
llvm-svn: 262231
Diffstat (limited to 'llvm/test/MC/Mips/mips4')
-rw-r--r-- | llvm/test/MC/Mips/mips4/valid.s | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/test/MC/Mips/mips4/valid.s b/llvm/test/MC/Mips/mips4/valid.s index 12b5ec8201c..625453dded6 100644 --- a/llvm/test/MC/Mips/mips4/valid.s +++ b/llvm/test/MC/Mips/mips4/valid.s @@ -239,6 +239,8 @@ a: swr $s1,-26590($14) swxc1 $f19,$12($k0) sync # CHECK: sync # encoding: [0x00,0x00,0x00,0x0f] + 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 |