From cb5ce9b425eab4dc76a32b68b803434546ae14a2 Mon Sep 17 00:00:00 2001 From: krebbel Date: Mon, 17 Jan 2011 15:12:55 +0000 Subject: [PATCH] 2011-01-17 Andreas Krebbel * gcc.dg/guality/pr36728-1.c: Replace XFAIL for s390(x) with a target check. * gcc.dg/guality/pr36728-2.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168908 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/guality/pr36728-1.c | 14 ++++++++++---- gcc/testsuite/gcc.dg/guality/pr36728-2.c | 14 ++++++++++---- 3 files changed, 26 insertions(+), 8 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2ab6f53..45ff351 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2011-01-17 Andreas Krebbel + + * gcc.dg/guality/pr36728-1.c: Replace XFAIL for s390(x) with a + target check. + * gcc.dg/guality/pr36728-2.c: Likewise. + 2011-01-17 Richard Guenther PR tree-optimization/47313 diff --git a/gcc/testsuite/gcc.dg/guality/pr36728-1.c b/gcc/testsuite/gcc.dg/guality/pr36728-1.c index 33e25f4..c4ad564 100644 --- a/gcc/testsuite/gcc.dg/guality/pr36728-1.c +++ b/gcc/testsuite/gcc.dg/guality/pr36728-1.c @@ -15,16 +15,22 @@ foo (int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7) return y; } -/* { dg-final { gdb-test 12 "arg1" "1" { xfail s390*-*-* } } } */ -/* { dg-final { gdb-test 12 "arg2" "2" { xfail s390*-*-* } } } */ +/* On s390(x) r2 and r3 are (depending on the optimization level) used + when adjusting the addresses in order to meet the alignment + requirements above. They usually hold the function arguments arg1 + and arg2. So it is expected that these values are unavailable in + some of these tests. */ + +/* { dg-final { gdb-test 12 "arg1" "1" { target { ! "s390*-*-*" } } } }*/ +/* { dg-final { gdb-test 12 "arg2" "2" { target { ! "s390*-*-*" } } } }*/ /* { dg-final { gdb-test 12 "arg3" "3" } } */ /* { dg-final { gdb-test 12 "arg4" "4" } } */ /* { dg-final { gdb-test 12 "arg5" "5" } } */ /* { dg-final { gdb-test 12 "arg6" "6" } } */ /* { dg-final { gdb-test 12 "arg7" "30" } } */ /* { dg-final { gdb-test 12 "y" "2" } } */ -/* { dg-final { gdb-test 14 "arg1" "1" { xfail s390*-*-* } } } */ -/* { dg-final { gdb-test 14 "arg2" "2" { xfail s390*-*-* } } } */ +/* { dg-final { gdb-test 14 "arg1" "1" { target { ! "s390*-*-*" } } } }*/ +/* { dg-final { gdb-test 14 "arg2" "2" { target { ! "s390*-*-*" } } } }*/ /* { dg-final { gdb-test 14 "arg3" "3" } } */ /* { dg-final { gdb-test 14 "arg4" "4" } } */ /* { dg-final { gdb-test 14 "arg5" "5" } } */ diff --git a/gcc/testsuite/gcc.dg/guality/pr36728-2.c b/gcc/testsuite/gcc.dg/guality/pr36728-2.c index 7072a8d..a7c2de7 100644 --- a/gcc/testsuite/gcc.dg/guality/pr36728-2.c +++ b/gcc/testsuite/gcc.dg/guality/pr36728-2.c @@ -15,16 +15,22 @@ foo (int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7) return y; } -/* { dg-final { gdb-test 12 "arg1" "1" { xfail s390*-*-* } } } */ -/* { dg-final { gdb-test 12 "arg2" "2" { xfail s390*-*-* } } } */ +/* On s390(x) r2 and r3 are (depending on the optimization level) used + when adjusting the addresses in order to meet the alignment + requirements above. They usually hold the function arguments arg1 + and arg2. So it is expected that these values are unavailable in + some of these tests. */ + +/* { dg-final { gdb-test 12 "arg1" "1" { target { ! "s390*-*-*" } } } } */ +/* { dg-final { gdb-test 12 "arg2" "2" { target { ! "s390*-*-*" } } } } */ /* { dg-final { gdb-test 12 "arg3" "3" } } */ /* { dg-final { gdb-test 12 "arg4" "4" } } */ /* { dg-final { gdb-test 12 "arg5" "5" } } */ /* { dg-final { gdb-test 12 "arg6" "6" } } */ /* { dg-final { gdb-test 12 "arg7" "30" } } */ /* { dg-final { gdb-test 12 "y" "2" } } */ -/* { dg-final { gdb-test 14 "arg1" "1" { xfail s390*-*-* } } } */ -/* { dg-final { gdb-test 14 "arg2" "2" { xfail s390*-*-* } } } */ +/* { dg-final { gdb-test 14 "arg1" "1" { target { ! "s390*-*-*" } } } } */ +/* { dg-final { gdb-test 14 "arg2" "2" { target { ! "s390*-*-*" } } } } */ /* { dg-final { gdb-test 14 "arg3" "3" } } */ /* { dg-final { gdb-test 14 "arg4" "4" } } */ /* { dg-final { gdb-test 14 "arg5" "5" } } */ -- 2.7.4