aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/v850eq-elf/t-ldsr.s
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/v850eq-elf/t-ldsr.s')
-rw-r--r--sim/testsuite/v850eq-elf/t-ldsr.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/sim/testsuite/v850eq-elf/t-ldsr.s b/sim/testsuite/v850eq-elf/t-ldsr.s
new file mode 100644
index 0000000..41b7720
--- /dev/null
+++ b/sim/testsuite/v850eq-elf/t-ldsr.s
@@ -0,0 +1,13 @@
+.include "t-macros.i"
+
+ start
+
+ # check that a ldsr/stsr instruction clears reserved bits
+ mov -1, r1
+ ldsr r1, psw
+ stsr psw, r2
+ sub r1, r2
+ be bad
+ exit0
+bad:
+ exit47