Mike Stump <mikest...@comcast.net> wrote: >> BTW, Jeff's comment on pr39228.c makes me think that this test >> can be moved into execute/ieee. Thought? > > I don’t see a down side, specially if we know that the test case is picky > about ieee.
Thanks for suggestion. The patch below simply moves it into execute/ieee. Tested on i686-linux and sh-linux. Regards, kaz -- * gcc.c-torture/execute/pr44683.c: Move to ... * gcc.c-torture/execute/ieee/pr44683.c: ... here. 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; -} -