[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / ppc64-float-abi-attr.c
blob8e0eca17b9b6cf7eb63c22a7b9a64b3915f33e75
1 // RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu %s -emit-llvm -o - | FileCheck %s
2 // RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu %s -emit-llvm -mabi=ieeelongdouble -o - | FileCheck %s --check-prefix=IEEE
3 // RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu %s -emit-llvm -mlong-double-64 -o - | FileCheck %s --check-prefix=LDBL64
4 // RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu %s -emit-llvm -DNOLDBL -o - | FileCheck %s --check-prefix=NOLDBL
6 #ifndef NOLDBL
7 long double foo(long double a, long double b) {
8 return a + b;
10 #endif
12 int bar() { return 1; }
14 // CHECK: ![[#]] = !{i32 1, !"float-abi", !"doubledouble"}
15 // IEEE: ![[#]] = !{i32 1, !"float-abi", !"ieeequad"}
16 // LDBL64: ![[#]] = !{i32 1, !"float-abi", !"ieeedouble"}
17 // NOLDBL-NOT: ![[#]] = !{i32 1, !"float-abi"