------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-12 14:44 ------- huh a compiler built with that patch gives: L4: slwi r2,r9,1 addi r9,r9,1 sthx r0,r2,r11 bdnz L4
Also pulling the load manually out loop also produce the same asm as I just produced: unsigned short *q; #define NOSB 10 int last; void h1() { int i; unsigned short *q1 = q; for (i=0;i<last+NOSB;i++) { q1[i] = 0; } } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18431