commit r11-10370-gc97c6569c826731910459812e3608255962dab78
Author: H.J. Lu <email address hidden>
Date: Wed Oct 19 12:53:35 2022 -0700
Always use TYPE_MODE instead of DECL_MODE for vector field
e034c5c8957 re PR target/78643 (ICE in convert_move, at expr.c:230)
fixed the case where DECL_MODE of a vector field is BLKmode and its
TYPE_MODE is a vector mode because of target attribute. Remove the
BLKmode check for the case where DECL_MODE of a vector field is a vector
mode and its TYPE_MODE isn't a vector mode because of target attribute.
gcc/
PR target/107304
* expr.c (get_inner_reference): Always use TYPE_MODE for vector
field with vector raw mode.
gcc/testsuite/
PR target/107304
* gcc.target/i386/pr107304.c: New test.
(cherry picked from commit 1c64aba8cdf6509533f554ad86640f274cdbe37f)
The releases/gcc-11 branch has been updated by H.J. Lu <email address hidden>:
https:/ /gcc.gnu. org/g:c97c6569c 826731910459812 e3608255962dab7 8
commit r11-10370- gc97c6569c82673 1910459812e3608 255962dab78
Author: H.J. Lu <email address hidden>
Date: Wed Oct 19 12:53:35 2022 -0700
Always use TYPE_MODE instead of DECL_MODE for vector field
e034c5c8957 re PR target/78643 (ICE in convert_move, at expr.c:230)
fixed the case where DECL_MODE of a vector field is BLKmode and its
TYPE_MODE is a vector mode because of target attribute. Remove the
BLKmode check for the case where DECL_MODE of a vector field is a vector
mode and its TYPE_MODE isn't a vector mode because of target attribute.
gcc/
PR target/107304 reference) : Always use TYPE_MODE for vector
* expr.c (get_inner_
field with vector raw mode.
gcc/testsuite/
PR target/107304 i386/pr107304. c: New test.
* gcc.target/
(cherry picked from commit 1c64aba8cdf6509 533f554ad86640f 274cdbe37f)