Re: [PATCH] Fix overflow-vec-{1,2} testcases on ppc64/s390x (PR middle-end/79454)

2017-02-10 Thread Richard Biener
On February 10, 2017 8:45:09 PM GMT+01:00, Jakub Jelinek wrote: >Hi! > >UBSAN_*_OVERFLOW ifns on vector types prefer to just check in a loop >for overflow, but perform the vector arithmetics on vectors. The >advantage >is that the partial results don't have to be inserted one by one into >the >r

[PATCH] Fix overflow-vec-{1,2} testcases on ppc64/s390x (PR middle-end/79454)

2017-02-10 Thread Jakub Jelinek
Hi! UBSAN_*_OVERFLOW ifns on vector types prefer to just check in a loop for overflow, but perform the vector arithmetics on vectors. The advantage is that the partial results don't have to be inserted one by one into the result vector. This requires that there is an instruction to perform that.