re PR middle-end/90095 (wrong code with -Os -fno-tree-bit-ccp)
authorJakub Jelinek <jakub@redhat.com>
Wed, 17 Apr 2019 13:28:39 +0000 (15:28 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 17 Apr 2019 13:28:39 +0000 (15:28 +0200)
commit0764a0d275c79d8a81332818e7ff6c6aa6b3a312
tree6955e4cddd0e33e4fe4162f4a2d13dbf54cf1771
parent02c9b9ccffc66ec68ad4c2a0786c00984563d863
re PR middle-end/90095 (wrong code with -Os -fno-tree-bit-ccp)

PR middle-end/90095
* internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
on lowpart SUBREGs.

* gcc.dg/pr90095-1.c: New test.
* gcc.dg/pr90095-2.c: New test.

From-SVN: r270410
gcc/ChangeLog
gcc/internal-fn.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr90095-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr90095-2.c [new file with mode: 0644]