https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116033

--- Comment #2 from Christoph Müllner <cmuellner at gcc dot gnu.org> ---
Jeff Law claimed that th_classify_address() is likely missing a mode check.
I checked that before, and there is a mode check there.
But, after this comment, I challenged the test and indeed:
  if (!(INTEGRAL_MODE_P (mode) && GET_MODE_SIZE (mode).to_constant () <= 8))
return false;
INTEGRAL_MODE_P() includes vector modes.
So, the proper fix for this issue is to ensure that GET_MODE_CLASS (MODE) ==
MODE_INT is fulfilled.

I adjusted the patch and provided a v2:
https://gcc.gnu.org/pipermail/gcc-patches/2024-July/658130.html

Reply via email to