Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#67 msp430-libc __cmpdi2 wrong

closed-wont-fix
libc (18)
5
2011-08-01
2011-04-22
Peter A. Bigot
No

The subtract approach taken in cmpdi2 gets the wrong answer in a variety of cases.

ERROR signed 0000000000000000[0] 8000000000000000[4] got -1 expected 1
ERROR signed 0000000000000001[1] 8000000000000000[4] got -1 expected 1
ERROR signed 0000000000000001[1] 8000000000000001[5] got -1 expected 1
ERROR signed 7fffffffffffffff[3] ffffffffffffffff[2] got -1 expected 1
ERROR signed 7fffffffffffffff[3] 8000000000000000[4] got -1 expected 1
ERROR signed 7fffffffffffffff[3] 8000000000000001[5] got -1 expected 1

Fortunately, cmpdi2 is rarely invoked.

Discussion

  • Peter A. Bigot
    Peter A. Bigot
    2011-08-01

    • status: open --> closed-wont-fix
     
  • Peter A. Bigot
    Peter A. Bigot
    2011-08-01

    Fixed in mspgcc; will not be fixed in mspgcc4.