rs6000: Properly handle LE index munging in vec_shr (PR94710)
authorSegher Boessenkool <segher@kernel.crashing.org>
Fri, 24 Apr 2020 13:33:14 +0000 (13:33 +0000)
committerSegher Boessenkool <segher@kernel.crashing.org>
Fri, 24 Apr 2020 18:55:32 +0000 (18:55 +0000)
commit9c725245beed2f056b67f5dc218fef6cb869c5f2
treeb6d2447f5e39505435f723d8c8b6b0d67b2b2560
parent9407f0c32b215d55d3474a234b0043bddc185b1c
rs6000: Properly handle LE index munging in vec_shr (PR94710)

The PR shows the compiler crashing with -mvsx -mlittle -O0.  This turns
out to be caused by a failure to make of the higher bits in an index
endian conversion.

2020-04-24  Segher Boessenkool  <segher@kernel.crashing.org>

PR target/94710
* config/rs6000/vector.md (vec_shr_<mode> for VEC_L): Correct little
endian byteshift_val calculation.
gcc/ChangeLog
gcc/config/rs6000/vector.md