[llvm] r367168 - [mips] Add (dis)assembler tests for beqzl and bnezl instructions. NFC
Simon Atanasyan via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 27 01:13:27 PDT 2019
Author: atanasyan
Date: Sat Jul 27 01:13:27 2019
New Revision: 367168
URL: http://llvm.org/viewvc/llvm-project?rev=367168&view=rev
Log:
[mips] Add (dis)assembler tests for beqzl and bnezl instructions. NFC
Modified:
llvm/trunk/test/MC/Disassembler/Mips/mips2/valid-mips2-el.txt
llvm/trunk/test/MC/Disassembler/Mips/mips2/valid-mips2.txt
llvm/trunk/test/MC/Mips/mips2/valid.s
Modified: llvm/trunk/test/MC/Disassembler/Mips/mips2/valid-mips2-el.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Disassembler/Mips/mips2/valid-mips2-el.txt?rev=367168&r1=367167&r2=367168&view=diff
==============================================================================
--- llvm/trunk/test/MC/Disassembler/Mips/mips2/valid-mips2-el.txt (original)
+++ llvm/trunk/test/MC/Disassembler/Mips/mips2/valid-mips2-el.txt Sat Jul 27 01:13:27 2019
@@ -22,6 +22,7 @@
0x9b 0x14 0xd0 0x04 # CHECK: bltzal $6, 21104
0x00 0x00 0x00 0x00 # CHECK: nop
0x40 0x0c 0xd3 0x51 # CHECK: beql $14, $19, 12548
+0x4d 0x01 0x20 0x51 # CHECK: beqzl $9, 1336
0x1f 0x07 0x93 0x05 # CHECK: bgezall $12, 7296
0x4d 0xf9 0x83 0x04 # CHECK: bgezl $4, -6856
0x59 0xfc 0x40 0x5d # CHECK: bgtzl $10, -3736
@@ -29,6 +30,7 @@
0x7a 0x00 0xd2 0x04 # CHECK: bltzall $6, 492
0x45 0xf6 0x22 0x06 # CHECK: bltzl $17, -9960
0xfc 0x04 0x94 0x57 # CHECK: bnel $gp, $20, 5108
+0x4d 0x01 0x20 0x55 # CHECK: bnezl $9, 1336
0x3b 0xe0 0x3c 0x46 # CHECK: c.ngl.d $f28, $f28
0x39 0x00 0x30 0x46 # CHECK: c.ngle.d $f0, $f16
0x38 0xf0 0x20 0x46 # CHECK: c.sf.d $f30, $f0
Modified: llvm/trunk/test/MC/Disassembler/Mips/mips2/valid-mips2.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Disassembler/Mips/mips2/valid-mips2.txt?rev=367168&r1=367167&r2=367168&view=diff
==============================================================================
--- llvm/trunk/test/MC/Disassembler/Mips/mips2/valid-mips2.txt (original)
+++ llvm/trunk/test/MC/Disassembler/Mips/mips2/valid-mips2.txt Sat Jul 27 01:13:27 2019
@@ -147,7 +147,9 @@
0x46 0x80 0x5e 0xa1 # CHECK: cvt.d.w $f26, $f11
0x46 0x80 0x7d 0xa0 # CHECK: cvt.s.w $f22, $f15
0x51 0xd3 0x0c 0x40 # CHECK: beql $14, $19, 12548
+0x51 0x20 0x01 0x4e # CHECK: beqzl $9, 1340
0x57 0x94 0x04 0xfc # CHECK: bnel $gp, $20, 5108
+0x55 0x20 0x01 0x4d # CHECK: bnezl $9, 1336
0x58 0xc0 0x02 0xe7 # CHECK: blezl $6, 2976
0x5d 0x40 0xfc 0x59 # CHECK: bgtzl $10, -3736
0x81 0x58 0xc7 0x4d # CHECK: lb $24, -14515($10)
Modified: llvm/trunk/test/MC/Mips/mips2/valid.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Mips/mips2/valid.s?rev=367168&r1=367167&r2=367168&view=diff
==============================================================================
--- llvm/trunk/test/MC/Mips/mips2/valid.s (original)
+++ llvm/trunk/test/MC/Mips/mips2/valid.s Sat Jul 27 01:13:27 2019
@@ -32,6 +32,7 @@ a:
bgezal $6, 21100 # CHECK: bgezal $6, 21100 # encoding: [0x04,0xd1,0x14,0x9b]
bltzal $6, 21100 # CHECK: bltzal $6, 21100 # encoding: [0x04,0xd0,0x14,0x9b]
beql $14,$s3,12544 # CHECK: beql $14, $19, 12544 # encoding: [0x51,0xd3,0x0c,0x40]
+ beqzl $14,12544 # CHECK: beqzl $14, 12544 # encoding: [0x51,0xc0,0x0c,0x40]
bgezall $12,7293 # CHECK: bgezall $12, 7293 # encoding: [0x05,0x93,0x07,0x1f]
bgezl $4,-6858 # CHECK: bgezl $4, -6858 # encoding: [0x04,0x83,0xf9,0x4d]
bgtzl $10,-3738 # CHECK: bgtzl $10, -3738 # encoding: [0x5d,0x40,0xfc,0x59]
@@ -39,6 +40,7 @@ a:
bltzall $6,488 # CHECK: bltzall $6, 488 # encoding: [0x04,0xd2,0x00,0x7a]
bltzl $s1,-9964 # CHECK: bltzl $17, -9964 # encoding: [0x06,0x22,0xf6,0x45]
bnel $gp,$s4,5107 # CHECK: bnel $gp, $20, 5107 # encoding: [0x57,0x94,0x04,0xfc]
+ bnezl $gp,5107 # CHECK: bnezl $gp, 5107 # encoding: [0x57,0x80,0x04,0xfc]
c.ngl.d $f29,$f29
c.ngle.d $f0,$f16
c.sf.d $f30,$f0
More information about the llvm-commits
mailing list