Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Driver / ppc-float-abi-warning.cpp
blob87d6d87a3b31e0fc9bcf2b1fb5c677c7fe807760
1 // REQUIRES: powerpc-registered-target
2 // RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s \
3 // RUN: --gcc-toolchain=%S/Inputs/powerpc64le-linux-gnu-tree/gcc-11.2.0 \
4 // RUN: -mabi=ieeelongdouble -stdlib=libstdc++ 2>&1 | FileCheck %s
5 // RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s \
6 // RUN: --gcc-toolchain=%S/Inputs/powerpc64le-linux-gnu-tree/gcc-12 \
7 // RUN: --dyld-prefix=%S/Inputs/powerpc64le-linux-gnu-tree/gcc-12 \
8 // RUN: -mabi=ieeelongdouble -stdlib=libstdc++ 2>&1 | \
9 // RUN: FileCheck %s --check-prefix=NOWARN
10 // RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s\
11 // RUN: -stdlib=libc++ 2>&1 | \
12 // RUN: FileCheck %s --check-prefix=NOWARN
13 // RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s\
14 // RUN: -mabi=ibmlongdouble -stdlib=libc++ -Wno-unsupported-abi 2>&1 | \
15 // RUN: FileCheck %s --check-prefix=NOWARN
16 // RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s\
17 // RUN: -mabi=ieeelongdouble -stdlib=libc++ -Wno-unsupported-abi 2>&1 | \
18 // RUN: FileCheck %s --check-prefix=NOWARN
19 // RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s\
20 // RUN: --dyld-prefix=%S/Inputs/powerpc64le-linux-gnu-tree/gcc-12 \
21 // RUN: -mabi=%if ppc_linux_default_ieeelongdouble %{ieeelongdouble%} \
22 // RUN: %else %{ibmlongdouble%} -stdlib=libc++ 2>&1 | \
23 // RUN: FileCheck %s --check-prefix=NOWARN
24 // RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s\
25 // RUN: --dyld-prefix=%S/Inputs/powerpc64le-linux-gnu-tree/gcc-12 \
26 // RUN: -mabi=%if ppc_linux_default_ieeelongdouble %{ibmlongdouble%} \
27 // RUN: %else %{ieeelongdouble%} -stdlib=libc++ 2>&1 | FileCheck %s
29 // CHECK: warning: float ABI '{{.*}}' is not supported by current library
30 // NOWARN-NOT: warning: float ABI '{{.*}}' is not supported by current library
31 long double foo(long double x) { return x; }