aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/s390x/cgrl-unaligned.S
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcg/s390x/cgrl-unaligned.S')
-rw-r--r--tests/tcg/s390x/cgrl-unaligned.S16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/tcg/s390x/cgrl-unaligned.S b/tests/tcg/s390x/cgrl-unaligned.S
new file mode 100644
index 0000000000..164d68f2e6
--- /dev/null
+++ b/tests/tcg/s390x/cgrl-unaligned.S
@@ -0,0 +1,16 @@
+/*
+ * Test CGRL with a non-doubleword aligned address.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+ .globl test
+test:
+ cgrl %r1,unaligned
+
+ .align 8
+ .globl expected_old_psw
+expected_old_psw:
+ .quad 0x180000000,test
+ .long 0
+unaligned:
+ .quad 0