summaryrefslogtreecommitdiff
path: root/sim/testsuite/bfin/a0.s
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/bfin/a0.s')
-rw-r--r--sim/testsuite/bfin/a0.s17
1 files changed, 17 insertions, 0 deletions
diff --git a/sim/testsuite/bfin/a0.s b/sim/testsuite/bfin/a0.s
new file mode 100644
index 00000000000..3bc78d62fa2
--- /dev/null
+++ b/sim/testsuite/bfin/a0.s
@@ -0,0 +1,17 @@
+# mach: bfin
+
+.include "testutils.inc"
+ start
+
+ R0 = 1;
+ R0 <<= 1;
+ DBGA ( R0.L , 2 );
+ R0 <<= 1;
+ DBGA ( R0.L , 4 );
+ R0 <<= 3;
+ DBGA ( R0.L , 32 );
+ R0 += 5;
+ DBGA ( R0.L , 37 );
+ R0 += -7;
+ DBGA ( R0.L , 30 );
+ pass