summaryrefslogtreecommitdiff
path: root/sim/testsuite/bfin/b2.S
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/bfin/b2.S')
-rw-r--r--sim/testsuite/bfin/b2.S26
1 files changed, 26 insertions, 0 deletions
diff --git a/sim/testsuite/bfin/b2.S b/sim/testsuite/bfin/b2.S
new file mode 100644
index 00000000000..731f8744604
--- /dev/null
+++ b/sim/testsuite/bfin/b2.S
@@ -0,0 +1,26 @@
+# mach: bfin
+
+#include "test.h"
+.include "testutils.inc"
+ start
+
+ R0 = 0;
+ ASTAT = R0;
+
+ CC = BITTST ( R0 , 0x0 );
+ BITSET( R0 , 0x0 );
+ CC = BITTST ( R0 , 0x0 );
+ CC = ! BITTST( R0 , 0x0 );
+ R1.L = 1;
+ R1.H = 0;
+ CC = R0 == R1;
+ CC = BITTST ( R0 , 0x1 );
+ R5 = ASTAT;
+ CHECKREG R5, (_AC0|_AC0_COPY|_AZ)
+
+ BITSET( R0 , 0x1 );
+ R5 = ASTAT;
+ CHECKREG R5, 0
+ CC = BITTST ( R0 , 0x1 );
+ CC = ! BITTST( R0 , 0x1 );
+ pass