[Bug rtl-optimization/67553] Saturating SSE/AVX instructions do not get optimized

2015-09-11 Thread tmb99 at gmx dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67553 --- Comment #2 from tmb99 at gmx dot net --- seems to be the same for most saturating instructions: __m128i v0 = _mm_setzero_si128(); __m128i v2 = _mm_setzero_si128(); __m128i sum = _mm_adds_epi16(v0,v2); __m128i dif = _mm_subs_epi8(v0,v2

[Bug middle-end/67553] New: Saturating SSE/AVX instructions do not get optimized

2015-09-11 Thread tmb99 at gmx dot net
Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: tmb99 at gmx dot net Target Milestone: --- Compiling this code with -O3 -mavx __m128i v0 = _mm_setzero_si128(); __m128i v2 = _mm_setzero_si128(); __m128i sum = _mm_adds_epi16(v0,v2); __m128i dif