[Bug target/112672] [14 Regression] wrong code with __builtin_parityl() at -O and above on x86_64
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Nov 23 09:46:15 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112672
Uroš Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |ubizjak at gmail dot com
--- Comment #4 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Andrew Pinski from comment #3)
> parityhi2 should have:
> rtx extra = gen_reg_rtx (HImode);
> emit_move_insn (extra, operands[1]);
> emit_insn (gen_parityhi2_cmp (extra));
>
> Or something similar because parityqi2_cmp clobbers its argument.
Exactly.
I have a patch in testing.
More information about the Gcc-bugs
mailing list