This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Scan andl/andq instead of andl


gcc.target/i386/stackalign/return-[456].c run in both 32bit and 64bit.
I am checking in this patch to scan andl/andq instead of andl as an
obvious fix.

Thanks.


H.J.
---
2009-03-02  H.J. Lu  <hongjiu.lu@intel.com>

	* gcc.target/i386/stackalign/return-4.c: Scan andl/andq instead
	of andl.
	* gcc.target/i386/stackalign/return-5.c: Likewise.
	* gcc.target/i386/stackalign/return-6.c: Likewise.

Index: gcc/testsuite/gcc.target/i386/stackalign/return-4.c
===================================================================
--- gcc/testsuite/gcc.target/i386/stackalign/return-4.c	(revision 144491)
+++ gcc/testsuite/gcc.target/i386/stackalign/return-4.c	(working copy)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-mpreferred-stack-boundary=4" } */
-/* { dg-final { scan-assembler-not "andl\[^\\n\]*-64,\[^\\n\]*sp" } } */
+/* { dg-final { scan-assembler-not "and\[lq\]?\[^\\n\]*-64,\[^\\n\]*sp" } } */
 
 /* This compile only test is to detect an assertion failure in stack branch
    development.  */
Index: gcc/testsuite/gcc.target/i386/stackalign/return-5.c
===================================================================
--- gcc/testsuite/gcc.target/i386/stackalign/return-5.c	(revision 144491)
+++ gcc/testsuite/gcc.target/i386/stackalign/return-5.c	(working copy)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-mpreferred-stack-boundary=4" } */
-/* { dg-final { scan-assembler-not "andl\[^\\n\]*-64,\[^\\n\]*sp" } } */
+/* { dg-final { scan-assembler-not "and\[lq\]?\[^\\n\]*-64,\[^\\n\]*sp" } } */
 
 /* This compile only test is to detect an assertion failure in stack branch
    development.  */
Index: gcc/testsuite/gcc.target/i386/stackalign/return-6.c
===================================================================
--- gcc/testsuite/gcc.target/i386/stackalign/return-6.c	(revision 144491)
+++ gcc/testsuite/gcc.target/i386/stackalign/return-6.c	(working copy)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-mpreferred-stack-boundary=4" } */
-/* { dg-final { scan-assembler-not "andl\[^\\n\]*-64,\[^\\n\]*sp" } } */
+/* { dg-final { scan-assembler-not "and\[lq\]?\[^\\n\]*-64,\[^\\n\]*sp" } } */
 
 /* This compile only test is to detect an assertion failure in stack branch
    development.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]