summary refs log tree commit diff stats
path: root/tests/tcg/s390x/clrl-unaligned.S
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcg/s390x/clrl-unaligned.S')
-rw-r--r--tests/tcg/s390x/clrl-unaligned.S16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/tcg/s390x/clrl-unaligned.S b/tests/tcg/s390x/clrl-unaligned.S
new file mode 100644
index 0000000000..182b1b6462
--- /dev/null
+++ b/tests/tcg/s390x/clrl-unaligned.S
@@ -0,0 +1,16 @@
+/*
+ * Test CLRL with a non-word aligned address.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+    .globl test
+test:
+    clrl %r1,unaligned
+
+    .align 8
+    .globl expected_old_psw
+expected_old_psw:
+    .quad 0x180000000,test
+    .short 0
+unaligned:
+    .long 0