[Bug target/115500] RISC-V: Performance regression on 1bit test

2024-06-17 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115500 --- Comment #7 from Jeffrey A. Law --- And to be clearer, if you look at the two assembly snippets: The problem is about 0: 814dsrlia0,a0,0x13 2: 8905andia0,a0,1 4: e501

[Bug target/115500] RISC-V: Performance regression on 1bit test

2024-06-16 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115500 --- Comment #6 from Jeffrey A. Law --- That's going to be a uarch issue if the slli/bltz is slower.

[Bug target/115500] RISC-V: Performance regression on 1bit test

2024-06-16 Thread syq at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115500 --- Comment #5 from YunQiang Su --- (In reply to Jeffrey A. Law from comment #4) > On the gcc-13, gcc-14 and the trunk I get this with -O2 on rv64gc: > > sllia5,a0,44 > blt a5,zero,.L3 > > > So ISTM that we must be

[Bug target/115500] RISC-V: Performance regression on 1bit test

2024-06-16 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115500 Jeffrey A. Law changed: What|Removed |Added Known to work||14.1.1 Known to fail|

[Bug target/115500] RISC-V: Performance regression on 1bit test

2024-06-14 Thread syq at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115500 --- Comment #3 from YunQiang Su --- (In reply to Andrew Pinski from comment #2) > The big question is non zbs riscv arch matter any more? I have no idea. This is the Debian's porterbox, so I guess it meets the requirement of Debian's RV64 port

[Bug target/115500] RISC-V: Performance regression on 1bit test

2024-06-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115500 --- Comment #2 from Andrew Pinski --- The big question is non zbs riscv arch matter any more?

[Bug target/115500] RISC-V: Performance regression on 1bit test

2024-06-14 Thread syq at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115500 --- Comment #1 from YunQiang Su --- Talks about MIPS here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111376