aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/s390x/br-odd.S
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcg/s390x/br-odd.S')
-rw-r--r--tests/tcg/s390x/br-odd.S16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/tcg/s390x/br-odd.S b/tests/tcg/s390x/br-odd.S
new file mode 100644
index 0000000000..2fae47a9e3
--- /dev/null
+++ b/tests/tcg/s390x/br-odd.S
@@ -0,0 +1,16 @@
+/*
+ * Test BRanching to a non-mapped odd address.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+ .globl test
+test:
+ lgrl %r1,odd_addr
+ br %r1
+
+ .align 8
+odd_addr:
+ .quad 0xDDDDDDDDDDDDDDDD
+ .globl expected_old_psw
+expected_old_psw:
+ .quad 0x180000000,0xDDDDDDDDDDDDDDDD