OSDN Git Service

* gcc.dg/old-style-asm-1.c: Count jump_insns instead of labels.
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Oct 2003 12:15:27 +0000 (12:15 +0000)
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Oct 2003 12:15:27 +0000 (12:15 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72698 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/old-style-asm-1.c

index 7b8e888..533e98b 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
+
+       * gcc.dg/old-style-asm-1.c: Count jump_insns instead of labels.
+
 2003-10-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        * gcc.dg/builtins-18.c: Wrap C99 tests with HAVE_C99_RUNTIME.
index 6082a24..5c515a6 100644 (file)
@@ -1,6 +1,6 @@
 /* PR inline-asm/8832 */
 /* { dg-do compile } */
-/* { dg-options "-O2" } */
+/* { dg-options "-O2 -dP" } */
 
 /* Verify that GCC doesn't optimize
    old style asm instructions.  */
@@ -18,9 +18,6 @@ void foo(int v)
 
 /* 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 } } */
+   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 } } */