ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/powerpc/float128-mix-2.c

17 lines
394 B
C
Raw Permalink Normal View History

2024-04-01 15:19:46 +00:00
/* { dg-require-effective-target ppc_float128_sw } */
/* { dg-options "-O2 -mvsx -Wno-psabi -mabi=ieeelongdouble -mlong-double-128" } */
/* Test to make sure that __float128 and long double do not generate errors if
long double uses the IEEE 128-bit format. */
__float128
add (__float128 a, long double b)
{
return a+b;
}
long double
sub (long double a, __float128 b)
{
return a-b;
}