diff options
author | Hans-Peter Nilsson <hp@bitrange.com> | 2003-03-08 14:08:16 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@gcc.gnu.org> | 2003-03-08 14:08:16 +0000 |
commit | af8128133f94658bf5b975ff4e518dbd0172c624 (patch) | |
tree | d355a28576e3bc1e17311734d5ff93b874d53843 /gcc | |
parent | 39a91264452e0a808e8dd448196f929410541dff (diff) | |
download | gcc-af8128133f94658bf5b975ff4e518dbd0172c624.zip gcc-af8128133f94658bf5b975ff4e518dbd0172c624.tar.gz gcc-af8128133f94658bf5b975ff4e518dbd0172c624.tar.bz2 |
* gcc.dg/old-style-asm-1.c: Tweak to match mmix-knuth-mmixware.
From-SVN: r63991
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/old-style-asm-1.c | 10 |
2 files changed, 13 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5d7b965..e9b24f6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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-08 Neil Booth <neil@daikokuya.co.uk> * gcc.dg/cpp/Wunused.c: Update test. diff --git a/gcc/testsuite/gcc.dg/old-style-asm-1.c b/gcc/testsuite/gcc.dg/old-style-asm-1.c index 006cf09..a265fe1 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" } } */ |