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:
Jakub Jelinek 2017-06-09 10:02:00 +02:00 committed by Jakub Jelinek
parent d88382176e
commit 48e692477f
5 changed files with 19 additions and 6 deletions

View File

@ -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>
PR target/80966

View File

@ -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;

View File

@ -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

View File

@ -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"

View File

@ -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