]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gcc.dg/old-style-asm-1.c: Tweak to match mmix-knuth-mmixware.
authorHans-Peter Nilsson <hp@bitrange.com>
Sat, 8 Mar 2003 14:04:35 +0000 (14:04 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Sat, 8 Mar 2003 14:04:35 +0000 (14:04 +0000)
From-SVN: r63989

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

index 99ce38298e92add66eef4135d47c69c34186a9f6..164941741ce19d897c9f35de9c76b99989547b5e 100644 (file)
@@ -1,3 +1,7 @@
+2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
+
+       * gcc.dg/old-style-asm-1.c: Tweak to match mmix-knuth-mmixware.
+
 2003-03-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        * gcc.c-torture/execute/20030307-1.c: New test.
index 006cf0949b088ec1592274284f93dc082326f664..a265fe10d842acca5231987cf1028a744e2ffd9a 100644 (file)
@@ -16,4 +16,12 @@ void foo(int v)
     asm ("dummy3");
 }
 
-/* { dg-final { scan-assembler "L2" } } */
+/* 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(:)?2" } } */