float128-cmp-invalid.c (main): Use __builtin_nanq.
authorUros Bizjak <ubizjak@gmail.com>
Fri, 24 Jun 2016 13:55:40 +0000 (15:55 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Fri, 24 Jun 2016 13:55:40 +0000 (15:55 +0200)
* gcc.dg/torture/float128-cmp-invalid.c (main): Use __builtin_nanq.

From-SVN: r237760

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/float128-cmp-invalid.c

index e90595d2b7b29d6ecdabb64b13f73d0a960ecd65..3f9fb6355a0538bcedeee78de56be713cbaea156 100644 (file)
@@ -1,3 +1,7 @@
+2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
+
+       * gcc.dg/torture/float128-cmp-invalid.c (main): Use __builtin_nanq.
+
 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
 
        * gcc.target/i386/noplt-1.c: Don't disable for ia32.  Scan for
index 9d37ba25b6d99853b3777bd3f5618b0015e9928a..19998f4825182669ba1383de8cdf469610bef331 100644 (file)
@@ -9,7 +9,7 @@
 int
 main (void)
 {
-  volatile __float128 a = __builtin_nan (""), b = 0;
+  volatile __float128 a = __builtin_nanq (""), b = 0.0q;
   volatile int r = a < b;
   if (!fetestexcept (FE_INVALID))
     abort ();