[Bug target/94121] ICE on aarch64-linux-gnu: in abs_hwi, at hwint.h:324

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 10 14:03:06 GMT 2020


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Comment on attachment 48010
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48010
[PATCH PR94121] fix ICE on aarch64 in abs_hwi, at hwint.h:324

Can't you instead just use absu_hwi instead of abs_hwi and change moffset type
to unsigned HOST_WIDE_INT?  With the latter, the moffset < 0x1000000 comparison
will DTRT and for HOST_WIDE_INT_MIN DImode it really doesn't matter if we use
addition or subtraction.


More information about the Gcc-bugs mailing list