From 407eb9ebdda7a492409241d601ff65cddb540ebb Mon Sep 17 00:00:00 2001 From: Jozef Kolek Date: Wed, 19 Nov 2014 11:49:57 +0000 Subject: [PATCH] [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 --- test/MC/Disassembler/Mips/micromips.txt | 21 +++++++++++++++++++++ test/MC/Disassembler/Mips/micromips_le.txt | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/test/MC/Disassembler/Mips/micromips.txt b/test/MC/Disassembler/Mips/micromips.txt index 1458ce2ed4b..6419455400e 100644 --- a/test/MC/Disassembler/Mips/micromips.txt +++ b/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/test/MC/Disassembler/Mips/micromips_le.txt b/test/MC/Disassembler/Mips/micromips_le.txt index bdfe88eaffb..e9ca45114e1 100644 --- a/test/MC/Disassembler/Mips/micromips_le.txt +++ b/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