[Bug target/112672] [14 Regression] wrong code with __builtin_parityl() at -O and above on x86_64
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 23 15:18:27 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112672
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Uros Bizjak <uros@gcc.gnu.org>:
https://gcc.gnu.org/g:b2d17bdd45b582b93e89c00b04763a45f97d7a34
commit r14-5785-gb2d17bdd45b582b93e89c00b04763a45f97d7a34
Author: Uros Bizjak <ubizjak@gmail.com>
Date: Thu Nov 23 16:17:57 2023 +0100
i386: Wrong code with __builtin_parityl [PR112672]
gen_parityhi2_cmp instruction clobbers its input operand, so use
a temporary register in the call to gen_parityhi2_cmp.
PR target/112672
gcc/ChangeLog:
* config/i386/i386.md (parityhi2):
Use temporary register in the call to gen_parityhi2_cmp.
gcc/testsuite/ChangeLog:
* gcc.target/i386/pr112672.c: New test.
More information about the Gcc-bugs
mailing list