Skip tests that assume 4 byte alignment for avr
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Mon, 22 Aug 2016 06:12:32 +0000 (06:12 +0000)
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
Mon, 22 Aug 2016 06:12:32 +0000 (06:12 +0000)
gcc/testsuite

        * gcc.dg/ipa/propalign-1.c: Skip for targets with !natural_alignment_32
        and !natural_alignment_64.
        * gcc.dg/ipa/propalign-2.c: Likewise.
        * gcc.dg/ipa/propalign-3.c: Likewise.
        * gcc.dg/ipa/propalign-4.c: Likewise.
        * gcc.dg/ipa/propalign-5.c: Likewise.
        * lib/target-supports.exp
        (check_effective_target_natural_alignment_32): Add avr-*-*.

From-SVN: r239647

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/propalign-1.c
gcc/testsuite/gcc.dg/ipa/propalign-2.c
gcc/testsuite/gcc.dg/ipa/propalign-3.c
gcc/testsuite/gcc.dg/ipa/propalign-4.c
gcc/testsuite/gcc.dg/ipa/propalign-5.c
gcc/testsuite/lib/target-supports.exp

index 6201e0cf82d736dabbc3bf14a6abdda2852d2b2f..b308ee86e88aa8f3482663709a8fd9dd652b3764 100644 (file)
@@ -1,3 +1,14 @@
+2016-08-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
+
+       * gcc.dg/ipa/propalign-1.c: Skip for targets with !natural_alignment_32
+       and !natural_alignment_64.
+       * gcc.dg/ipa/propalign-2.c: Likewise.
+       * gcc.dg/ipa/propalign-3.c: Likewise.
+       * gcc.dg/ipa/propalign-4.c: Likewise.
+       * gcc.dg/ipa/propalign-5.c: Likewise.
+       * lib/target-supports.exp
+       (check_effective_target_natural_alignment_32): Add avr-*-*.
+
 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
 
        PR tree-optimization/61839
index fe12682cec736c6bfb5e21eb5f2ce5668608c3dd..f34552c86203150261df0633b524d6a34b7e3aff 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fno-early-inlining -fdump-ipa-cp -fdump-tree-optimized" } */
+/* { dg-skip-if "No alignment restrictions" { { ! natural_alignment_32 } && { ! natural_alignment_64 } } } */
 
 #include <stdint.h>
 
index ee2c71da21fd8fb173f0f345773f7664ac6c19bc..67b149ae977b1c66650992d7aa00906594217917 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fno-early-inlining -fdump-ipa-cp -fdump-tree-optimized" } */
+/* { dg-skip-if "No alignment restrictions" { { ! natural_alignment_32 } && { ! natural_alignment_64 } } } */
 
 #include <stdint.h>
 
index a7b3fe2b611f552ed9e430fd7349f7dac773bf09..d3bc2c4b2e8149eae07cf33a9510d2a849e0d367 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fno-ipa-cp-alignment -fno-early-inlining -fdump-ipa-cp -fdump-tree-optimized" } */
+/* { dg-skip-if "No alignment restrictions" { { ! natural_alignment_32 } && { ! natural_alignment_64 } } } */
 
 #include <stdint.h>
 
index 4b2b597752547602422549e25da2f3ecbd65baea..b6808131c88bf11ce716d8876efdac9ca160b2a8 100644 (file)
@@ -1,5 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fdump-ipa-cp"  } */
+/* { dg-skip-if "No alignment restrictions" { { ! natural_alignment_32 } && { ! natural_alignment_64 } } } */
+
 int n;
 
 static void
index 87021bc752679edcec14d57027efba93ab974980..f2cf60020e3146b52b67a5e5b7f6cec11befd732 100644 (file)
@@ -1,5 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fdump-ipa-cp"  } */
+/* { dg-skip-if "No alignment restrictions" { { ! natural_alignment_32 } && { ! natural_alignment_64 } } } */
+
 int n;
 
 static void
index b264686324a24ab1d9c5fe41808284dda79d3f3a..533d3a668d8ae0d56cb28d60ca340c095995581e 100644 (file)
@@ -5350,7 +5350,8 @@ proc check_effective_target_natural_alignment_32 { } {
     } else {
         # FIXME: 32bit powerpc: guaranteed only if MASK_ALIGN_NATURAL/POWER.
         set et_natural_alignment_32_saved 1
-        if { ([istarget *-*-darwin*] && [is-effective-target lp64]) } {
+        if { ([istarget *-*-darwin*] && [is-effective-target lp64])
+             || [istarget avr-*-*] } {
             set et_natural_alignment_32_saved 0
         }
     }