aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>2003-10-20 14:15:27 +0200
committerZdenek Dvorak <rakdver@gcc.gnu.org>2003-10-20 12:15:27 +0000
commitadccacc41df4afbdaaa6a5b45364a51708e56088 (patch)
treedcd61af2273f36aee55ab592c6bf3369cfd00826
parent59823ba49b07815a6ee75d87c95d860f904f4883 (diff)
downloadgcc-adccacc41df4afbdaaa6a5b45364a51708e56088.zip
gcc-adccacc41df4afbdaaa6a5b45364a51708e56088.tar.gz
gcc-adccacc41df4afbdaaa6a5b45364a51708e56088.tar.bz2
* gcc.dg/old-style-asm-1.c: Count jump_insns instead of labels.
From-SVN: r72698
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/old-style-asm-1.c11
2 files changed, 8 insertions, 7 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 7b8e888..533e98b 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/gcc.dg/old-style-asm-1.c b/gcc/testsuite/gcc.dg/old-style-asm-1.c
index 6082a24..5c515a6 100644
--- a/gcc/testsuite/gcc.dg/old-style-asm-1.c
+++ b/gcc/testsuite/gcc.dg/old-style-asm-1.c
@@ -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 } } */