diff options
author | Jeff Law <jlaw@ventanamicro.com> | 2025-05-15 09:03:13 -0600 |
---|---|---|
committer | Jeff Law <jlaw@ventanamicro.com> | 2025-05-15 09:14:10 -0600 |
commit | 87d0daab1ec9d5c901295e8045cbd67f80b2fa23 (patch) | |
tree | b94ad18b7f6d90a2e53993b5dc8968daf8e06b03 /libstdc++-v3/testsuite/std | |
parent | 0c430503f2849ebb20105695b8ad40d43d797c7b (diff) | |
download | gcc-87d0daab1ec9d5c901295e8045cbd67f80b2fa23.zip gcc-87d0daab1ec9d5c901295e8045cbd67f80b2fa23.tar.gz gcc-87d0daab1ec9d5c901295e8045cbd67f80b2fa23.tar.bz2 |
[RISC-V][PR target/120223] Don't use bset/binv for XTHEADBS
Thead has the XTHEADBB extension which has a lot of overlap with Zbb. I made
the incorrect assumption that XTHEADBS would largely be like Zbs when
generalizing Shreya's work.
As a result we can't use the operation synthesis code for IOR/XOR because we
don't have binv/bset like capabilities. I should have double checked on
XTHEADBS, my bad.
Anyway, the fix is trivial. Don't allow bset/binv based on XTHEADBS.
Already spun in my tester. Spinning in the pre-commit CI system now.
PR target/120223
gcc/
* config/riscv/riscv.cc (synthesize_ior_xor): XTHEADBS does not have
single bit manipulations.
gcc/testsuite/
* gcc.target/riscv/pr120223.c: New test.
Diffstat (limited to 'libstdc++-v3/testsuite/std')
0 files changed, 0 insertions, 0 deletions