Fangrui Song | 586c626 | 2019-07-12 02:32:15 +0000 | [diff] [blame] | 1 | // RUN: %clang -target powerpc-linux-musl -c -### %s -mlong-double-128 2>&1 | FileCheck %s |
| 2 | // RUN: %clang -target powerpc64-pc-freebsd12 -c -### %s -mlong-double-128 2>&1 | FileCheck %s |
| 3 | // RUN: %clang -target powerpc64le-linux-musl -c -### %s -mlong-double-128 2>&1 | FileCheck %s |
| 4 | // RUN: %clang -target i686-linux-gnu -c -### %s -mlong-double-128 2>&1 | FileCheck %s |
Troy A. Johnson | 64cfbd5 | 2019-08-17 04:20:24 +0000 | [diff] [blame] | 5 | |
| 6 | // RUN: %clang -target x86_64-linux-musl -c -### %s -mlong-double-128 -mlong-double-80 2>&1 | FileCheck --implicit-check-not=-mlong-double-128 /dev/null |
| 7 | // RUN: %clang -target x86_64-linux-musl -c -### %s -mlong-double-80 -mlong-double-128 2>&1 | FileCheck %s |
Fangrui Song | 586c626 | 2019-07-12 02:32:15 +0000 | [diff] [blame] | 8 | |
| 9 | // CHECK: "-mlong-double-128" |
| 10 | |
| 11 | // RUN: %clang -target aarch64 -c -### %s -mlong-double-128 2>&1 | FileCheck --check-prefix=ERR %s |
Troy A. Johnson | 64cfbd5 | 2019-08-17 04:20:24 +0000 | [diff] [blame] | 12 | // RUN: %clang -target powerpc -c -### %s -mlong-double-80 2>&1 | FileCheck --check-prefix=ERR2 %s |
Fangrui Song | 586c626 | 2019-07-12 02:32:15 +0000 | [diff] [blame] | 13 | |
| 14 | // ERR: error: unsupported option '-mlong-double-128' for target 'aarch64' |
Troy A. Johnson | 64cfbd5 | 2019-08-17 04:20:24 +0000 | [diff] [blame] | 15 | // ERR2: error: unsupported option '-mlong-double-80' for target 'powerpc' |