mips-movcc-[123].c: Pass the ?: expressions to other functions.
authorRichard Sandiford <rsandifo@redhat.com>
Sat, 27 Nov 2004 09:54:10 +0000 (09:54 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sat, 27 Nov 2004 09:54:10 +0000 (09:54 +0000)
* gcc.dg/mips-movcc-[123].c: Pass the ?: expressions to other
functions.

From-SVN: r91371

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/mips-movcc-1.c
gcc/testsuite/gcc.dg/mips-movcc-2.c
gcc/testsuite/gcc.dg/mips-movcc-3.c

index dc3edeec50465c756d10b15047fd09bc7a048e54..8162c13daa3661370be279b6362c32ed75a5d328 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-27  Richard Sandiford  <rsandifo@redhat.com>
+
+       * gcc.dg/mips-movcc-[123].c: Pass the ?: expressions to other
+       functions.
+
 2004-11-27  Jakub Jelinek  <jakub@redhat.com>
 
        PR rtl-optimization/17825
index b433a4d45b54f6e56a17fd967aa9c747982bd358..1e051173bf1ea2339601be7de27aafefec0504ab 100644 (file)
@@ -4,20 +4,22 @@
 /* { dg-final { scan-assembler "movn" } } */
 /* { dg-final { scan-assembler "movt" } } */
 
+void ext_int (int);
+
 int
 sub1 (int i, int j, int k)
 {
-  return k ? i : j;
+  ext_int (k ? i : j);
 }
 
 int
 sub2 (int i, int j, long l)
 {
-  return !l ? i : j;
+  ext_int (!l ? i : j);
 }
 
 int
 sub3 (int i, int j, float f)
 {
-  return f ? i : j;
+  ext_int (f ? i : j);
 }
index d8ea4cc6ba17934bfdbe612438c0a918653f0b91..954a7f109ee4292b9bc955c5a310dbf080fda0f3 100644 (file)
@@ -4,20 +4,22 @@
 /* { dg-final { scan-assembler "movn" } } */
 /* { dg-final { scan-assembler "movf" } } */
 
+void ext_long (long);
+
 long
 sub4 (long i, long j, long k)
 {
-  return k ? i : j;
+  ext_long (k ? i : j);
 }
 
 long
 sub5 (long i, long j, int k)
 {
-  return !k ? i : j;
+  ext_long (!k ? i : j);
 }
 
 long
 sub6 (long i, long j, float f)
 {
-  return !f ? i : j;
+  ext_long (!f ? i : j);
 }
index 9e515fa6a3018ee15af6edd8d20c3ea92c95c655..0bffe683dfb5d64295d507bea2dda318468824a0 100644 (file)
@@ -7,38 +7,41 @@
 /* { dg-final { scan-assembler "movn.d" } } */
 /* { dg-final { scan-assembler "movf.d" } } */
 
+void ext_float (float);
+void ext_double (double);
+
 float
 sub7 (float f, float g, int i)
 {
-  return i ? f : g;
+  ext_float (i ? f : g);
 }
 
 float
 sub8 (float f, float g, long l)
 {
-  return !l ? f : g;
+  ext_float (!l ? f : g);
 }
 
 float
 sub9 (float f, float g, float h)
 {
-  return h ? f : g;
+  ext_float (h ? f : g);
 }
 
 double
 suba (double f, double g, int i)
 {
-  return i ? f : g;
+  ext_double (i ? f : g);
 }
 
 double
 subb (double f, double g, long l)
 {
-  return !l ? f : g;
+  ext_double (!l ? f : g);
 }
 
 double
 subc (double f, double g, double h)
 {
-  return !h ? f : g;
+  ext_double (!h ? f : g);
 }