https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124777
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target|x86_64 |x86_64 aarch64
Summary|[16 Regression] wrong code |[16 Regression] wrong code
|at -O on |at -O, inlining where -1 is
|x86_64-pc-linux-gnu |passed as signed char and
| |then extended to unsigned
| |short and then extended to
| |unsigned and then compared
| |against (unsigned short)-1
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note with the signed char version, it also fails on aarch64.