Remove useless floating point casts in comparisons

Programming / Compilers / GCC - ygribov [138bc75d-0d04-0410-961f-82ee72b054a4] - 4 August 2017 16:29 EDT

2017-08-04 Yury Gribov

PR tree-optimization/57371

gcc/
- match.pd: New pattern.

gcc/testsuite/
- c-c++-common/pr57371-1.c: New test.
- c-c++-common/pr57371-2.c: New test.
- c-c++-common/pr57371-3.c: New test.
- c-c++-common/pr57371-4.c: New test.
- gcc.dg/pr57371-5.c: New test.

29587d8 Remove useless floating point casts in comparisons.
gcc/ChangeLog | 5 +
gcc/match.pd | 74 +++++++
gcc/testsuite/ChangeLog | 9 +
gcc/testsuite/c-c++-common/pr57371-1.c | 341 +++++++++++++++++++++++++++++++++
gcc/testsuite/c-c++-common/pr57371-2.c | 17 ++
gcc/testsuite/c-c++-common/pr57371-3.c | 13 ++
gcc/testsuite/c-c++-common/pr57371-4.c | 72 +++++++
gcc/testsuite/gcc.dg/pr57371-5.c | 10 +
8 files changed, 541 insertions(+)

Upstream: gcc.gnu.org


  • Share