From: Jakub Jelinek Date: Wed, 18 Jan 2017 17:39:56 +0000 (+0100) Subject: re PR rtl-optimization/77416 (LRA rematerializing use of CA reg across function call) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90553aacf81daa11af51e62f687c0d5460ec1ee7;p=gcc.git re PR rtl-optimization/77416 (LRA rematerializing use of CA reg across function call) PR target/77416 * gcc.target/powerpc/pr77416.c Guard the test only for ilp32 effective target. Use powerpc* instead of powerpc64* in targets. Remove -m32 from dg-options. * gcc.target/powerpc/pr64205.c: Remove -m32 from dg-options of ilp32 guarded test. * gcc.target/powerpc/fusion4.c: Likewise. * gcc.target/powerpc/pr63491.c: Remove -m64 from dg-options of lp64 guarded test. * gcc.target/powerpc/pr58673-1.c: Likewise. * gcc.target/powerpc/pr58673-2.c: Likewise. * gcc.target/powerpc/pr59054.c: Likewise. From-SVN: r244585 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 480a09b78c3..5b38a565881 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,18 @@ +2017-01-18 Jakub Jelinek + + PR target/77416 + * gcc.target/powerpc/pr77416.c Guard the test only for ilp32 effective + target. Use powerpc* instead of powerpc64* in targets. Remove -m32 + from dg-options. + * gcc.target/powerpc/pr64205.c: Remove -m32 from dg-options of ilp32 + guarded test. + * gcc.target/powerpc/fusion4.c: Likewise. + * gcc.target/powerpc/pr63491.c: Remove -m64 from dg-options of lp64 + guarded test. + * gcc.target/powerpc/pr58673-1.c: Likewise. + * gcc.target/powerpc/pr58673-2.c: Likewise. + * gcc.target/powerpc/pr59054.c: Likewise. + 2017-01-18 Maxim Ostapenko PR lto/79061 diff --git a/gcc/testsuite/gcc.target/powerpc/fusion4.c b/gcc/testsuite/gcc.target/powerpc/fusion4.c index e0185ead1a3..7ee064c1182 100644 --- a/gcc/testsuite/gcc.target/powerpc/fusion4.c +++ b/gcc/testsuite/gcc.target/powerpc/fusion4.c @@ -2,7 +2,7 @@ /* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */ -/* { dg-options "-mcpu=power7 -mtune=power9 -O3 -msoft-float -m32" } */ +/* { dg-options "-mcpu=power7 -mtune=power9 -O3 -msoft-float" } */ #define LARGE 0x12345 diff --git a/gcc/testsuite/gcc.target/powerpc/pr58673-1.c b/gcc/testsuite/gcc.target/powerpc/pr58673-1.c index c99ce198987..01d53fa49ca 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr58673-1.c +++ b/gcc/testsuite/gcc.target/powerpc/pr58673-1.c @@ -2,7 +2,7 @@ /* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */ -/* { dg-options "-mcpu=power8 -m64 -O1" } */ +/* { dg-options "-mcpu=power8 -O1" } */ enum typecode { diff --git a/gcc/testsuite/gcc.target/powerpc/pr58673-2.c b/gcc/testsuite/gcc.target/powerpc/pr58673-2.c index 380ccd099e5..c9190942632 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr58673-2.c +++ b/gcc/testsuite/gcc.target/powerpc/pr58673-2.c @@ -2,7 +2,7 @@ /* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */ -/* { dg-options "-mcpu=power8 -O3 -m64 -funroll-loops" } */ +/* { dg-options "-mcpu=power8 -O3 -funroll-loops" } */ #include #include diff --git a/gcc/testsuite/gcc.target/powerpc/pr59054.c b/gcc/testsuite/gcc.target/powerpc/pr59054.c index 6871ea0d1af..c33d937dfef 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr59054.c +++ b/gcc/testsuite/gcc.target/powerpc/pr59054.c @@ -2,6 +2,6 @@ /* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */ /* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */ -/* { dg-options "-mcpu=power7 -O0 -m64" } */ +/* { dg-options "-mcpu=power7 -O0" } */ long foo (void) { return 0; } diff --git a/gcc/testsuite/gcc.target/powerpc/pr63491.c b/gcc/testsuite/gcc.target/powerpc/pr63491.c index 765bdda4189..a1518912308 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr63491.c +++ b/gcc/testsuite/gcc.target/powerpc/pr63491.c @@ -1,5 +1,5 @@ /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */ -/* { dg-options "-O1 -m64 -mcpu=power8 -mlra" } */ +/* { dg-options "-O1 -mcpu=power8 -mlra" } */ typedef __int128_t __attribute__((__vector_size__(16))) vector_128_t; typedef unsigned long long scalar_64_t; diff --git a/gcc/testsuite/gcc.target/powerpc/pr64205.c b/gcc/testsuite/gcc.target/powerpc/pr64205.c index ee5ff120abd..f421ec203a0 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr64205.c +++ b/gcc/testsuite/gcc.target/powerpc/pr64205.c @@ -1,7 +1,7 @@ /* { dg-do compile { target { powerpc*-*-* && ilp32 } } } */ /* { dg-skip-if "" { powerpc*-*-aix* } { "*" } { "" } } */ /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=G5" } } */ -/* { dg-options "-O2 -mcpu=G5 -maltivec -m32" } */ +/* { dg-options "-O2 -mcpu=G5 -maltivec" } */ union ieee754r_Decimal32 { diff --git a/gcc/testsuite/gcc.target/powerpc/pr77416.c b/gcc/testsuite/gcc.target/powerpc/pr77416.c index c87a1987ac5..cb7bcc94aef 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr77416.c +++ b/gcc/testsuite/gcc.target/powerpc/pr77416.c @@ -1,7 +1,7 @@ -/* { dg-do compile { target { powerpc64*-*-*} } } */ -/* { dg-skip-if "" { powerpc64-*-aix* } { "*" } { "" } } */ -/* { dg-skip-if "do not override -mcpu" { powerpc64*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */ -/* { dg-options "-mcpu=power7 -O2 -m32" } */ +/* { dg-do compile { target { { powerpc*-*-* } && ilp32 } } } */ +/* { dg-skip-if "" { powerpc*-*-aix* } { "*" } { "" } } */ +/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */ +/* { dg-options "-mcpu=power7 -O2" } */ /* { dg-final { scan-assembler-times "addze" 1 } } */ extern int fn2 ();