summaryrefslogtreecommitdiff
path: root/test/MC/Disassembler/SystemZ/insn-lhi.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/Disassembler/SystemZ/insn-lhi.txt')
-rw-r--r--test/MC/Disassembler/SystemZ/insn-lhi.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/MC/Disassembler/SystemZ/insn-lhi.txt b/test/MC/Disassembler/SystemZ/insn-lhi.txt
new file mode 100644
index 0000000000..fbb10f5497
--- /dev/null
+++ b/test/MC/Disassembler/SystemZ/insn-lhi.txt
@@ -0,0 +1,18 @@
+# RUN: llvm-mc --disassemble %s -triple=s390x-linux-gnu | FileCheck %s
+# CHECK: lhi %r0, -32768
+0xa7 0x08 0x80 0x00
+
+# CHECK: lhi %r0, -1
+0xa7 0x08 0xff 0xff
+
+# CHECK: lhi %r0, 0
+0xa7 0x08 0x00 0x00
+
+# CHECK: lhi %r0, 1
+0xa7 0x08 0x00 0x01
+
+# CHECK: lhi %r0, 32767
+0xa7 0x08 0x7f 0xff
+
+# CHECK: lhi %r15, 0
+0xa7 0xf8 0x00 0x00