This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix label scanning in flatten-?.c tests
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 19 Jul 2005 15:25:00 +0200 (CEST)
- Subject: [PATCH] Fix label scanning in flatten-?.c tests
As subject says. Verified it still works on x86_64-unknown-linux-gnu;
I don't have a hpux machine here for testing, but other tests use
similar patterns.
Ok for mainline?
Thanks,
Richard.
2005-07-19 Richard Guenther <rguenther@suse.de>
PR testsuite/22522
* gcc.dg/tree-ssa/flatten-1.c: Use correct regexp for
scanning for asm labels.
* gcc.dg/tree-ssa/flatten-2.c: Likewise.
Index: gcc.dg/tree-ssa/flatten-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/flatten-1.c,v
retrieving revision 1.1
diff -c -3 -p -r1.1 flatten-1.c
*** gcc.dg/tree-ssa/flatten-1.c 15 Jul 2005 09:31:39 -0000 1.1
--- gcc.dg/tree-ssa/flatten-1.c 19 Jul 2005 13:21:35 -0000
*************** int __attribute__((flatten)) leaf3(int i
*** 52,57 ****
return j;
}
! /* { dg-final { scan-assembler-not "g:" } } */
! /* { dg-final { scan-assembler-not "f:" } } */
! /* { dg-final { scan-assembler-not "bar:" } } */
--- 52,57 ----
return j;
}
! /* { dg-final { scan-assembler-not "g\[: \t\n\]" } } */
! /* { dg-final { scan-assembler-not "f\[: \t\n\]" } } */
! /* { dg-final { scan-assembler-not "bar\[: \t\n\]" } } */
Index: gcc.dg/tree-ssa/flatten-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/flatten-2.c,v
retrieving revision 1.1
diff -c -3 -p -r1.1 flatten-2.c
*** gcc.dg/tree-ssa/flatten-2.c 15 Jul 2005 09:31:39 -0000 1.1
--- gcc.dg/tree-ssa/flatten-2.c 19 Jul 2005 13:21:35 -0000
*************** void __attribute__((flatten)) doublesubc
*** 72,76 ****
doublesubcycle1();
}
! /* { dg-final { scan-assembler "cycle.:" } } */
! /* { dg-final { scan-assembler-not "indirect.:" } } */
--- 72,76 ----
doublesubcycle1();
}
! /* { dg-final { scan-assembler "cycle.\[: \t\n\]" } } */
! /* { dg-final { scan-assembler-not "indirect.\[: \t\n\]" } } */