]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR middle-end/89210
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Feb 2019 09:16:19 +0000 (09:16 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Feb 2019 09:16:19 +0000 (09:16 +0000)
commit641cffa6fad0b83bff343b27660b14f4f18b26ad
tree36db92da41720345c8b90ec4dd599bb527a46a17
parent1a1a006be54f4325502e05ead5130e11d1f47a1d
PR middle-end/89210
* fold-const-call.c (fold_const_vec_convert): Pass true as last
operand to new_unary_operation only if both element types are integral
and it isn't a widening conversion.  Return NULL_TREE if
new_unary_operation failed.

* c-c++-common/builtin-convertvector-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268573 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const-call.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/builtin-convertvector-2.c [new file with mode: 0644]