diff options
author | Jeff Law <law@redhat.com> | 2014-04-23 12:04:46 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2014-04-23 12:04:46 -0600 |
commit | 9219922e543dec72f15bc095f8a99d25d2a60d24 (patch) | |
tree | f8adaeb72edcd87f9048cb8d2adcbfeeeeeba83f /gcc/testsuite | |
parent | 0e4d63c5eef5c0565ac1d42ae1ac43a12c9fd071 (diff) | |
download | gcc-9219922e543dec72f15bc095f8a99d25d2a60d24.zip gcc-9219922e543dec72f15bc095f8a99d25d2a60d24.tar.gz gcc-9219922e543dec72f15bc095f8a99d25d2a60d24.tar.bz2 |
re PR tree-optimization/60902 (ffmpeg built with gcc 4.9 RC produces incorrect flac playback code)
PR tree-optimization/60902
* tree-ssa-threadedge.c
(record_temporary_equivalences_from_stmts_at_dest): Make sure to
invalidate outputs from statements that do not produce useful
outputs for threading.
PR tree-optimization/60902
* gcc.target/i386/pr60902.c: New test.
From-SVN: r209716
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr60902.c | 32 |
2 files changed, 37 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 126ad08..62b07f4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-04-23 Jeff Law <law@redhat.com> + + PR tree-optimization/60902 + * gcc.target/i386/pr60902.c: New test. + 2014-04-23 Alex Velenko <Alex.Velenko@arm.com> * gcc.target/aarch64/vdup_lane_1.c: New testcase. diff --git a/gcc/testsuite/gcc.target/i386/pr60902.c b/gcc/testsuite/gcc.target/i386/pr60902.c new file mode 100644 index 0000000..b81dcd7 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr60902.c @@ -0,0 +1,32 @@ +/* { dg-do run } */ +/* { dg-options "-O2" } */ +extern void abort (); +extern void exit (int); + +int x; + +foo() +{ + static int count; + count++; + if (count > 1) + abort (); +} + +static inline int +frob () +{ + int a; + __asm__ ("mov %1, %0\n\t" : "=r" (a) : "m" (x)); + x++; + return a; +} + +int +main () +{ + int i; + for (i = 0; i < 10 && frob () == 0; i++) + foo(); + exit (0); +} |