Follow-up Comment #1, bug #1929 (project avr-libc):

No this bug in gcc-4.0.0/avrlibc-1.2.3.
Test case work fine with all compare operation ( <, >, =>, <=).

volatile float foo;
volatile int res;

int
main (void)
{
    foo = 3.402823466E+38;
    foo = (foo * foo); /* foo = +Inf */

    if(foo < 0.0) 
    { 
        res = -1;
    } else {
        res = 1;
    }

    foo = - foo; /* foo = -Inf */

    if(foo < 0.0) 
    { 
        res = -1;
    } else {
        res = 1;
    }

    return (0);
}

    _______________________________________________________

Additional Item Attachment:

File name: inf-cmp-test.c                 Size:0 KB

<http://savannah.nongnu.org/bugs/download.php?item_id=1929&item_file_id=2575>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=1929>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to