aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/SystemZ/insn-bad.s
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-10-01 12:22:49 +0000
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-10-01 12:22:49 +0000
commit9813dbf396e63f6d4fd99fe0f6651e831cb7414b (patch)
tree6ad5a9f5502149ac3e65afd8654182584b78bccb /test/MC/SystemZ/insn-bad.s
parent9a05f040e70494ab0092faa9ed10dc70ff1f4e66 (diff)
downloadexternal_llvm-9813dbf396e63f6d4fd99fe0f6651e831cb7414b.zip
external_llvm-9813dbf396e63f6d4fd99fe0f6651e831cb7414b.tar.gz
external_llvm-9813dbf396e63f6d4fd99fe0f6651e831cb7414b.tar.bz2
[SystemZ] Add truncating high-word stores (STCH and STHH)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191743 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/SystemZ/insn-bad.s')
-rw-r--r--test/MC/SystemZ/insn-bad.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/SystemZ/insn-bad.s b/test/MC/SystemZ/insn-bad.s
index 3a46c48..3fe3f4d 100644
--- a/test/MC/SystemZ/insn-bad.s
+++ b/test/MC/SystemZ/insn-bad.s
@@ -2915,6 +2915,11 @@
stc %r0, -1
stc %r0, 4096
+#CHECK: error: {{(instruction requires: high-word)?}}
+#CHECK: stch %r0, 0
+
+ stch %r0, 0
+
#CHECK: error: invalid operand
#CHECK: stcy %r0, -524289
#CHECK: error: invalid operand
@@ -2985,6 +2990,11 @@
sth %r0, -1
sth %r0, 4096
+#CHECK: error: {{(instruction requires: high-word)?}}
+#CHECK: sthh %r0, 0
+
+ sthh %r0, 0
+
#CHECK: error: offset out of range
#CHECK: sthrl %r0, -0x1000000002
#CHECK: error: offset out of range