re PR tree-optimization/81428 (ICE: in build_one_cst, at tree.c:2079 with -O2. Fixed...
authorJakub Jelinek <jakub@redhat.com>
Mon, 17 Jul 2017 10:20:41 +0000 (12:20 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 17 Jul 2017 10:20:41 +0000 (12:20 +0200)
commit9ebce098585220299a78ecda84b145d16ee25bca
tree73a891c66a84cfec47ab39ca54251651bb4b593c
parentf986e51e6c9caa727aa1364fb636814903aeccc8
re PR tree-optimization/81428 (ICE: in build_one_cst, at tree.c:2079 with -O2. Fixed point division.)

PR tree-optimization/81428
* match.pd (X / X -> one): Don't optimize _Fract divisions, as 1
can't be built for those types.

* gcc.dg/fixed-point/pr81428.c: New test.

From-SVN: r250265
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fixed-point/pr81428.c [new file with mode: 0644]