[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / complex-libcalls-2.c
blob8867eb8ff6e7a39c73f07f6671cc59802d843000
1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -w -S -o - -emit-llvm %s | FileCheck %s
2 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -w -S -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);