diff options
Diffstat (limited to 'sim/testsuite/sim/bfin/ashift_left.s')
-rw-r--r-- | sim/testsuite/sim/bfin/ashift_left.s | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sim/testsuite/sim/bfin/ashift_left.s b/sim/testsuite/sim/bfin/ashift_left.s new file mode 100644 index 0000000..04cfa40 --- /dev/null +++ b/sim/testsuite/sim/bfin/ashift_left.s @@ -0,0 +1,17 @@ +# Blackfin testcase for left ashift +# Dreg = Dreg << imm (S); +# mach: bfin + + .include "testutils.inc" + + .macro test in:req, shift:req, out:req, opt + imm32 r0, \in; + r1 = r0 >>> \shift \opt; + CHECKREG r1, \out; + .endm + + start + +test 2, 1, 1, (S); + + pass |