builtin-apply2.c: Skip test on arm hardfloat ABI targets.
authorCharles Baylis <charles.baylis@linaro.org>
Thu, 17 Oct 2013 20:57:21 +0000 (22:57 +0200)
committerChristophe Lyon <clyon@gcc.gnu.org>
Thu, 17 Oct 2013 20:57:21 +0000 (22:57 +0200)
2013-10-17  Charles Bayis  <charles.baylis@linaro.org>

* gcc.dg/builtin-apply2.c: Skip test on arm hardfloat ABI targets.
* gcc.dg/tls/pr42894.c: Remove dg-options for arm*-*-* targets.
* gcc.target/arm/thumb-ltu.c: Remove dg-skip-if and require
effective target arm_thumb1_ok.
* lib/target-supports.exp
(check_effective_target_arm_fp16_ok_nocache): Don't force
-mfloat-abi=soft when building for hardfloat target.

From-SVN: r203799

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtin-apply2.c
gcc/testsuite/gcc.dg/tls/pr42894.c
gcc/testsuite/gcc.target/arm/thumb-ltu.c
gcc/testsuite/lib/target-supports.exp

index c3e2d1135e3b894e3ab73dfe7a3bc83c04c499c8..4e7cb4f1e6b82fa0debbba850831cd4a304a7e7e 100644 (file)
@@ -1,3 +1,13 @@
+2013-10-17  Charles Bayis  <charles.baylis@linaro.org>
+
+       * gcc.dg/builtin-apply2.c: Skip test on arm hardfloat ABI targets.
+       * gcc.dg/tls/pr42894.c: Remove dg-options for arm*-*-* targets.
+       * gcc.target/arm/thumb-ltu.c: Remove dg-skip-if and require
+       effective target arm_thumb1_ok.
+       * lib/target-supports.exp
+       (check_effective_target_arm_fp16_ok_nocache): Don't force
+       -mfloat-abi=soft when building for hardfloat target.
+
 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
 
        PR target/58673
index daaef477894754bfce3b95f8402c76d62dbd27d9..869f337a9a5bb9b9e9e200c88b270136abb0dca6 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-skip-if "Variadic funcs have all args on stack. Normal funcs have args in registers." { "aarch64*-*-* avr-*-* " } { "*" } { "" } } */
-/* { dg-skip-if "Variadic funcs use Base AAPCS.  Normal funcs use VFP variant." { "arm*-*-*" } { "-mfloat-abi=hard" } { "" } } */
+/* { dg-skip-if "Variadic funcs use Base AAPCS.  Normal funcs use VFP variant." { arm*-*-* && arm_hf_eabi } { "*" } { "" } } */
 
 /* PR target/12503 */
 /* Origin: <pierre.nguyen-tuong@asim.lip6.fr> */
index c3bd76c91c46229252d931910532469a8cb09f25..2875b494c0503e964df94fd750f82db16557b469 100644 (file)
@@ -1,6 +1,5 @@
 /* PR target/42894 */
 /* { dg-do compile } */
-/* { dg-options "-march=armv5te -mthumb" { target arm*-*-* } } */
 /* { dg-require-effective-target tls } */
 
 extern __thread int t;
index 24671213e5f60f065355dc082f8788526f2bc943..d057ea34d25c1415566345a284898079ae654e81 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-skip-if "incompatible options" { arm*-*-* } { "-march=*" } { "-march=armv6" "-march=armv6j" "-march=armv6z" } } */
+/* { dg-require-effective-target arm_thumb1_ok } */
 /* { dg-options "-mcpu=arm1136jf-s -mthumb -O2" } */
 
 void f(unsigned a, unsigned b, unsigned c, unsigned d)
index 5557c066a7ff5dc9d3b8851ad6d91d43aa906cce..8701cf6c21df120f7e15e958e7ca5cd55451eee1 100644 (file)
@@ -2467,6 +2467,11 @@ proc check_effective_target_arm_fp16_ok_nocache { } {
        # Must generate floating-point instructions.
        return 0
     }
+    if [check_effective_target_arm_hf_eabi] {
+       # Use existing float-abi and force an fpu which supports fp16
+       set et_arm_fp16_flags "-mfpu=vfpv4"
+       return 1;
+    }
     if [check-flags [list "" { *-*-* } { "-mfpu=*" } { "" } ]] {
         # The existing -mfpu value is OK; use it, but add softfp.
        set et_arm_fp16_flags "-mfloat-abi=softfp"