[Bug tree-optimization/31521] / conversion to >> is not done when the divisor can be zero

dean at arctic dot org gcc-bugzilla@gcc.gnu.org
Tue Apr 10 08:38:00 GMT 2007



------- Comment #3 from dean at arctic dot org  2007-04-10 09:38 -------
nice... that seems to do the trick on idiv-assert.c:

  10:   89 df                   mov    %ebx,%edi
  12:   83 c3 01                add    $0x1,%ebx
  15:   c1 ff 02                sar    $0x2,%edi
  18:   e8 00 00 00 00          callq  1d <foo+0x1d>
                        19: R_X86_64_PC32       bar+0xfffffffffffffffc

thanks
-dean


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31521



More information about the Gcc-bugs mailing list