[AArch64] Remove divisions-to-produce-NaN from vdiv_f.c
authorAlan Lawrence <alan.lawrence@arm.com>
Tue, 20 Oct 2015 14:46:59 +0000 (14:46 +0000)
committerAlan Lawrence <alalaw01@gcc.gnu.org>
Tue, 20 Oct 2015 14:46:59 +0000 (14:46 +0000)
* gcc.target/aarch64/vdiv_f.c: Use __builtin_nan.

From-SVN: r229080

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/vdiv_f.c

index 617ecf4..6a56ec4 100644 (file)
@@ -1,3 +1,7 @@
+2015-10-20  Alan Lawrence  <alan.lawrence@arm.com>
+
+       * gcc.target/aarch64/vdiv_f.c: Use __builtin_nan.
+
 2015-10-20  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/68017
index 45c72a9..a505e39 100644 (file)
@@ -7,7 +7,7 @@
 #define FLT_INFINITY (__builtin_inff ())
 #define DBL_INFINITY (__builtin_inf ())
 
-#define NAN (0.0 / 0.0)
+#define NAN (__builtin_nan (""))
 
 #define PI 3.141592653589793
 #define PI_4 0.7853981633974483
@@ -228,9 +228,7 @@ test_vdiv_f64 ()
   return 0;
 }
 
-/* The following assembly should match 2 more times,
-   in 64bit NAN generation.  */
-/* { dg-final { scan-assembler-times "fdiv\\td\[0-9\]+, d\[0-9\]+, d\[0-9\]+" 3 } } */
+/* { dg-final { scan-assembler-times "fdiv\\td\[0-9\]+, d\[0-9\]+, d\[0-9\]+" 1 } } */
 
 #undef TESTA8
 #undef ANSW8