This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, testsuite] cmpsi-2 test was broken


Hello all,
Is it alright to commit the following patch to fix the broken cmpsi-2 test?

Cheers
Hari

ChangeLog:
gcc.c-torture/execute/cmpsi-2.c : Unsigned comparisons should use unsigned values.


Patch:

Index: gcc/testsuite/gcc.c-torture/execute/cmpsi-2.c
===================================================================
--- gcc/testsuite/gcc.c-torture/execute/cmpsi-2.c       (revision 164991)
+++ gcc/testsuite/gcc.c-torture/execute/cmpsi-2.c       (working copy)
@@ -49,7 +49,7 @@
     return F;
 }

-fltu (long x, long y)
+fltu (unsigned long x, unsigned long y)
 {
   if (x < y)
     return T;
@@ -57,7 +57,7 @@
     return F;
 }

-fgeu (long x, long y)
+fgeu (unsigned long x, unsigned long y)
 {
   if (x >= y)
     return T;
@@ -65,7 +65,7 @@
     return F;
 }

-fgtu (long x, long y)
+fgtu (unsigned long x, unsigned long y)
 {
   if (x > y)
     return T;
@@ -73,7 +73,7 @@
     return F;
 }

-fleu (long x, long y)
+fleu (unsigned long x, unsigned long y)
 {
   if (x <= y)
     return T;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]