[Bug rtl-optimization/111835] Suboptimal codegen: zero extended load instead of sign extended one
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 1 15:40:49 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111835
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Siarhei Volkau from comment #3)
> I don't think that it is duplicate of the bug 104387 because there's only
> one store.
> And this bug is simply disappears if we change the source code a bit.
> e.g.
> - change (int8_t)*src; to *(int8_t*)src;
> or change argument uint8_t * dst to int8_t * dst
>
> But if we have multiple stores, extension will remain in any condition.
One store but 2 uses.
More information about the Gcc-bugs
mailing list