summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Mips/micromips-16-bit-instructions.s
diff options
context:
space:
mode:
authorJozef Kolek <jozef.kolek@imgtec.com>2014-11-26 18:56:38 +0000
committerJozef Kolek <jozef.kolek@imgtec.com>2014-11-26 18:56:38 +0000
commit315e7eca1b7b796394fafbb4c43f167a9e5330df (patch)
tree7ff25a20ccb6b3d5fe653a713d4a043417eb4567 /llvm/test/MC/Mips/micromips-16-bit-instructions.s
parent31abe337268c5f0fe8a901c6c2d10a75718d0b81 (diff)
downloadbcm5719-llvm-315e7eca1b7b796394fafbb4c43f167a9e5330df.tar.gz
bcm5719-llvm-315e7eca1b7b796394fafbb4c43f167a9e5330df.zip
[mips][microMIPS] Implement disassembler support for 16-bit instructions LBU16, LHU16, LW16, SB16, SH16 and SW16
Differential Revision: http://reviews.llvm.org/D6405 llvm-svn: 222847
Diffstat (limited to 'llvm/test/MC/Mips/micromips-16-bit-instructions.s')
-rw-r--r--llvm/test/MC/Mips/micromips-16-bit-instructions.s3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/MC/Mips/micromips-16-bit-instructions.s b/llvm/test/MC/Mips/micromips-16-bit-instructions.s
index f8095b1b03b..2dfec7938d4 100644
--- a/llvm/test/MC/Mips/micromips-16-bit-instructions.s
+++ b/llvm/test/MC/Mips/micromips-16-bit-instructions.s
@@ -19,6 +19,7 @@
# CHECK-EL: sll16 $3, $16, 5 # encoding: [0x8a,0x25]
# CHECK-EL: srl16 $4, $17, 6 # encoding: [0x1d,0x26]
# CHECK-EL: lbu16 $3, 4($17) # encoding: [0x94,0x09]
+# CHECK-EL: lbu16 $3, -1($16) # encoding: [0x8f,0x09]
# CHECK-EL: lhu16 $3, 4($16) # encoding: [0x82,0x29]
# CHECK-EL: lw16 $4, 8($17) # encoding: [0x12,0x6a]
# CHECK-EL: sb16 $3, 4($16) # encoding: [0x84,0x89]
@@ -55,6 +56,7 @@
# CHECK-EB: sll16 $3, $16, 5 # encoding: [0x25,0x8a]
# CHECK-EB: srl16 $4, $17, 6 # encoding: [0x26,0x1d]
# CHECK-EB: lbu16 $3, 4($17) # encoding: [0x09,0x94]
+# CHECK-EB: lbu16 $3, -1($16) # encoding: [0x09,0x8f]
# CHECK-EB: lhu16 $3, 4($16) # encoding: [0x29,0x82]
# CHECK-EB: lw16 $4, 8($17) # encoding: [0x6a,0x12]
# CHECK-EB: sb16 $3, 4($16) # encoding: [0x89,0x84]
@@ -89,6 +91,7 @@
sll16 $3, $16, 5
srl16 $4, $17, 6
lbu16 $3, 4($17)
+ lbu16 $3, -1($16)
lhu16 $3, 4($16)
lw16 $4, 8($17)
sb16 $3, 4($16)
OpenPOWER on IntegriCloud