Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: gcc/gcc/testsuite/gcc.dg/torture/stackalign/alloca-3.c

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/torture/pr39074.c ('k') | gcc/gcc/testsuite/gcc.dg/torture/stackalign/stackalign.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698