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