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]

Re: [patch] Make gcc.dg/old-style-asm-1.c use scan-assembler-times


Hello,

>         * gcc.dg/old-style-asm-1.c: Use scan-assembler-times.
> 
> This change introduces a test regression on hppa2.0w-hp-hpux11.11:  I
> enclose below the generated assembler output.  The first jump_insn
> and the return are both parallels, so the check for `set (pc)' doesn't
> work.

this should fix it.

Zdenek

Index: old-style-asm-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/old-style-asm-1.c,v
retrieving revision 1.5
diff -c -3 -p -r1.5 old-style-asm-1.c
*** old-style-asm-1.c	20 Oct 2003 12:15:27 -0000	1.5
--- old-style-asm-1.c	23 Oct 2003 20:43:37 -0000
*************** void foo(int v)
*** 20,23 ****
     in the generated code, supposedly corresponding to the if-statements.
     It tries to check for jump_insn (set (pc) pattern, so that jump_insns
     corresponding to return are not taken into account.  */
! /* { dg-final { scan-assembler-times "(?n)jump_insn.*set.*pc" 2 } } */
--- 20,23 ----
     in the generated code, supposedly corresponding to the if-statements.
     It tries to check for jump_insn (set (pc) pattern, so that jump_insns
     corresponding to return are not taken into account.  */
! /* { dg-final { scan-assembler "jump_insn.*set \\(pc\\).*jump_insn.*set \\(pc\\)"} } */


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