Test case for PR rtl-optimization/60473
authorRoger Sayle <roger@nextmovesoftware.com>
Tue, 4 Aug 2020 15:56:06 +0000 (16:56 +0100)
committerRoger Sayle <roger@nextmovesoftware.com>
Tue, 4 Aug 2020 15:57:34 +0000 (16:57 +0100)
commit76eafcc395d2bcd4147cb1ba1a8aff321571402f
treeb3229a1f228034bb4fc5ddfeba8513129d87f9ac
parentca2b8c082c4f16919071c9f8de8db0b33b54c405
Test case for PR rtl-optimization/60473

PR rtl-optimization/60473 is code quality regression that has
been cured by improvements to register allocation.  For the function
in the test case, GCC 4.4, 4.5 and 4.6 generated very poor code
requiring two mov instructions, and GCC 4.7 and 4.8 (when the PR was
filed) produced better but still poor code with one mov instruction.
Since GCC 4.9 (including current mainline), it generates optimal
code with no mov instructions, matching what used to be generated
in GCC 4.1.

2020-08-04  Roger Sayle  <roger@nextmovesoftware.com>

gcc/testsuite/ChangeLog
PR rtl-optimization/60473
* gcc.target/i386/pr60473.c: New test.
gcc/testsuite/gcc.target/i386/pr60473.c [new file with mode: 0644]