From: Jakub Jelinek Date: Fri, 9 Jun 2017 08:02:00 +0000 (+0200) Subject: hard-reg-1-nov.c (mpx_test): Use "esp" instead of "rsp" for -m32. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48e692477f5e3e1e99755b1e964ddd8a51fb5775;p=gcc.git hard-reg-1-nov.c (mpx_test): Use "esp" instead of "rsp" for -m32. * gcc.target/i386/mpx/hard-reg-1-nov.c (mpx_test): Use "esp" instead of "rsp" for -m32. * gcc.target/i386/mpx/hard-reg-2-lbv.c: Require sse2_runtime effective target, add -msse2 to dg-options. * gcc.target/i386/mpx/hard-reg-2-nov.c: Likewise. * gcc.target/i386/mpx/hard-reg-2-ubv.c: Likewise. From-SVN: r249049 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9855db5fb8f..459d80b30b7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2017-06-09 Jakub Jelinek + + * gcc.target/i386/mpx/hard-reg-1-nov.c (mpx_test): Use "esp" + instead of "rsp" for -m32. + * gcc.target/i386/mpx/hard-reg-2-lbv.c: Require sse2_runtime effective + target, add -msse2 to dg-options. + * gcc.target/i386/mpx/hard-reg-2-nov.c: Likewise. + * gcc.target/i386/mpx/hard-reg-2-ubv.c: Likewise. + 2017-06-09 Segher Boessenkool PR target/80966 diff --git a/gcc/testsuite/gcc.target/i386/mpx/hard-reg-1-nov.c b/gcc/testsuite/gcc.target/i386/mpx/hard-reg-1-nov.c index 86276791e06..8cf72e55543 100644 --- a/gcc/testsuite/gcc.target/i386/mpx/hard-reg-1-nov.c +++ b/gcc/testsuite/gcc.target/i386/mpx/hard-reg-1-nov.c @@ -13,7 +13,11 @@ int rd (int *p, int i) int mpx_test (int argc, const char **argv) { +#ifdef __x86_64__ register int *frame __asm__("rsp"); +#else + register int *frame __asm__("esp"); +#endif rd (frame, 1); return 0; diff --git a/gcc/testsuite/gcc.target/i386/mpx/hard-reg-2-lbv.c b/gcc/testsuite/gcc.target/i386/mpx/hard-reg-2-lbv.c index 319e1ecd981..38fe59f8be9 100644 --- a/gcc/testsuite/gcc.target/i386/mpx/hard-reg-2-lbv.c +++ b/gcc/testsuite/gcc.target/i386/mpx/hard-reg-2-lbv.c @@ -1,6 +1,6 @@ -/* { dg-do run } */ +/* { dg-do run { target sse2_runtime } } */ /* { dg-shouldfail "bounds violation" } */ -/* { dg-options "-fcheck-pointer-bounds -mmpx" } */ +/* { dg-options "-fcheck-pointer-bounds -mmpx -msse2" } */ #define SHOULDFAIL diff --git a/gcc/testsuite/gcc.target/i386/mpx/hard-reg-2-nov.c b/gcc/testsuite/gcc.target/i386/mpx/hard-reg-2-nov.c index 3c6d39aad24..1db83f5b547 100644 --- a/gcc/testsuite/gcc.target/i386/mpx/hard-reg-2-nov.c +++ b/gcc/testsuite/gcc.target/i386/mpx/hard-reg-2-nov.c @@ -1,5 +1,5 @@ -/* { dg-do run } */ -/* { dg-options "-fcheck-pointer-bounds -mmpx" } */ +/* { dg-do run { target sse2_runtime } } */ +/* { dg-options "-fcheck-pointer-bounds -mmpx -msse2" } */ #include "mpx-check.h" diff --git a/gcc/testsuite/gcc.target/i386/mpx/hard-reg-2-ubv.c b/gcc/testsuite/gcc.target/i386/mpx/hard-reg-2-ubv.c index 7fe76c498e5..66607805ca4 100644 --- a/gcc/testsuite/gcc.target/i386/mpx/hard-reg-2-ubv.c +++ b/gcc/testsuite/gcc.target/i386/mpx/hard-reg-2-ubv.c @@ -1,6 +1,6 @@ -/* { dg-do run } */ +/* { dg-do run { target sse2_runtime } } */ /* { dg-shouldfail "bounds violation" } */ -/* { dg-options "-fcheck-pointer-bounds -mmpx" } */ +/* { dg-options "-fcheck-pointer-bounds -mmpx -msse2" } */ #define SHOULDFAIL