https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127521
Mikael Pettersson <mikpelinux at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikpelinux at gmail dot com
--- Comment #3 from Mikael Pettersson <mikpelinux at gmail dot com> ---
I can reproduce this on two other 16-bit int targets: pdp11 and an out-of-tree
one.
On pdp11 with gcc-16.2, the test case in #c1 becomes
.text
.even
.globl _cmp3
_cmp3:
mov $01,r0
cmp 04(sp),02(sp)
beq L_2
clr r0
L_2:
rts pc
which is just "==" on the function's two parameters.