------- Comment #12 from pinskia at gcc dot gnu dot org 2005-11-02 16:03 ------- Here is another more reduced testcase (still at -O1 -fno-tree-sra): typedef struct { unsigned a; } l_fp; void dolfptoa(short ndec) { l_fp work; unsigned workUl_fXl_uf; work.a = 0x535f3d8; while (ndec > 0) {
ndec--; work.a = 0; work.a = 0; if (workUl_fXl_uf & 0x80000000) work.a |= 0x1; workUl_fXl_uf <<= 1; work.a <<= 1; if (workUl_fXl_uf & 0x80000000) work.a |= 0x1; workUl_fXl_uf <<= 1; work.a <<= 1; if (!(work.a < 10)) abort (); } } int main() { dolfptoa(6); return 0; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24627