Index: gcc/gcc/testsuite/gcc.dg/torture/stackalign/alloca-3.c |
diff --git a/gcc/gcc/testsuite/gcc.dg/torture/stackalign/alloca-3.c b/gcc/gcc/testsuite/gcc.dg/torture/stackalign/alloca-3.c |
index 47f3607c2a5a1477e18d89a3d4dbaf5de1302342..8a91121febe5264a3e17ce00c3ccf68475726c33 100644 |
--- a/gcc/gcc/testsuite/gcc.dg/torture/stackalign/alloca-3.c |
+++ b/gcc/gcc/testsuite/gcc.dg/torture/stackalign/alloca-3.c |
@@ -1,9 +1,10 @@ |
/* PR middle-end/37009 */ |
/* { dg-do run { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ |
/* { dg-options "-msse2" } */ |
+/* { dg-require-effective-target sse2 } */ |
+/* { dg-require-effective-target sse2_runtime } */ |
#include <emmintrin.h> |
-#include "cpuid.h" |
#include "check.h" |
#ifndef ALIGNMENT |
@@ -43,14 +44,7 @@ int |
main (void) |
{ |
__m128 x = { 1.0 }; |
- unsigned int eax, ebx, ecx, edx; |
- |
- if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx)) |
- return 0; |
- |
- /* Run SSE2 test only if host has SSE2 support. */ |
- if (edx & bit_SSE2) |
- foo (x, x, x, x, 5); |
+ foo (x, x, x, x, 5); |
return 0; |
} |