]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix target/100106 ICE in gen_movdi
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 21 Apr 2021 12:13:04 +0000 (14:13 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 7 Apr 2022 09:55:37 +0000 (11:55 +0200)
commit5155015ce57dc133e006f87fdf0237a5f259bebd
tree7d9cf8c26ca5c9a63d8a4e5757bde7dea1827830
parentd34083a16b51c85b49092b0a5d9d444750f32134
Fix target/100106 ICE in gen_movdi

As the test case shows, the outer mode may have a higher alignment
requirement than the inner mode here.

2021-04-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>

PR target/100106
* simplify-rtx.c (simplify_context::simplify_subreg): Check the
memory alignment for the outer mode.

* gcc.c-torture/compile/pr100106.c: New testcase.

(cherry picked from commit c33db31d9ad96f6414460315c12b4b505fad5dd7)
gcc/simplify-rtx.c
gcc/testsuite/gcc.c-torture/compile/pr100106.c [new file with mode: 0644]