From 49f032040e18156722041a505ca9504cd5efa4a9 Mon Sep 17 00:00:00 2001 From: Joern Rennecke Date: Mon, 19 Aug 2013 15:16:45 +0000 Subject: [PATCH] re PR testsuite/52641 (Test cases fail for 16-bit int targets) 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. From-SVN: r201844 --- gcc/testsuite/ChangeLog | 8 ++++++++ gcc/testsuite/gcc.dg/tree-ssa/pr31261.c | 3 ++- gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-21.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-30.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/vector-4.c | 3 ++- gcc/testsuite/gcc.dg/tree-ssa/vrp58.c | 3 ++- 6 files changed, 16 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bdf49700cfd..fd4c0e91a00 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -8,6 +8,14 @@ * gcc.dg/tree-ssa/vrp55.c: Use keeps_null_pointer_checks to determine correct test response. + 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. + 2013-08-18 Jan Hubicka * g++.dg/ipa/type-inheritance-1.C: New testcase. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr31261.c b/gcc/testsuite/gcc.dg/tree-ssa/pr31261.c index 42bd2a21ef3..54f677ba8ca 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr31261.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr31261.c @@ -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" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-21.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-21.c index e4c9772f61f..40bb421f535 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-21.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-21.c @@ -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" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-30.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-30.c index 68a7a7f826e..91e0e89363e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-30.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-30.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target int32 } */ /* { dg-options "-O2 -fdump-tree-pre-details" } */ int f; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vector-4.c b/gcc/testsuite/gcc.dg/tree-ssa/vector-4.c index 10aebc47b45..018b8cbe3ad 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vector-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vector-4.c @@ -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) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp58.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp58.c index 7da3896b5b2..aa10af24960 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp58.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp58.c @@ -8,5 +8,6 @@ foo (long long a, signed char b, signed char c) 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" } } */ -- 2.30.2