gcc/testsuite/gcc.target/powerpc/float128-mix-2.c
raw| 1 | /* { dg-require-effective-target ppc_float128_sw } */ |
| 2 | /* { dg-options "-O2 -mvsx -Wno-psabi -mabi=ieeelongdouble -mlong-double-128" } */ |
| 3 | |
| 4 | /* Test to make sure that __float128 and long double do not generate errors if |
| 5 | long double uses the IEEE 128-bit format. */ |
| 6 | __float128 |
| 7 | add (__float128 a, long double b) |
| 8 | { |
| 9 | return a+b; |
| 10 | } |
| 11 | |
| 12 | long double |
| 13 | sub (long double a, __float128 b) |
| 14 | { |
| 15 | return a-b; |
| 16 | } |