URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [builtin-copysign.c] - Rev 318
Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O2" } */ #define TEST_SET(MODE, CEXT) \ MODE test1##CEXT(MODE a) { return -a; } \ MODE test2##CEXT(MODE a) { return __builtin_fabs##CEXT(a); } \ MODE test3##CEXT(MODE a) { return __builtin_copysign##CEXT(a, 0.0); } \ MODE test4##CEXT(MODE a) { return __builtin_copysign##CEXT(a, -1.0); } \ MODE test5##CEXT(MODE a, MODE b) { return __builtin_copysign##CEXT(a, b); } TEST_SET (float, f) TEST_SET (double, ) TEST_SET (long double, l) #if defined (__LP64__) TEST_SET (__float128, q) #endif