mirror of git://gcc.gnu.org/git/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
This commit is contained in:
parent
d88382176e
commit
48e692477f
|
|
@ -1,3 +1,12 @@
|
||||||
|
2017-06-09 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* 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 <segher@kernel.crashing.org>
|
2017-06-09 Segher Boessenkool <segher@kernel.crashing.org>
|
||||||
|
|
||||||
PR target/80966
|
PR target/80966
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,11 @@ int rd (int *p, int i)
|
||||||
|
|
||||||
int mpx_test (int argc, const char **argv)
|
int mpx_test (int argc, const char **argv)
|
||||||
{
|
{
|
||||||
|
#ifdef __x86_64__
|
||||||
register int *frame __asm__("rsp");
|
register int *frame __asm__("rsp");
|
||||||
|
#else
|
||||||
|
register int *frame __asm__("esp");
|
||||||
|
#endif
|
||||||
rd (frame, 1);
|
rd (frame, 1);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/* { dg-do run } */
|
/* { dg-do run { target sse2_runtime } } */
|
||||||
/* { dg-shouldfail "bounds violation" } */
|
/* { dg-shouldfail "bounds violation" } */
|
||||||
/* { dg-options "-fcheck-pointer-bounds -mmpx" } */
|
/* { dg-options "-fcheck-pointer-bounds -mmpx -msse2" } */
|
||||||
|
|
||||||
|
|
||||||
#define SHOULDFAIL
|
#define SHOULDFAIL
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/* { dg-do run } */
|
/* { dg-do run { target sse2_runtime } } */
|
||||||
/* { dg-options "-fcheck-pointer-bounds -mmpx" } */
|
/* { dg-options "-fcheck-pointer-bounds -mmpx -msse2" } */
|
||||||
|
|
||||||
#include "mpx-check.h"
|
#include "mpx-check.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/* { dg-do run } */
|
/* { dg-do run { target sse2_runtime } } */
|
||||||
/* { dg-shouldfail "bounds violation" } */
|
/* { dg-shouldfail "bounds violation" } */
|
||||||
/* { dg-options "-fcheck-pointer-bounds -mmpx" } */
|
/* { dg-options "-fcheck-pointer-bounds -mmpx -msse2" } */
|
||||||
|
|
||||||
|
|
||||||
#define SHOULDFAIL
|
#define SHOULDFAIL
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue