[llvm] r304200 - [SystemZ] Add missing assembler/disassembler tests
Ulrich Weigand via llvm-commits
llvm-commits at lists.llvm.org
Tue May 30 03:11:14 PDT 2017
Author: uweigand
Date: Tue May 30 05:11:13 2017
New Revision: 304200
URL: http://llvm.org/viewvc/llvm-project?rev=304200&view=rev
Log:
[SystemZ] Add missing assembler/disassembler tests
A few instructions that are actually correctly supported in the
assembler and disassembler did not have any tests.
Modified:
llvm/trunk/test/MC/Disassembler/SystemZ/insns.txt
llvm/trunk/test/MC/SystemZ/insn-bad.s
llvm/trunk/test/MC/SystemZ/insn-good.s
Modified: llvm/trunk/test/MC/Disassembler/SystemZ/insns.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Disassembler/SystemZ/insns.txt?rev=304200&r1=304199&r2=304200&view=diff
==============================================================================
--- llvm/trunk/test/MC/Disassembler/SystemZ/insns.txt (original)
+++ llvm/trunk/test/MC/Disassembler/SystemZ/insns.txt Tue May 30 05:11:13 2017
@@ -8089,6 +8089,72 @@
# CHECK: ltxbr %f13, %f9
0xb3 0x42 0x00 0xd9
+# CHECK: lxdb %f0, 0
+0xed 0x00 0x00 0x00 0x00 0x05
+
+# CHECK: lxdb %f0, 4095
+0xed 0x00 0x0f 0xff 0x00 0x05
+
+# CHECK: lxdb %f0, 0(%r1)
+0xed 0x00 0x10 0x00 0x00 0x05
+
+# CHECK: lxdb %f0, 0(%r15)
+0xed 0x00 0xf0 0x00 0x00 0x05
+
+# CHECK: lxdb %f0, 4095(%r1,%r15)
+0xed 0x01 0xff 0xff 0x00 0x05
+
+# CHECK: lxdb %f0, 4095(%r15,%r1)
+0xed 0x0f 0x1f 0xff 0x00 0x05
+
+# CHECK: lxdb %f13, 0
+0xed 0xd0 0x00 0x00 0x00 0x05
+
+# CHECK: lxdbr %f0, %f8
+0xb3 0x05 0x00 0x08
+
+# CHECK: lxdbr %f0, %f13
+0xb3 0x05 0x00 0x0d
+
+# CHECK: lxdbr %f13, %f0
+0xb3 0x05 0x00 0xd0
+
+# CHECK: lxdbr %f13, %f15
+0xb3 0x05 0x00 0xdf
+
+# CHECK: lxeb %f0, 0
+0xed 0x00 0x00 0x00 0x00 0x06
+
+# CHECK: lxeb %f0, 4095
+0xed 0x00 0x0f 0xff 0x00 0x06
+
+# CHECK: lxeb %f0, 0(%r1)
+0xed 0x00 0x10 0x00 0x00 0x06
+
+# CHECK: lxeb %f0, 0(%r15)
+0xed 0x00 0xf0 0x00 0x00 0x06
+
+# CHECK: lxeb %f0, 4095(%r1,%r15)
+0xed 0x01 0xff 0xff 0x00 0x06
+
+# CHECK: lxeb %f0, 4095(%r15,%r1)
+0xed 0x0f 0x1f 0xff 0x00 0x06
+
+# CHECK: lxeb %f13, 0
+0xed 0xd0 0x00 0x00 0x00 0x06
+
+# CHECK: lxebr %f0, %f8
+0xb3 0x06 0x00 0x08
+
+# CHECK: lxebr %f0, %f13
+0xb3 0x06 0x00 0x0d
+
+# CHECK: lxebr %f13, %f0
+0xb3 0x06 0x00 0xd0
+
+# CHECK: lxebr %f13, %f15
+0xb3 0x06 0x00 0xdf
+
# CHECK: lxr %f0, %f8
0xb3 0x65 0x00 0x08
Modified: llvm/trunk/test/MC/SystemZ/insn-bad.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/SystemZ/insn-bad.s?rev=304200&r1=304199&r2=304200&view=diff
==============================================================================
--- llvm/trunk/test/MC/SystemZ/insn-bad.s (original)
+++ llvm/trunk/test/MC/SystemZ/insn-bad.s Tue May 30 05:11:13 2017
@@ -3191,6 +3191,38 @@
ltxbr %f0, %f14
ltxbr %f14, %f0
+#CHECK: error: invalid operand
+#CHECK: lxdb %f0, -1
+#CHECK: error: invalid operand
+#CHECK: lxdb %f0, 4096
+#CHECK: error: invalid register pair
+#CHECK: lxdb %f2, 0
+
+ lxdb %f0, -1
+ lxdb %f0, 4096
+ lxdb %f2, 0
+
+#CHECK: error: invalid register pair
+#CHECK: lxdbr %f2, %f0
+
+ lxdbr %f2, %f0
+
+#CHECK: error: invalid operand
+#CHECK: lxeb %f0, -1
+#CHECK: error: invalid operand
+#CHECK: lxeb %f0, 4096
+#CHECK: error: invalid register pair
+#CHECK: lxeb %f2, 0
+
+ lxeb %f0, -1
+ lxeb %f0, 4096
+ lxeb %f2, 0
+
+#CHECK: error: invalid register pair
+#CHECK: lxebr %f2, %f0
+
+ lxebr %f2, %f0
+
#CHECK: error: invalid register pair
#CHECK: lxr %f0, %f2
#CHECK: error: invalid register pair
Modified: llvm/trunk/test/MC/SystemZ/insn-good.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/SystemZ/insn-good.s?rev=304200&r1=304199&r2=304200&view=diff
==============================================================================
--- llvm/trunk/test/MC/SystemZ/insn-good.s (original)
+++ llvm/trunk/test/MC/SystemZ/insn-good.s Tue May 30 05:11:13 2017
@@ -8698,6 +8698,56 @@
ltxbr %f13,%f0
ltxbr %f13,%f9
+#CHECK: lxdb %f0, 4095 # encoding: [0xed,0x00,0x0f,0xff,0x00,0x05]
+#CHECK: lxdb %f0, 0(%r1) # encoding: [0xed,0x00,0x10,0x00,0x00,0x05]
+#CHECK: lxdb %f0, 0(%r15) # encoding: [0xed,0x00,0xf0,0x00,0x00,0x05]
+#CHECK: lxdb %f0, 4095(%r1,%r15) # encoding: [0xed,0x01,0xff,0xff,0x00,0x05]
+#CHECK: lxdb %f0, 4095(%r15,%r1) # encoding: [0xed,0x0f,0x1f,0xff,0x00,0x05]
+#CHECK: lxdb %f13, 0 # encoding: [0xed,0xd0,0x00,0x00,0x00,0x05]
+
+ lxdb %f0, 0
+ lxdb %f0, 4095
+ lxdb %f0, 0(%r1)
+ lxdb %f0, 0(%r15)
+ lxdb %f0, 4095(%r1,%r15)
+ lxdb %f0, 4095(%r15,%r1)
+ lxdb %f13, 0
+
+#CHECK: lxdbr %f0, %f8 # encoding: [0xb3,0x05,0x00,0x08]
+#CHECK: lxdbr %f0, %f13 # encoding: [0xb3,0x05,0x00,0x0d]
+#CHECK: lxdbr %f13, %f0 # encoding: [0xb3,0x05,0x00,0xd0]
+#CHECK: lxdbr %f13, %f15 # encoding: [0xb3,0x05,0x00,0xdf]
+
+ lxdbr %f0,%f8
+ lxdbr %f0,%f13
+ lxdbr %f13,%f0
+ lxdbr %f13,%f15
+
+#CHECK: lxeb %f0, 4095 # encoding: [0xed,0x00,0x0f,0xff,0x00,0x06]
+#CHECK: lxeb %f0, 0(%r1) # encoding: [0xed,0x00,0x10,0x00,0x00,0x06]
+#CHECK: lxeb %f0, 0(%r15) # encoding: [0xed,0x00,0xf0,0x00,0x00,0x06]
+#CHECK: lxeb %f0, 4095(%r1,%r15) # encoding: [0xed,0x01,0xff,0xff,0x00,0x06]
+#CHECK: lxeb %f0, 4095(%r15,%r1) # encoding: [0xed,0x0f,0x1f,0xff,0x00,0x06]
+#CHECK: lxeb %f13, 0 # encoding: [0xed,0xd0,0x00,0x00,0x00,0x06]
+
+ lxeb %f0, 0
+ lxeb %f0, 4095
+ lxeb %f0, 0(%r1)
+ lxeb %f0, 0(%r15)
+ lxeb %f0, 4095(%r1,%r15)
+ lxeb %f0, 4095(%r15,%r1)
+ lxeb %f13, 0
+
+#CHECK: lxebr %f0, %f8 # encoding: [0xb3,0x06,0x00,0x08]
+#CHECK: lxebr %f0, %f13 # encoding: [0xb3,0x06,0x00,0x0d]
+#CHECK: lxebr %f13, %f0 # encoding: [0xb3,0x06,0x00,0xd0]
+#CHECK: lxebr %f13, %f15 # encoding: [0xb3,0x06,0x00,0xdf]
+
+ lxebr %f0,%f8
+ lxebr %f0,%f13
+ lxebr %f13,%f0
+ lxebr %f13,%f15
+
#CHECK: lxr %f0, %f8 # encoding: [0xb3,0x65,0x00,0x08]
#CHECK: lxr %f0, %f13 # encoding: [0xb3,0x65,0x00,0x0d]
#CHECK: lxr %f13, %f0 # encoding: [0xb3,0x65,0x00,0xd0]
More information about the llvm-commits
mailing list