Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/float128-mix-3.c

raw
1 /* { dg-require-effective-target ppc_float128_sw } */
2 /* { dg-options "-O2 -mvsx -Wno-psabi -mabi=ibmlongdouble -mlong-double-128" } */
3
4 /* Test to make sure that __float128 and __ibm128 cannot be combined
5 together. */
6 __float128
7 add (__float128 a, __ibm128 b)
8 {
9 return a+b; /* { dg-error "IEEE 128-bit and IBM 128-bit floating point" } */
10 }
11
12 __ibm128
13 sub (__ibm128 a, __float128 b)
14 {
15 return a-b; /* { dg-error "IEEE 128-bit and IBM 128-bit floating point" } */
16 }