Re: [PATCH] cse: Fix up CSE const_anchor handling [PR108193]

2022-12-22 Thread Richard Biener via Gcc-patches
On Thu, 22 Dec 2022, Jakub Jelinek wrote: > Hi! > > The following testcase ICEs on aarch64, because insert_const_anchor > inserts invalid CONST_INT into the CSE tables - 0x8000 for SImode. > The second hunk of the patch fixes that, the first one is to avoid > triggering undefined behavior at

[PATCH] cse: Fix up CSE const_anchor handling [PR108193]

2022-12-22 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase ICEs on aarch64, because insert_const_anchor inserts invalid CONST_INT into the CSE tables - 0x8000 for SImode. The second hunk of the patch fixes that, the first one is to avoid triggering undefined behavior at compile time during compute_const_anchors computations