[Bug target/102239] powerpc suboptimal boolean test of contiguous bits

2022-01-11 Thread luoxhu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102239 luoxhu at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug target/102239] powerpc suboptimal boolean test of contiguous bits

2022-01-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102239 --- Comment #12 from CVS Commits --- The master branch has been updated by Xiong Hu Luo : https://gcc.gnu.org/g:19d81fda48f30c4fc11c8912749351acd9159c17 commit r12-6433-g19d81fda48f30c4fc11c8912749351acd9159c17 Author: Xionghu Luo Date: Sun

[Bug target/102239] powerpc suboptimal boolean test of contiguous bits

2021-11-30 Thread luoxhu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102239 --- Comment #11 from luoxhu at gcc dot gnu.org --- +(define_insn_and_split "*anddi3_insn_dot" + [(set (pc) +(if_then_else (eq (and:DI (match_operand:DI 1 "gpc_reg_operand" "%r,r") + (match_operand:DI 2 "const_int

[Bug target/102239] powerpc suboptimal boolean test of contiguous bits

2021-11-30 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102239 --- Comment #10 from Segher Boessenkool --- (In reply to luoxhu from comment #9) > > It does matter, if what you are want to see is if it is smaller than zero or > > greater than zero. CCmode includes those things. There is a CCEQmode for > >

[Bug target/102239] powerpc suboptimal boolean test of contiguous bits

2021-11-29 Thread luoxhu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102239 --- Comment #9 from luoxhu at gcc dot gnu.org --- (In reply to Segher Boessenkool from comment #8) > (In reply to luoxhu from comment #6) > > > > foo: > > > > .LFB0: > > > > .cfi_startproc > > > > rldicr. 3,3,29,1 > > > >

[Bug target/102239] powerpc suboptimal boolean test of contiguous bits

2021-11-29 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102239 --- Comment #8 from Segher Boessenkool --- (In reply to luoxhu from comment #6) > > > foo: > > > .LFB0: > > > .cfi_startproc > > > rldicr. 3,3,29,1 > > > beq 0,.L2 > > > > This is fine, but only because it tests the EQ b

[Bug target/102239] powerpc suboptimal boolean test of contiguous bits

2021-11-28 Thread luoxhu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102239 --- Comment #7 from luoxhu at gcc dot gnu.org --- 1| Dump of assembler code for function foo: 2|0x15e0 <+0>: rldicr. r3,r3,29,1 3+> 0x15e4 <+4>: beq 0x15f0 4|0x15e8 <+8>: blr 5|0x000

[Bug target/102239] powerpc suboptimal boolean test of contiguous bits

2021-11-28 Thread luoxhu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102239 --- Comment #6 from luoxhu at gcc dot gnu.org --- (In reply to Segher Boessenkool from comment #5) > (In reply to luoxhu from comment #4) > > Simply adjust the sequence of dot instruction could produce expected code, > > is this correct? > > No

[Bug target/102239] powerpc suboptimal boolean test of contiguous bits

2021-11-26 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102239 --- Comment #5 from Segher Boessenkool --- (In reply to luoxhu from comment #4) > Simply adjust the sequence of dot instruction could produce expected code, > is this correct? No it isn't. Sorry. > foo: > .LFB0: > .cfi_startproc >

[Bug target/102239] powerpc suboptimal boolean test of contiguous bits

2021-11-26 Thread luoxhu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102239 --- Comment #4 from luoxhu at gcc dot gnu.org --- Simply adjust the sequence of dot instruction could produce expected code, is this correct? foo: .LFB0: .cfi_startproc rldicr. 3,3,29,1 beq 0,.L2 #APP # 10 "pr102239.c"

[Bug target/102239] powerpc suboptimal boolean test of contiguous bits

2021-11-24 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102239 --- Comment #3 from Segher Boessenkool --- (In reply to luoxhu from comment #2) > (In reply to Segher Boessenkool from comment #1) > > Confirmed. > > > > So the relevant insn > > > > (parallel [(set (reg:CC 123) > > (compare:CC

[Bug target/102239] powerpc suboptimal boolean test of contiguous bits

2021-11-23 Thread luoxhu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102239 luoxhu at gcc dot gnu.org changed: What|Removed |Added CC||luoxhu at gcc dot gnu.org --

[Bug target/102239] powerpc suboptimal boolean test of contiguous bits

2021-09-09 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102239 Segher Boessenkool changed: What|Removed |Added Last reconfirmed||2021-09-09 Ever confirmed|0