Commit 48e69247 by Jakub Jelinek Committed by Jakub Jelinek

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
parent d8838217
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) ...@@ -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;
......
/* { 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
......
/* { 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"
......
/* { 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment