diff options
Diffstat (limited to 'gcc/testsuite/gcc.target')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr61801.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr61801.c b/gcc/testsuite/gcc.target/i386/pr61801.c index c15cfd8d4b7..d0d08ccb401 100644 --- a/gcc/testsuite/gcc.target/i386/pr61801.c +++ b/gcc/testsuite/gcc.target/i386/pr61801.c @@ -1,22 +1,21 @@ +/* PR rtl-optimization/61801 */ /* { dg-do compile } */ /* { dg-options "-Os -fcompare-debug" } */ -int a, b, c; -void fn1 () +int a, c; +int bar (void); +void baz (void); + +void +foo (void) { int d; - if (fn2 () && !0) + if (bar ()) { - b = ( - { - int e; - fn3 (); - switch (0) - default: - asm volatile("" : "=a"(e) : "0"(a), "i"(0)); - e; - }); - d = b; + int e; + baz (); + asm volatile ("" : "=a" (e) : "0" (a), "i" (0)); + d = e; } c = d; } |