ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/powerpc/divic3-1.c

22 lines
772 B
C
Raw Permalink Normal View History

2024-04-01 15:19:46 +00:00
/* { dg-do compile } */
/* { dg-require-effective-target ppc_float128_sw } */
/* { dg-options "-O2 -mabi=ieeelongdouble -Wno-psabi" } */
/* When GCC is configured with an older library that does not support IEEE
128-bit, it issues a warning if you change the long double type. We use
-Wno-psabi to silence this warning. Since this is a code generation test,
it does not matter if the library has full IEEE 128-bit support. */
/* Check that complex divide generates the right call for __ibm128 when long
double is IEEE 128-bit floating point. */
typedef _Complex long double c_ibm128_t __attribute__((mode(__IC__)));
void
divide (c_ibm128_t *p, c_ibm128_t *q, c_ibm128_t *r)
{
*p = *q / *r;
}
/* { dg-final { scan-assembler {\mbl .*__divtc3\M} } } */