blob: 23cb9d5f3a26d8d504ade0e0d5d9b247cf98c612 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* { dg-do compile { target { powerpc*-*-linux* } } } */
/* { dg-require-effective-target powerpc_float128_sw_ok } */
/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */
/* { dg-options "-O2 -mcpu=power7 -mfloat128" } */
/* Test to make sure that __float128 and __ibm128 cannot be combined together. */
__float128 add (__float128 a, __ibm128 b)
{
return a+b; /* { dg-error "__float128 and __ibm128 cannot be used in the same expression" "" } */
}
__ibm128 sub (__ibm128 a, __float128 b)
{
return a-b; /* { dg-error "__float128 and __ibm128 cannot be used in the same expression" "" } */
}
|