Fix gcc.dg/torture/ssa-fre-{5,7}.c failure for avr
authorSenthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
Fri, 2 Aug 2019 08:47:04 +0000 (08:47 +0000)
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
Fri, 2 Aug 2019 08:47:04 +0000 (08:47 +0000)
The test assumes 32 bit integers (and pointers), and therefore
fails for the avr target, which has 16 bit integers.

Fix failure for avr by adding dg-require-effective-target int32.

gcc/testsuite/ChangeLog:

2019-08-02  Senthil Kumar Selvaraj  <senthilkumar.selvaraj@microchip.com>

* gcc.dg/torture/ssa-fre-5.c: Add dg-require-effective-target int32.
* gcc.dg/torture/ssa-fre-7.c: Likewise.

From-SVN: r274001

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/ssa-fre-5.c
gcc/testsuite/gcc.dg/torture/ssa-fre-7.c

index fdc8f0848d081d715a7f97b11ebcd044fb715c07..8dc95b986f693f8ed44ae42b31909d6e8282c890 100644 (file)
@@ -1,3 +1,8 @@
+2019-08-02  Senthil Kumar Selvaraj  <senthilkumar.selvaraj@microchip.com>
+
+       * gcc.dg/torture/ssa-fre-5.c: Add dg-require-effective-target int32.
+       * gcc.dg/torture/ssa-fre-7.c: Likewise.
+
 2019-08-02  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/91201
index 5ee9d64204c81cc568a31fde136a32567b7f4408..180fd72074937d253b349ad736267b1f3da5967f 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-require-effective-target int32 } */
 /* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
 /* { dg-additional-options "-fgimple -fdump-tree-fre1" } */
 
index 07f3c9dc567e4d6467021c1ed29c7a449c51487e..c9259b4ddaa062ca8d334057e507c7da19dcc38e 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-require-effective-target int32 } */
 /* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
 /* { dg-additional-options "-fgimple -fdump-tree-fre1" } */