diff options
author | Jozef Kolek <jozef.kolek@imgtec.com> | 2014-11-19 11:49:57 +0000 |
---|---|---|
committer | Jozef Kolek <jozef.kolek@imgtec.com> | 2014-11-19 11:49:57 +0000 |
commit | 55bb54285627a7255f135c4f597d4a3227e466c1 (patch) | |
tree | ff4248537b02499e0beb66ca578ed31875c2b60a /llvm/test/MC | |
parent | 5f95dd2b6580582428c939446809b8aa1dee6480 (diff) | |
download | bcm5719-llvm-55bb54285627a7255f135c4f597d4a3227e466c1.tar.gz bcm5719-llvm-55bb54285627a7255f135c4f597d4a3227e466c1.zip |
[mips][microMIPS] Add disassembler tests for new microMIPS 32-bit
instructions: LWXS, BGEZALS, BLTZALS, BEQZC, BNEZC, JALS and JALRS.
http://reviews.llvm.org/D5413
llvm-svn: 222349
Diffstat (limited to 'llvm/test/MC')
-rw-r--r-- | llvm/test/MC/Disassembler/Mips/micromips.txt | 21 | ||||
-rw-r--r-- | llvm/test/MC/Disassembler/Mips/micromips_le.txt | 21 |
2 files changed, 42 insertions, 0 deletions
diff --git a/llvm/test/MC/Disassembler/Mips/micromips.txt b/llvm/test/MC/Disassembler/Mips/micromips.txt index 1458ce2ed4b..6419455400e 100644 --- a/llvm/test/MC/Disassembler/Mips/micromips.txt +++ b/llvm/test/MC/Disassembler/Mips/micromips.txt @@ -294,3 +294,24 @@ # CHECK: sc $2, 8($4) 0x60 0x44 0xb0 0x08 + +# CHECK: lwxs $2, $3($4) +0x00 0x64 0x11 0x18 + +# CHECK: bgezals $6, 1332 +0x42 0x66 0x02 0x9a + +# CHECK: bltzals $6, 1332 +0x42 0x26 0x02 0x9a + +# CHECK: beqzc $9, 1332 +0x40 0xe9 0x02 0x9a + +# CHECK: bnezc $9, 1332 +0x40 0xa9 0x02 0x9a + +# CHECK: jals 1328 +0x74 0x00 0x02 0x98 + +# CHECK: jalrs $ra, $6 +0x03 0xe6 0x4f 0x3c diff --git a/llvm/test/MC/Disassembler/Mips/micromips_le.txt b/llvm/test/MC/Disassembler/Mips/micromips_le.txt index bdfe88eaffb..e9ca45114e1 100644 --- a/llvm/test/MC/Disassembler/Mips/micromips_le.txt +++ b/llvm/test/MC/Disassembler/Mips/micromips_le.txt @@ -294,3 +294,24 @@ # CHECK: sc $2, 8($4) 0x44 0x60 0x08 0xb0 + +# CHECK: lwxs $2, $3($4) +0x64 0x00 0x18 0x11 + +# CHECK: bgezals $6, 1332 +0x66 0x42 0x9a 0x02 + +# CHECK: bltzals $6, 1332 +0x26 0x42 0x9a 0x02 + +# CHECK: beqzc $9, 1332 +0xe9 0x40 0x9a 0x02 + +# CHECK: bnezc $9, 1332 +0xa9 0x40 0x9a 0x02 + +# CHECK: jals 1328 +0x00 0x74 0x98 0x02 + +# CHECK: jalrs $ra, $6 +0xe6 0x03 0x3c 0x4f |