summaryrefslogtreecommitdiff
path: root/test/MC/Disassembler/SystemZ/insn-xy.txt
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-05-14 10:17:52 +0000
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-05-14 10:17:52 +0000
commitc3b20c260ee17a66c6306f81293c75681d8ea0aa (patch)
treefdc283d6c8468f22fb87cf0b90cf4abf46cf7170 /test/MC/Disassembler/SystemZ/insn-xy.txt
parent5096dc74ae0df903d54085af3a57fa66b382493c (diff)
downloadllvm-c3b20c260ee17a66c6306f81293c75681d8ea0aa.tar.gz
llvm-c3b20c260ee17a66c6306f81293c75681d8ea0aa.tar.bz2
llvm-c3b20c260ee17a66c6306f81293c75681d8ea0aa.tar.xz
[SystemZ] Add disassembler support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Disassembler/SystemZ/insn-xy.txt')
-rw-r--r--test/MC/Disassembler/SystemZ/insn-xy.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/MC/Disassembler/SystemZ/insn-xy.txt b/test/MC/Disassembler/SystemZ/insn-xy.txt
new file mode 100644
index 0000000000..dea20278c5
--- /dev/null
+++ b/test/MC/Disassembler/SystemZ/insn-xy.txt
@@ -0,0 +1,30 @@
+# RUN: llvm-mc --disassemble %s -triple=s390x-linux-gnu | FileCheck %s
+# CHECK: xy %r0, -524288
+0xe3 0x00 0x00 0x00 0x80 0x57
+
+# CHECK: xy %r0, -1
+0xe3 0x00 0x0f 0xff 0xff 0x57
+
+# CHECK: xy %r0, 0
+0xe3 0x00 0x00 0x00 0x00 0x57
+
+# CHECK: xy %r0, 1
+0xe3 0x00 0x00 0x01 0x00 0x57
+
+# CHECK: xy %r0, 524287
+0xe3 0x00 0x0f 0xff 0x7f 0x57
+
+# CHECK: xy %r0, 0(%r1)
+0xe3 0x00 0x10 0x00 0x00 0x57
+
+# CHECK: xy %r0, 0(%r15)
+0xe3 0x00 0xf0 0x00 0x00 0x57
+
+# CHECK: xy %r0, 524287(%r1,%r15)
+0xe3 0x01 0xff 0xff 0x7f 0x57
+
+# CHECK: xy %r0, 524287(%r15,%r1)
+0xe3 0x0f 0x1f 0xff 0x7f 0x57
+
+# CHECK: xy %r15, 0
+0xe3 0xf0 0x00 0x00 0x00 0x57