summaryrefslogtreecommitdiff
path: root/sim/testsuite/d10v-elf/t-rte.s
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/d10v-elf/t-rte.s')
-rw-r--r--sim/testsuite/d10v-elf/t-rte.s18
1 files changed, 18 insertions, 0 deletions
diff --git a/sim/testsuite/d10v-elf/t-rte.s b/sim/testsuite/d10v-elf/t-rte.s
new file mode 100644
index 00000000000..5ce31ddbf41
--- /dev/null
+++ b/sim/testsuite/d10v-elf/t-rte.s
@@ -0,0 +1,18 @@
+.include "t-macros.i"
+
+ start
+
+ PSW_BITS = PSW_C|PSW_F0|PSW_F1
+
+ ldi r6, #success@word
+ mvtc r6, bpc
+ ldi r6, #PSW_BITS
+ mvtc r6, bpsw
+
+test_rte:
+ RTE
+ exit47
+
+success:
+ checkpsw2 1 PSW_BITS
+ exit0