diff options
author | Ben Elliston <bje@au.ibm.com> | 2002-02-01 11:44:32 +0000 |
---|---|---|
committer | Ben Elliston <bje@au.ibm.com> | 2002-02-01 11:44:32 +0000 |
commit | 3da25b5a2a8931f5143b423021e4e95f57c78c52 (patch) | |
tree | 8cfe23621092082a7b1f18f9cd5bd7287fe47807 /sim/testsuite/sim/sh64/compact/shll16.cgs | |
parent | a50dc7f4d7e5d1474295a119df0c4ec7c715f277 (diff) | |
download | gdb-3da25b5a2a8931f5143b423021e4e95f57c78c52.tar.gz |
* Contribute Hitachi SH5 simulator.
Diffstat (limited to 'sim/testsuite/sim/sh64/compact/shll16.cgs')
-rw-r--r-- | sim/testsuite/sim/sh64/compact/shll16.cgs | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/sim/testsuite/sim/sh64/compact/shll16.cgs b/sim/testsuite/sim/sh64/compact/shll16.cgs new file mode 100644 index 00000000000..0637c3de706 --- /dev/null +++ b/sim/testsuite/sim/sh64/compact/shll16.cgs @@ -0,0 +1,44 @@ +# sh testcase for shll16 $rn -*- Asm -*- +# mach: all +# as: -isa=shcompact +# ld: -m shelf32 + + .include "compact/testutils.inc" + + start + + .global shll16 +shll16: + mov #108, r1 + shll16 r1 + shll16 r1 + assert r1, #0 + +another: + mov #1, r1 + shll16 r1 + mov #1, r7 + shll r7 + shll r7 + shll r7 + shll r7 + shll r7 + shll r7 + shll r7 + shll r7 + shll r7 + shll r7 + shll r7 + shll r7 + shll r7 + shll r7 + shll r7 + shll r7 + cmp/eq r1, r7 + bf wrong + +okay: + pass + +wrong: + fail |