[arm] Use -march=armv7-a+fp when testing hard-float
authorRichard Earnshaw <rearnsha@arm.com>
Fri, 16 Jun 2017 21:05:26 +0000 (21:05 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Fri, 16 Jun 2017 21:05:26 +0000 (21:05 +0000)
Some tests explicitly test with -march=armv7-a and -mfloat-abi=hard.
However, with the new -mfpu=auto code, this architectural specifiction
lacks any floating-point capabilities.  To rectify this, change the
architecture to armv7-a+fp.

gcc/testsuite:

* gcc.dg/pr59418.c: On ARM, change architecture to armv7-a+fp.
* gcc.target/arm/pr51915.c: Likewise.
* gcc.target/arm/pr52006.c: Likewise.
* gcc.target/arm/pr53187.c: Likewise.

From-SVN: r249299

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr59418.c
gcc/testsuite/gcc.target/arm/pr51915.c
gcc/testsuite/gcc.target/arm/pr52006.c
gcc/testsuite/gcc.target/arm/pr53187.c

index 13dffb31ccada1c7d8d1cb2455e92f5fa9cb8807..b4408e6790a1bd0338b5f175c001e8673821f8ed 100644 (file)
@@ -1,3 +1,10 @@
+2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
+
+       * gcc.dg/pr59418.c: On ARM, change architecture to armv7-a+fp.
+       * gcc.target/arm/pr51915.c: Likewise.
+       * gcc.target/arm/pr52006.c: Likewise.
+       * gcc.target/arm/pr53187.c: Likewise.
+
 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
 
        * gcc.target/arm/multilibs.exp: New file.
index 12999aa49e86e09d733e6b1657e965c921fe55bd..4b54ef2b42dcdb67ae835deb33e6862f865f8285 100644 (file)
@@ -3,7 +3,7 @@
 
 /* { dg-do compile } */
 /* { dg-options "-Os -g" } */
-/* { dg-options "-march=armv7-a -mfloat-abi=hard -Os -g" { target { arm*-*-* && { ! arm_thumb1 } } } } */
+/* { dg-options "-march=armv7-a+fp -mfloat-abi=hard -Os -g" { target { arm*-*-* && { ! arm_thumb1 } } } } */
 
 extern int printf (const char *__format, ...);
 double bar (const char *, int);
index 144d522f85b25083c316157a3d7a5e7773ce101a..f9ed30568ff7e9507c63b6e24c736dae02dd1637 100644 (file)
@@ -2,7 +2,7 @@
 /* { dg-do compile } */
 /* { dg-skip-if "no support for hard-float VFP ABI" { arm_thumb1 } { "-march=*" } { "" } } */
 /* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=hard" } } */
-/* { dg-options "-march=armv7-a -mfloat-abi=hard -O2" } */
+/* { dg-options "-march=armv7-a+fp -mfloat-abi=hard -O2" } */
 
 struct S { int s1; void *s2; };
 struct T { struct S t1; unsigned long long t2; };
index c274449ba01a1a0cfd1400af833d2508bca059d9..dbbcfe06f782650169345d3cf66a9187f42daa64 100644 (file)
@@ -2,7 +2,7 @@
 /* { dg-do compile } */
 /* { dg-skip-if "avoid conflicts with multilib flags" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=hard" } } */
 /* { dg-skip-if "no support for hard-float VFP ABI" { arm_thumb1 } { "-march=*" } { "" } } */
-/* { dg-options "-march=armv7-a -mfloat-abi=hard -O2 -fPIC" } */
+/* { dg-options "-march=armv7-a+fp -mfloat-abi=hard -O2 -fPIC" } */
 
 unsigned long a;
 static int b;
index b40dbbb310bedfcf6460f1b711145711f9462fed..5fbc52c873a4722c6daf97b56ca54b6541bdd357 100644 (file)
@@ -2,7 +2,7 @@
 /* { dg-do compile } */
 /* { dg-skip-if "no support for hard-float VFP ABI" { arm_thumb1 } { "-march=*" } { "" } } */
 /* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=hard" } } */
-/* { dg-options "-march=armv7-a -mfloat-abi=hard -O2" } */
+/* { dg-options "-march=armv7-a+fp -mfloat-abi=hard -O2" } */
 
 void bar (int);