summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralalaw01 <alalaw01@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-20 14:46:59 +0000
committeralalaw01 <alalaw01@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-20 14:46:59 +0000
commit8503d05d037f7f26474af1faa084835420d1f75b (patch)
tree4702a219bc42d52da7542e68df9ba387e7d71965
parent49c657fc069710b7b5c319ace9979c799608f115 (diff)
downloadgcc-8503d05d037f7f26474af1faa084835420d1f75b.tar.gz
[AArch64] Remove divisions-to-produce-NaN from vdiv_f.c
* gcc.target/aarch64/vdiv_f.c: Use __builtin_nan. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229080 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.target/aarch64/vdiv_f.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 617ecf4d8b3..6a56ec497fe 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/gcc.target/aarch64/vdiv_f.c b/gcc/testsuite/gcc.target/aarch64/vdiv_f.c
index 45c72a9d48d..a505e39bab8 100644
--- a/gcc/testsuite/gcc.target/aarch64/vdiv_f.c
+++ b/gcc/testsuite/gcc.target/aarch64/vdiv_f.c
@@ -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