diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-02-15 23:21:19 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-02-15 23:21:19 +0000 |
commit | b104806fd3d786560fcb451fb7c8a46a95f0fc79 (patch) | |
tree | ce2759f1a2c888a604c3013a516b73955c8bec25 /sim/testsuite/d10v-elf/t-rdt.s | |
parent | 97908603a4b9f1d8b0a58d72b881245b889fac1f (diff) | |
download | binutils-b104806fd3d786560fcb451fb7c8a46a95f0fc79.zip binutils-b104806fd3d786560fcb451fb7c8a46a95f0fc79.tar.gz binutils-b104806fd3d786560fcb451fb7c8a46a95f0fc79.tar.bz2 |
Test the RDT and DBT instructions.
Diffstat (limited to 'sim/testsuite/d10v-elf/t-rdt.s')
-rw-r--r-- | sim/testsuite/d10v-elf/t-rdt.s | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sim/testsuite/d10v-elf/t-rdt.s b/sim/testsuite/d10v-elf/t-rdt.s new file mode 100644 index 0000000..661b583 --- /dev/null +++ b/sim/testsuite/d10v-elf/t-rdt.s @@ -0,0 +1,18 @@ +.include "t-macros.i" + + start + + PSW_BITS = PSW_C|PSW_F0|PSW_F1 + + ldi r6, #success@word + mvtc r6, dpc + ldi r6, #PSW_BITS + mvtc r6, dpsw + +test_rdt: + RTD + exit47 + +success: + checkpsw2 1 PSW_BITS + exit0 |