https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100178
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |inline-asm
Keywords| |documentation
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>It's expected to generate 'lh'(sign extend), but 'lhu' (zero extend) actually.
I don't see why, the mode used here is HI mode, so the upper 16bits of the
32bit (or 48bits of 64bits) is undefined. This is just like doing a (subreg:SI
(reg:HI)).
This should be documented instead of changed. It is useful sometimes not to
need the upper bits to be defined (mostly with bit inserts).