PATCH: Make pr16660-1.c ia32 specific
H.J. Lu
hongjiu.lu@intel.com
Thu Jul 31 05:20:00 GMT 2008
Hi,
gcc.dg/torture/stackalign/pr16660-1.c is an ia32 specific test since
it uses inline asm. This patch moves it to gcc.target/i386. OK for
trunk?
Thanks.
H.J.
---
2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
* gcc.dg/torture/stackalign/pr16660-1.c: Removed.
* gcc.target/i386/pr16660.c: New.
--- gcc/testsuite/gcc.dg/torture/stackalign/pr16660-1.c.align 2008-07-30 12:28:52.000000000 -0700
+++ gcc/testsuite/gcc.dg/torture/stackalign/pr16660-1.c 2008-07-30 17:59:15.000000000 -0700
@@ -1,15 +0,0 @@
-/* { dg-do run } */
-
-void
-f ()
-{
- unsigned long tmp[4] __attribute__((aligned(16)));
- asm("movaps %%xmm0, (%0)" : : "r" (tmp) : "memory");
-}
-
-int
-main()
-{
- f();
- return 0;
-}
--- gcc/testsuite/gcc.target/i386/pr16660.c.align 2008-07-30 17:55:21.000000000 -0700
+++ gcc/testsuite/gcc.target/i386/pr16660.c 2008-07-30 17:58:51.000000000 -0700
@@ -0,0 +1,17 @@
+/* { dg-do run } */
+/* { dg-require-effective-target ilp32 } */
+/* { dg-options "-mpreferred-stack-boundary=2" } */
+
+void
+f ()
+{
+ unsigned long tmp[4] __attribute__((aligned(16)));
+ asm("movaps %%xmm0, (%0)" : : "r" (tmp) : "memory");
+}
+
+int
+main()
+{
+ f();
+ return 0;
+}
More information about the Gcc-patches
mailing list