[Bug rtl-optimization/17931] andl and testb are not combined

2004-10-11 Thread kazu at cs dot umass dot edu
--- Additional Comments From kazu at cs dot umass dot edu 2004-10-11 13:54 --- Actually, we don't need movl $1, %eax at the end, either. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17931

[Bug rtl-optimization/17931] andl and testb are not combined

2004-10-11 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-11 14:01 --- Confirmed, combine does not simplify: (insn 14 13 15 0 (parallel [ (set (reg:QI 64) (and:QI (reg:QI 63) (const_int 1 [0x1]))) (clobber (reg:CC 17

[Bug rtl-optimization/17931] andl and testb are not combined

2004-10-11 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-11 14:06 --- Note PPC's resulting asm is so much better: lwz r3,0(r3) li r0,1 cmpwi cr7,r3,0 blt- cr7,L4 rlwinm r0,r3,2,31,31 L4: mr r3,r0 blr But can be improved