Can you post ASM fragment with int t, and volatile int t?jswaff wrote:I just did, and this does work:Alessandro Scotti wrote:Have you tried to declare t as volatile?
Why? t is local in scope. Looks like the compiler is optimizing most of my loop away when it shouldn't be.Code: Select all
for (volatile int t=1;t<8;t++) { // if (c==E4) printf("considering t=%d\n",t); if (c-(t*8)<0) break; if (c==E4) printf("adding bm_mask %d\n",c-(t*8)); to_boundary[c][k]|=bm_mask[c-(t*8)]; }
--
James
It looks to me that bug is somewhere else and this is just side effect. But who knows, intel know how to over-optimize and speed up the code
