[arm] Fix gcc.target/arm/pr70278.c
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Thu, 18 Jan 2018 14:26:02 +0000 (14:26 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Thu, 18 Jan 2018 14:26:02 +0000 (14:26 +0000)
This test needs an armv4t Thumb1 target but doesn't add the right effective target checks.
This patch adds them so the test is skipped appropriately on Thumb2 hard-float tarets.

     * gcc.target/arm/pr70278.c: Add effective target checks for armv4t
     and arm_thumb1_ok.

From-SVN: r256848

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/pr70278.c

index 0ae3871d0893fcde7281c27e78b0baf686f1377e..b8d36aad9e8820dba4dc2dd7a9d83c514bbd8b7a 100644 (file)
@@ -1,3 +1,8 @@
+2018-01-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       * gcc.target/arm/pr70278.c: Add effective target checks for armv4t
+       and arm_thumb1_ok.
+
 2018-01-18  Boris Kolpackov  <boris@codesynthesis.com>
 
         PR other/70268
index c44c07b7b59f906e27ee3046a09988afb665eed5..97034166f46ee7d19b7c6819a67c58d7ab580b1a 100644 (file)
@@ -1,6 +1,8 @@
 /* { dg-do compile } */
 /* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-march=*" } { "-march=armv4t" } } */
 /* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-marm" } { "" } } */
+/* { dg-require-effective-target arm_arch_v4t_ok } */
+/* { dg-require-effective-target arm_thumb1_ok } */
 /* { dg-options "-mthumb" } */
 /* { dg-add-options arm_arch_v4t } */
 /*