[Bug target/82897] Unnecessary zero-extension when loading mask register from memory
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Nov 8 14:43:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82897
--- Comment #4 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Jakub Jelinek from comment #3)
> Because builtins are treated like any other function calls, and if
> short/char args are promoted for normal calls, they are promoted for
> builtins too.
Indeed. Disabling TARGET_PROMOTE_PROTOTYPES gets us the direct move from
memory.
So... do we really need to promote all these builtins that usually result in a
well known instruction? Is there a way to mark (some of ?) them with a
"nopromote" flag?
More information about the Gcc-bugs
mailing list