summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/m32r/mvfc.cgs
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/sim/m32r/mvfc.cgs')
-rw-r--r--sim/testsuite/sim/m32r/mvfc.cgs23
1 files changed, 23 insertions, 0 deletions
diff --git a/sim/testsuite/sim/m32r/mvfc.cgs b/sim/testsuite/sim/m32r/mvfc.cgs
new file mode 100644
index 00000000000..ca2470e1e2d
--- /dev/null
+++ b/sim/testsuite/sim/m32r/mvfc.cgs
@@ -0,0 +1,23 @@
+# m32r testcase for mvfc $dr,$scr
+# mach(): m32r m32rx
+
+ .include "testutils.inc"
+
+ start
+
+ .global mvfc
+mvfc:
+ mvi_h_condbit 0
+ mvi_h_gr r4, 1
+
+ mvfc r4, cr1
+
+ test_h_gr r4, 0
+
+ mvi_h_condbit 1
+
+ mvfc r4, cr1
+
+ test_h_gr r4, 1
+
+ pass