Patchwork PATCH: Enable x32 check on more i386 tests

login
register
mail settings
Submitter H.J. Lu
Date Nov. 13, 2012, 11:56 a.m.
Message ID <20121113115656.GA13571@gmail.com>
Download mbox | patch
Permalink /patch/198634/
State New
Headers show

Comments

H.J. Lu - Nov. 13, 2012, 11:56 a.m.
Hi,

This patch enables x32 check on more i386 tests.  Tested with

RUNTESTFLAGS="--target_board='unix{-mx32\ -maddress-mode=short,-mx32\ -maddress-mode=long,-m32,}'

on Linux/x86-64.  OK to install?

Thanks.


H.J.
---
2012-11-13  H.J. Lu  <hongjiu.lu@intel.com>

	* gcc.target/i386/avx256-unaligned-load-2.c: Requre !ia32
	instead of lp64.
	* gcc.target/i386/avx256-unaligned-store-2.c: Likewise.
	* gcc.target/i386/pr49715-2.c: Likewise.
	* gcc.target/i386/retarg.c: Likewise.  Scan both %rdi and %edi.
Uros Bizjak - Nov. 13, 2012, 12:10 p.m.
On Tue, Nov 13, 2012 at 12:56 PM, H.J. Lu <hjl.tools@gmail.com> wrote:

> This patch enables x32 check on more i386 tests.  Tested with
>
> RUNTESTFLAGS="--target_board='unix{-mx32\ -maddress-mode=short,-mx32\ -maddress-mode=long,-m32,}'
>
> on Linux/x86-64.  OK to install?

OK.

Thanks,
Uros.

Patch

diff --git a/gcc/testsuite/gcc.target/i386/avx256-unaligned-load-2.c b/gcc/testsuite/gcc.target/i386/avx256-unaligned-load-2.c
index 3f4fbf7..2947d9e 100644
--- a/gcc/testsuite/gcc.target/i386/avx256-unaligned-load-2.c
+++ b/gcc/testsuite/gcc.target/i386/avx256-unaligned-load-2.c
@@ -1,5 +1,4 @@ 
-/* { dg-do compile } */
-/* { dg-require-effective-target lp64 } */
+/* { dg-do compile { target { ! ia32 } } } */
 /* { dg-options "-O3 -dp -mavx -mavx256-split-unaligned-load" } */
 
 #define N 1024
diff --git a/gcc/testsuite/gcc.target/i386/avx256-unaligned-store-2.c b/gcc/testsuite/gcc.target/i386/avx256-unaligned-store-2.c
index e98d1b6..977662b 100644
--- a/gcc/testsuite/gcc.target/i386/avx256-unaligned-store-2.c
+++ b/gcc/testsuite/gcc.target/i386/avx256-unaligned-store-2.c
@@ -1,5 +1,4 @@ 
-/* { dg-do compile } */
-/* { dg-require-effective-target lp64 } */
+/* { dg-do compile { target { ! ia32 } } } */
 /* { dg-options "-O3 -dp -mavx -mavx256-split-unaligned-store" } */
 
 #define N 1024
diff --git a/gcc/testsuite/gcc.target/i386/pr49715-2.c b/gcc/testsuite/gcc.target/i386/pr49715-2.c
index 3fc8e4e..76d7137 100644
--- a/gcc/testsuite/gcc.target/i386/pr49715-2.c
+++ b/gcc/testsuite/gcc.target/i386/pr49715-2.c
@@ -1,5 +1,4 @@ 
-/* { dg-do compile } */
-/* { dg-require-effective-target lp64 } */
+/* { dg-do compile { target { ! ia32 } } } */
 /* { dg-options "-O2" } */
 
 double func(unsigned long long x)
diff --git a/gcc/testsuite/gcc.target/i386/retarg.c b/gcc/testsuite/gcc.target/i386/retarg.c
index 3af770d..a69b60f 100644
--- a/gcc/testsuite/gcc.target/i386/retarg.c
+++ b/gcc/testsuite/gcc.target/i386/retarg.c
@@ -1,5 +1,4 @@ 
-/* { dg-require-effective-target lp64 } */
-/* { dg-do compile } */
+/* { dg-do compile { target { ! ia32 } } } */
 /* { dg-options "-O2" } */
 
 #include <string.h>
@@ -10,4 +9,4 @@  void *p (void *x, void *y, int z)
   return x;
 }
 
-/* { dg-final { scan-assembler-not "%rdi" } } */
+/* { dg-final { scan-assembler-not "%\[re\]di" } } */