arm64/isel: Avoid signed overflow when handling immediates
commitbb8de8c63362b7234db02482240d5600203225d9
authorAlexey Yerin <yyp@disroot.org>
Fri, 2 Aug 2024 11:39:07 +0000 (2 14:39 +0300)
committerQuentin Carbonneaux <quentin@c9x.me>
Thu, 15 Aug 2024 21:21:05 +0000 (15 23:21 +0200)
tree5e5e9e6bca2ad8f4990efe2ae07986172438a5cc
parentefcb5465e597571820391bee450dd1e8def300b4
arm64/isel: Avoid signed overflow when handling immediates

Clang incorrectly optimizes this negation with -O2 and causes QBE to
emit 0 in place of INT64_MIN.
arm64/isel.c