+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
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;
-/* { 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
-/* { 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"
-/* { 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