| 1 |
// RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \ |
| 2 |
// RUN: -mcpu=pwr9 -mfloat128 %s 2>&1 | FileCheck %s --check-prefix=HASF128 |
| 3 |
// RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \ |
| 4 |
// RUN: -mcpu=power9 -mfloat128 %s 2>&1 | FileCheck %s --check-prefix=HASF128 |
| 5 |
// RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \ |
| 6 |
// RUN: -mcpu=pwr8 -mfloat128 %s 2>&1 | FileCheck %s --check-prefix=HASF128 |
| 7 |
// RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \ |
| 8 |
// RUN: -mcpu=pwr7 -mfloat128 %s 2>&1 | FileCheck %s --check-prefix=HASF128 |
| 9 |
// RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \ |
| 10 |
// RUN: -mfloat128 %s 2>&1 | FileCheck %s --check-prefix=HASF128 |
| 11 |
|
| 12 |
// RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \ |
| 13 |
// RUN: -mcpu=pwr6 -mfloat128 %s 2>&1 | FileCheck %s --check-prefix=NOF128 |
| 14 |
// RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \ |
| 15 |
// RUN: -mno-vsx -mfloat128 %s 2>&1 | FileCheck %s --check-prefix=NOF128 |
| 16 |
|
| 17 |
#ifdef __FLOAT128__ |
| 18 |
static_assert(false, "__float128 enabled"); |
| 19 |
#endif |
| 20 |
|
| 21 |
// HASF128: __float128 enabled |
| 22 |
// HASF128-NOT: option '-mfloat128' cannot be specified with |
| 23 |
// NOF128: option '-mfloat128' cannot be specified with |
| 24 |
|