diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2005-11-21 04:48:19 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2005-11-21 04:48:19 +0000 |
commit | 33362918bffa49495556d4f1eb5fc4e5a0808398 (patch) | |
tree | c6c154eb0da40a03d2ddb5bdb5c6b0bd62695aba /sim/testsuite/sim/cris/asm/x9-v10.ms | |
parent | 4e1c23a559814a39fc0278a1a8e8ef70a1eaa055 (diff) | |
download | gdb-33362918bffa49495556d4f1eb5fc4e5a0808398.tar.gz |
* sim/cris: New directory with C and assembly tests for the CRIS
simulator.
Diffstat (limited to 'sim/testsuite/sim/cris/asm/x9-v10.ms')
-rw-r--r-- | sim/testsuite/sim/cris/asm/x9-v10.ms | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sim/testsuite/sim/cris/asm/x9-v10.ms b/sim/testsuite/sim/cris/asm/x9-v10.ms new file mode 100644 index 00000000000..68472beed67 --- /dev/null +++ b/sim/testsuite/sim/cris/asm/x9-v10.ms @@ -0,0 +1,23 @@ +#mach: crisv10 +#ld: --section-start=.text=0 +#output: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 * ixnzvc 0\n +#output: 4 0 0 0 0 0 0 0 0 0 1 0 0 0 0 * ixnzvc 1\n +#output: 10 0 0 0 0 0 0 0 0 0 1 0 0 0 0 * ixnzvc 4\n +#output: 12 0 0 0 0 0 0 0 0 0 1 0 0 0 0 * ixnzvc 1\n +#sim: --cris-trace=basic + +; Check that "adds.w [$pc+$r9.w],$pc" gets 4 cycles. + + .include "testutils.inc" + startnostack + moveq 1,r9 + adds.w [$pc+$r9.w],$pc +0: + .word 1f-0b + .word 2f-0b + .word 1f-0b +1: + break 15 +2: + nop + break 15 |