Message ID | 20140905.210551.411231424.kkojima@rr.iij4u.or.jp |
---|---|
State | New |
Headers | show |
diff -uprN ORIG/trunk/gcc/testsuite/gcc.c-torture/execute/ieee/pr44683.c trunk/gcc/testsuite/gcc.c-torture/execute/ieee/pr44683.c --- ORIG/trunk/gcc/testsuite/gcc.c-torture/execute/ieee/pr44683.c 1970-01-01 09:00:00.000000000 +0900 +++ trunk/gcc/testsuite/gcc.c-torture/execute/ieee/pr44683.c 2014-09-05 18:02:46.000000000 +0900 @@ -0,0 +1,18 @@ +int __attribute__((noinline,noclone)) +copysign_bug (double x) +{ + if (x != 0.0 && (x * 0.5 == x)) + return 1; + if (__builtin_copysign(1.0, x) < 0.0) + return 2; + else + return 3; +} +int main(void) +{ + double x = -0.0; + if (copysign_bug (x) != 2) + __builtin_abort (); + return 0; +} + diff -uprN ORIG/trunk/gcc/testsuite/gcc.c-torture/execute/pr44683.c trunk/gcc/testsuite/gcc.c-torture/execute/pr44683.c --- ORIG/trunk/gcc/testsuite/gcc.c-torture/execute/pr44683.c 2014-09-05 18:02:46.000000000 +0900 +++ trunk/gcc/testsuite/gcc.c-torture/execute/pr44683.c 1970-01-01 09:00:00.000000000 +0900 @@ -1,18 +0,0 @@ -int __attribute__((noinline,noclone)) -copysign_bug (double x) -{ - if (x != 0.0 && (x * 0.5 == x)) - return 1; - if (__builtin_copysign(1.0, x) < 0.0) - return 2; - else - return 3; -} -int main(void) -{ - double x = -0.0; - if (copysign_bug (x) != 2) - __builtin_abort (); - return 0; -} -