[ARM] Fix test fail with conflicting -mfloat-abi
authorSudakshina Das <sudi.das@arm.com>
Mon, 22 Jan 2018 10:56:26 +0000 (10:56 +0000)
committerSudakshina Das <sudi@gcc.gnu.org>
Mon, 22 Jan 2018 10:56:26 +0000 (10:56 +0000)
This patch fixes my earlier test case that fails for arm-none-eabi
with explicit user option for -mfloat-abi which conflict with
the test case options. I have added a guard to skip the test
on those cases.

ChangeLog entries:

*** gcc/testsuite/ChangeLog ***

2018-01-22  Sudakshina Das  <sudi.das@arm.com>

* gcc.c-torture/compile/pr82096.c: Add dg-skip-if and
dg-require-effective-target directives.

From-SVN: r256941

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr82096.c

index a63fa4a35fc9ae24b3dd2d3439be6e6eced68204..256ab140d4c1e2ef361b4d31d8d0445b7da066e3 100644 (file)
@@ -1,3 +1,9 @@
+
+2018-01-22  Sudakshina Das  <sudi.das@arm.com>
+
+       * gcc.c-torture/compile/pr82096.c: Add dg-skip-if and
+       dg-require-effective-target directives.
+
 2018-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        * lib/target-supports.exp (check_effective_target_arm_softfloat):
index 9fed28cd18905c4791e3ba3423d700657f2f175a..d144b70585fb68df71a4a3caa01cdc91ced85e0e 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-require-effective-target arm_arch_v5t_ok { target arm*-*-* } } */
+/* { dg-skip-if "Do not combine float-abi values" { arm*-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=soft" } } */
 /* { dg-additional-options "-march=armv5t -mthumb -mfloat-abi=soft" { target arm*-*-* } } */
 
 static long long AL[24];