Commit 29ee7b16 by Zdenek Dvorak Committed by Zdenek Dvorak

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

From-SVN: r72682
parent cb0bc263
2003-10-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
* gcc.dg/old-style-asm-1.c: Use scan-assembler-times.
2003-10-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> 2003-10-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/12495 PR c++/12495
......
...@@ -18,10 +18,9 @@ void foo(int v) ...@@ -18,10 +18,9 @@ void foo(int v)
/* The purpose of the test below is to check that there are two branches /* The purpose of the test below is to check that there are two branches
in the generated code, supposedly corresponding to the if-statements. in the generated code, supposedly corresponding to the if-statements.
Warning: this is fragile and assumes that one of the generated labels Warning: this is fragile and assumes that the generated labels for the
for the branches matches the string "L2", or as with branches contain letter "L". That assumption is generally invalid,
mmix-knuth-mmixware, "L:2". That assumption is generally invalid,
because for example it depends on the target macro because for example it depends on the target macro
ASM_GENERATE_INTERNAL_LABEL to generate a name matching this regexp (as ASM_GENERATE_INTERNAL_LABEL to generate such a name (as with the default
with the default definition). */ definition). */
/* { dg-final { scan-assembler "L(:|\\\$0*)?2" } } */ /* { dg-final { scan-assembler-times "L" 4 } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment