diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-06 08:40:19 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-06 08:40:19 +0000 |
commit | fd8cd4e807d6566d67bc787fbfebb827d9fb1b06 (patch) | |
tree | e6ac70b0024a0cbc4efc8ff85f092de3b4f07e35 /gcc/testsuite/gcc.target/i386 | |
parent | 978f06f422000cf71020c12de830374c7cc96ed5 (diff) | |
download | gcc-fd8cd4e807d6566d67bc787fbfebb827d9fb1b06.tar.gz |
PR rtl-optimization/61801
* gcc.target/i386/pr61801.c: Rewritten.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213652 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.target/i386')
-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; } |