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] Make gcc.dg/old-style-asm-1.c use scan-assembler-times


Hello,

gcc.dg/old-style-asm-1.c scans for L2 in order to check whether at least
two labels are emitted.  This does not work with one of my tree-ssa
patches, that cause the labels to be L1 and L3.  I am commiting this
patch to make it check whether there are 4 'L' letters instead.

Zdenek

	* gcc.dg/old-style-asm-1.c: Use scan-assembler-times.

Index: old-style-asm-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/old-style-asm-1.c,v
retrieving revision 1.3
diff -c -3 -p -r1.3 old-style-asm-1.c
*** old-style-asm-1.c	13 Mar 2003 03:54:27 -0000	1.3
--- old-style-asm-1.c	19 Oct 2003 18:36:18 -0000
*************** void foo(int v)
*** 18,27 ****
  
  /* The purpose of the test below is to check that there are two branches
     in the generated code, supposedly corresponding to the if-statements.
!    Warning: this is fragile and assumes that one of the generated labels
!    for the branches matches the string "L2", or as with
!    mmix-knuth-mmixware, "L:2".  That assumption is generally invalid,
     because for example it depends on the target macro
!    ASM_GENERATE_INTERNAL_LABEL to generate a name matching this regexp (as
!    with the default definition).  */
! /* { dg-final { scan-assembler "L(:|\\\$0*)?2" } } */
--- 18,26 ----
  
  /* The purpose of the test below is to check that there are two branches
     in the generated code, supposedly corresponding to the if-statements.
!    Warning: this is fragile and assumes that the generated labels for the
!    branches contain letter "L".  That assumption is generally invalid,
     because for example it depends on the target macro
!    ASM_GENERATE_INTERNAL_LABEL to generate such a name (as with the default
!    definition).  */
! /* { dg-final { scan-assembler-times "L" 4 } } */


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