aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/v850eq-elf/t-zxh.s
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/v850eq-elf/t-zxh.s')
-rw-r--r--sim/testsuite/v850eq-elf/t-zxh.s15
1 files changed, 15 insertions, 0 deletions
diff --git a/sim/testsuite/v850eq-elf/t-zxh.s b/sim/testsuite/v850eq-elf/t-zxh.s
new file mode 100644
index 0000000..512472e
--- /dev/null
+++ b/sim/testsuite/v850eq-elf/t-zxh.s
@@ -0,0 +1,15 @@
+.include "t-macros.i"
+
+ start
+
+ load r2 0xffff8000
+test_zxh:
+ zxh r2
+ check r2 0x80
+
+ load r2 0xffff7fff
+test_zxh2:
+ zxh r2
+ check r2 0x7fff
+
+ exit0