diff mbox

[ARM,testsuite,committed] Add -mfloat-abi=softfp to some xscale tests

Message ID 55A62BCC.8020706@arm.com
State New
Headers show

Commit Message

Kyrylo Tkachov July 15, 2015, 9:45 a.m. UTC
Hi all,

This patch adds -mfloat-abi=softfp to a couple of tests that check xscale functionality
and an appropriate skipping directive.
This helps avoid "unimplemented Thumb-1 hard float ABI" errors when testing the arm-none-linux-gnueabihf/-mthumb variant.

With this patch the two tests PASS on arm-none-linux-gnueabihf/-mthumb and are UNSUPPORTED on arm-none-linux-gnueabihf/-mthumb/-mfloat-abi=hard

Committed as obvious with r225814.

Thanks,
Kyrill

2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

     * gcc.target/arm/scd42-1.c: Add -mfloat-abi=softfp and appropriate
     dg-skip-if.
     * gcc.target/arm/scd42-3.c: Likewise.
diff mbox

Patch

commit e640e90cce03d8e899972f73178e830556ed2e2d
Author: Kyrylo Tkachov <kyrylo.tkachov@arm.com>
Date:   Tue Jul 7 09:36:30 2015 +0100

    [ARM][testsuite] Add -mfloat-abi=softfp to some xscale tests

diff --git a/gcc/testsuite/gcc.target/arm/scd42-1.c b/gcc/testsuite/gcc.target/arm/scd42-1.c
index 420f7c4..d1de24a 100644
--- a/gcc/testsuite/gcc.target/arm/scd42-1.c
+++ b/gcc/testsuite/gcc.target/arm/scd42-1.c
@@ -1,7 +1,8 @@ 
 /* Verify that mov is preferred on XScale for loading a 1 byte constant. */
 /* { dg-do compile } */
 /* { dg-skip-if "incompatible options" { arm*-*-* } { "-march=*" } { "" } } */
-/* { dg-options "-mcpu=xscale -O" } */
+/* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=softfp" } } */
+/* { dg-options "-mcpu=xscale -O -mfloat-abi=softfp" } */
 
 unsigned load1(void) __attribute__ ((naked));
 unsigned load1(void)
diff --git a/gcc/testsuite/gcc.target/arm/scd42-3.c b/gcc/testsuite/gcc.target/arm/scd42-3.c
index eb90e43..e566cb2 100644
--- a/gcc/testsuite/gcc.target/arm/scd42-3.c
+++ b/gcc/testsuite/gcc.target/arm/scd42-3.c
@@ -2,7 +2,8 @@ 
 /* { dg-do compile } */
 /* { dg-skip-if "Test is specific to Xscale" { arm*-*-* } { "-march=*" } { "-march=xscale" } } */
 /* { dg-skip-if "Test is specific to Xscale" { arm*-*-* } { "-mcpu=*" } { "-mcpu=xscale" } } */
-/* { dg-options "-mcpu=xscale -O" } */
+/* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=softfp" } } */
+/* { dg-options "-mcpu=xscale -O -mfloat-abi=softfp" } */
 
 unsigned load4(void) __attribute__ ((naked));
 unsigned load4(void)