Fix target/100106 ICE in gen_movdi
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 21 Apr 2021 12:13:04 +0000 (14:13 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 27 Apr 2021 15:47:25 +0000 (17:47 +0200)
commitc33db31d9ad96f6414460315c12b4b505fad5dd7
treed6eced509e19fdc7efbe871cf8dc418f8485970d
parent3bb41228d76b3a3cbd9923d57388f0903f7683de
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.
gcc/simplify-rtx.c
gcc/testsuite/gcc.c-torture/compile/pr100106.c [new file with mode: 0644]