optabs.c (expand_binop): Pass INT_MODE to operand_subword_force iff the operand is...
commitc933b893537f9d73a73ea70c551bdfca363ff5d8
authorJeff Law <law@redhat.com>
Wed, 14 Nov 2018 16:36:19 +0000 (14 09:36 -0700)
committerJeff Law <law@gcc.gnu.org>
Wed, 14 Nov 2018 16:36:19 +0000 (14 09:36 -0700)
tree8345e33d0bb50e0a0ea7a6855708b64db6725a22
parentff361cc65f8e90aa77884c93d77e592cc470d6b7
optabs.c (expand_binop): Pass INT_MODE to operand_subword_force iff the operand is a constant.

* optabs.c (expand_binop): Pass INT_MODE to operand_subword_force
iff the operand is a constant.

* gcc.c-torture/compile/20181114.c: New test.

2018-11-14  Ilya Leoshkevich  <iii@linux.ibm.com>

From-SVN: r266151
gcc/ChangeLog
gcc/optabs.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20181114-1.c [new file with mode: 0644]