This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RFA: testsuite patches (6/6): More int16 / !size32plus patches


Tested for avr with --target_board=atmega128-sim and native on i686-pc-linuc-gnu.

Ok to apply?
2013-08-18  Joern Rennecke  <joern.rennecke@embecosm.com>

	PR testsuite/52641
	* gcc.dg/tree-ssa/pr31261.c [int16]: Change expected unsigned type.
	* gcc.dg/tree-ssa/ssa-pre-21.c [! size32plus]: Mark as xfail.
	* gcc.dg/tree-ssa/vector-4.c (SItype): New typedef.
	(v4si): Use it.
	* gcc.dg/tree-ssa/ssa-pre-30.c: Test requires int32.
	* gcc.dg/tree-ssa/vrp58.c: Adjust scan expression for int16.

Index: gcc.dg/tree-ssa/pr31261.c
===================================================================
--- gcc.dg/tree-ssa/pr31261.c	(revision 201835)
+++ gcc.dg/tree-ssa/pr31261.c	(working copy)
@@ -35,6 +35,7 @@ f5 (int e)
 /* { dg-final { scan-tree-dump-times "return -a \& 7;" 1 "original" } } */
 /* { dg-final { scan-tree-dump-times "return b \& 7;" 1 "original" } } */
 /* { dg-final { scan-tree-dump-times "return \\(char\\) -\\(unsigned char\\) c \& 31;" 1 "original" } } */
-/* { dg-final { scan-tree-dump-times "return \\(int\\) \\(12 - \\(unsigned int\\) d\\) \& 7;" 1 "original" } } */
+/* { dg-final { scan-tree-dump-times "return \\(int\\) \\(12 - \\(unsigned int\\) d\\) \& 7;" 1 "original" { target { ! int16 } } } } */
+/* { dg-final { scan-tree-dump-times "return \\(int\\) \\(12 - \\(unsigned short\\) d\\) \& 7;" 1 "original" { target { int16 } } } } */
 /* { dg-final { scan-tree-dump-times "return 12 - \\(e \& 7\\) \& 15;" 1 "original" } } */
 /* { dg-final { cleanup-tree-dump "original" } } */
Index: gcc.dg/tree-ssa/ssa-pre-21.c
===================================================================
--- gcc.dg/tree-ssa/ssa-pre-21.c	(revision 201835)
+++ gcc.dg/tree-ssa/ssa-pre-21.c	(working copy)
@@ -11,5 +11,5 @@ NumSift (long *array, unsigned long k)
 
 /* There should be only two loads left.  */
 
-/* { dg-final { scan-tree-dump-times "= \\\*\[^\n;\]*;" 2 "pre" } } */
+/* { dg-final { scan-tree-dump-times "= \\\*\[^\n;\]*;" 2 "pre" { xfail { ! size32plus } } } } */ /* xfail: PR tree-optimization/58169 */
 /* { dg-final { cleanup-tree-dump "pre" } } */
Index: gcc.dg/tree-ssa/vector-4.c
===================================================================
--- gcc.dg/tree-ssa/vector-4.c	(revision 201835)
+++ gcc.dg/tree-ssa/vector-4.c	(working copy)
@@ -1,7 +1,8 @@
 /* { dg-do compile } */
 /* { dg-options "-w -O1 -fdump-tree-gimple" } */
 
-typedef int v4si __attribute__ ((vector_size (16)));
+typedef int SItype __attribute__ ((mode (SI)));
+typedef SItype v4si __attribute__ ((vector_size (16)));
 
 v4si vs (v4si a, v4si b)
 {
Index: gcc.dg/tree-ssa/ssa-pre-30.c
===================================================================
--- gcc.dg/tree-ssa/ssa-pre-30.c	(revision 201835)
+++ gcc.dg/tree-ssa/ssa-pre-30.c	(working copy)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-require-effective-target int32 } */
 /* { dg-options "-O2 -fdump-tree-pre-details" } */
 
 int f;
Index: gcc.dg/tree-ssa/vrp58.c
===================================================================
--- gcc.dg/tree-ssa/vrp58.c	(revision 201835)
+++ gcc.dg/tree-ssa/vrp58.c	(working copy)
@@ -8,5 +8,6 @@ foo (long long a, signed char b, signed
   return a + (short)bc;
 }
 
-/* { dg-final { scan-tree-dump "Folded into" "vrp1" } } */
+/* { dg-final { scan-tree-dump "Folded into" "vrp1" { target int32plus } } } */
+/* { dg-final { scan-tree-dump "Folding statement: _\[0-9\]\* = \\(long long int\\) bc_\[0-9\]\*;" "vrp1" { target int16 } } } */
 /* { dg-final { cleanup-tree-dump "vrp1" } } */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]