diff --git a/gcc/testsuite/gcc.target/rx/movsicc-1.c b/gcc/testsuite/gcc.target/rx/movsicc-1.c
new file mode 100644
index 00000000000..09234ea0642
--- /dev/null
+++ b/gcc/testsuite/gcc.target/rx/movsicc-1.c
@@ -0,0 +1,18 @@
+/* { dg-do compile } */
+/* { dg-options "-Os" } */
+
+typedef unsigned char u8;
+typedef unsigned short u16;
+signed int Xa, Xb;
+
+signed int stzreg_beq(int i, int a, int b)
+{
+  signed int x;
+  x = a;
+  if (i)
+    x = b;
+  return x;
+}
+
+/* { dg-final { scan-assembler "b.. 1f" } } */
+
diff --git a/gcc/testsuite/gcc.target/rx/movsicc-2.c b/gcc/testsuite/gcc.target/rx/movsicc-2.c
new file mode 100644
index 00000000000..7d730c4e6b3
--- /dev/null
+++ b/gcc/testsuite/gcc.target/rx/movsicc-2.c
@@ -0,0 +1,18 @@
+/* { dg-do compile } */
+/* { dg-options "-Os" } */
+
+typedef unsigned char u8;
+typedef unsigned short u16;
+signed int Xa, Xb;
+
+signed int stzreg_bge(int i, int a, int b, int c)
+{
+  signed int x;
+  x = a;
+  if (i<c)
+    x = b;
+  return x;
+}
+
+/* { dg-final { scan-assembler "b.. 1f" } } */
+
diff --git a/gcc/testsuite/gcc.target/rx/movsicc-3.c b/gcc/testsuite/gcc.target/rx/movsicc-3.c
new file mode 100644
index 00000000000..84a56e2e30b
--- /dev/null
+++ b/gcc/testsuite/gcc.target/rx/movsicc-3.c
@@ -0,0 +1,18 @@
+/* { dg-do compile } */
+/* { dg-options "-Os" } */
+
+typedef unsigned char u8;
+typedef unsigned short u16;
+signed int Xa, Xb;
+
+signed int stzreg_bgt(int i, int a, int b)
+{
+  signed int x;
+  x = a;
+  if (i<10)
+    x = b;
+  return x;
+}
+
+/* { dg-final { scan-assembler "b.. 1f" } } */
+
diff --git a/gcc/testsuite/gcc.target/rx/movsicc-4.c b/gcc/testsuite/gcc.target/rx/movsicc-4.c
new file mode 100644
index 00000000000..fef30cfe5e8
--- /dev/null
+++ b/gcc/testsuite/gcc.target/rx/movsicc-4.c
@@ -0,0 +1,18 @@
+/* { dg-do compile } */
+/* { dg-options "-Os" } */
+
+typedef unsigned char u8;
+typedef unsigned short u16;
+signed int Xa, Xb;
+
+signed int stzreg_ble(int i, int a, int b)
+{
+  signed int x;
+  x = a;
+  if (i>0)
+    x = b;
+  return x;
+}
+
+/* { dg-final { scan-assembler "b.. 1f" } } */
+
diff --git a/gcc/testsuite/gcc.target/rx/movsicc-5.c b/gcc/testsuite/gcc.target/rx/movsicc-5.c
new file mode 100644
index 00000000000..0febb6800b6
--- /dev/null
+++ b/gcc/testsuite/gcc.target/rx/movsicc-5.c
@@ -0,0 +1,18 @@
+/* { dg-do compile } */
+/* { dg-options "-Os" } */
+
+typedef unsigned char u8;
+typedef unsigned short u16;
+signed int Xa, Xb;
+
+signed int stzreg_blt(int i, int a, int b)
+{
+  signed int x;
+  x = a;
+  if (i<0)
+    x = b;
+  return x;
+}
+
+/* { dg-final { scan-assembler "b.. 1f" } } */
+
diff --git a/gcc/testsuite/gcc.target/rx/movsicc-6.c b/gcc/testsuite/gcc.target/rx/movsicc-6.c
new file mode 100644
index 00000000000..69f312e6df4
--- /dev/null
+++ b/gcc/testsuite/gcc.target/rx/movsicc-6.c
@@ -0,0 +1,18 @@
+/* { dg-do compile } */
+/* { dg-options "-Os" } */
+
+typedef unsigned char u8;
+typedef unsigned short u16;
+signed int Xa, Xb;
+
+signed int stzreg_bne(int i, int a, int b)
+{
+  signed int x;
+  x = a;
+  if (!i)
+    x = b;
+  return x;
+}
+
+/* { dg-final { scan-assembler "b.. 1f" } } */
+
diff --git a/gcc/testsuite/gcc.target/rx/movsicc-7.c b/gcc/testsuite/gcc.target/rx/movsicc-7.c
new file mode 100644
index 00000000000..a1a22e2f16b
--- /dev/null
+++ b/gcc/testsuite/gcc.target/rx/movsicc-7.c
@@ -0,0 +1,17 @@
+/* { dg-do compile } */
+/* { dg-options "-Os" } */
+
+typedef unsigned char u8;
+typedef unsigned short u16;
+signed int Xa, Xb;
+
+signed int stzimm_le( int i, int a )
+{
+  signed int x;
+  x = a;
+  if (i>0)
+    x = 5;
+  return x;
+}
+
+/* { dg-final { scan-assembler "b.. 1f" } } */
diff --git a/gcc/testsuite/gcc.target/rx/movsicc-8.c b/gcc/testsuite/gcc.target/rx/movsicc-8.c
new file mode 100644
index 00000000000..be59e643913
--- /dev/null
+++ b/gcc/testsuite/gcc.target/rx/movsicc-8.c
@@ -0,0 +1,17 @@
+/* { dg-do compile } */
+/* { dg-options "-Os" } */
+
+typedef unsigned char u8;
+typedef unsigned short u16;
+signed int Xa, Xb;
+
+signed int stzimm_le_r( int i, int a )
+{
+  signed int x;
+  x = a;
+  if (i<0)
+    x = 5;
+  return x;
+}
+
+/* { dg-final { scan-assembler "b.. 1f" } } */
diff --git a/gcc/testsuite/gcc.target/rx/movsicc.c b/gcc/testsuite/gcc.target/rx/movsicc.c
deleted file mode 100644
index d8e6bcc3055..00000000000
--- a/gcc/testsuite/gcc.target/rx/movsicc.c
+++ /dev/null
@@ -1,94 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-Os" } */
-
-typedef unsigned char u8;
-typedef unsigned short u16;
-signed int Xa, Xb;
-
-signed int stzreg_beq(int i, int a, int b)
-{
-  signed int x;
-  x = a;
-  if (i)
-    x = b;
-  return x;
-}
-
-/* { dg-final { scan-assembler "bne 1f" } } */
-
-signed int stzreg_bge(int i, int a, int b, int c)
-{
-  signed int x;
-  x = a;
-  if (i<c)
-    x = b;
-  return x;
-}
-
-/* { dg-final { scan-assembler "blt 1f" } } */
-
-signed int stzreg_bgt(int i, int a, int b)
-{
-  signed int x;
-  x = a;
-  if (i<10)
-    x = b;
-  return x;
-}
-
-/* { dg-final { scan-assembler "ble 1f" } } */
-
-signed int stzreg_ble(int i, int a, int b)
-{
-  signed int x;
-  x = a;
-  if (i>0)
-    x = b;
-  return x;
-}
-
-/* { dg-final { scan-assembler "bgt 1f" } } */
-
-signed int stzreg_blt(int i, int a, int b)
-{
-  signed int x;
-  x = a;
-  if (i<0)
-    x = b;
-  return x;
-}
-
-/* { dg-final { scan-assembler "blt 1f" } } */
-
-signed int stzreg_bne(int i, int a, int b)
-{
-  signed int x;
-  x = a;
-  if (!i)
-    x = b;
-  return x;
-}
-
-/* { dg-final { scan-assembler "beq 1f" } } */
-
-signed int stzimm_le( int i, int a )
-{
-  signed int x;
-  x = a;
-  if (i>0)
-    x = 5;
-  return x;
-}
-
-/* { dg-final { scan-assembler "ble 1f" } } */
-
-signed int stzimm_le_r( int i, int a )
-{
-  signed int x;
-  x = a;
-  if (i<0)
-    x = 5;
-  return x;
-}
-
-/* { dg-final { scan-assembler "bge 1f" } } */
