From: Hans-Peter Nilsson Date: Sat, 8 Mar 2003 14:04:35 +0000 (+0000) Subject: * gcc.dg/old-style-asm-1.c: Tweak to match mmix-knuth-mmixware. X-Git-Tag: releases/gcc-3.2.3~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d688dcac6816243664377215ff8d074843b54b71;p=thirdparty%2Fgcc.git * gcc.dg/old-style-asm-1.c: Tweak to match mmix-knuth-mmixware. From-SVN: r63989 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 99ce38298e92..164941741ce1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2003-03-08 Hans-Peter Nilsson + + * gcc.dg/old-style-asm-1.c: Tweak to match mmix-knuth-mmixware. + 2003-03-07 Eric Botcazou * gcc.c-torture/execute/20030307-1.c: New test. diff --git a/gcc/testsuite/gcc.dg/old-style-asm-1.c b/gcc/testsuite/gcc.dg/old-style-asm-1.c index 006cf0949b08..a265fe10d842 100644 --- a/gcc/testsuite/gcc.dg/old-style-asm-1.c +++ b/gcc/testsuite/gcc.dg/old-style-asm-1.c @@ -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" } } */