[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / complex-libcalls-2.c
blobcdac28ee5079e56c13a0d29999db4a78b3da0681
1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -w -o - -emit-llvm %s | FileCheck %s
2 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -w -o - -emit-llvm -fmath-errno %s | FileCheck %s
4 _Complex float conjf(_Complex float);
5 _Complex double conj(_Complex double);
6 _Complex long double conjl(_Complex long double);
8 float _Complex test_conjf(float _Complex x) {
9 // CHECK-LABEL: @test_conjf(
10 // CHECK: fneg float %x.imag
11 return conjf(x);
14 double _Complex test_conj(double _Complex x) {
15 // CHECK-LABEL: @test_conj(
16 // CHECK: fneg double %x.imag
17 return conj(x);
20 long double _Complex test_conjl(long double _Complex x) {
21 // CHECK-LABEL: @test_conjl(
22 // CHECK: fneg x86_fp80 %x.imag
23 return conjl(x);