Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / complex-builtins-2.c
blob2a3ea7c2dda27fe79130284b362784eda3a9adb5
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 float _Complex test__builtin_conjf(float _Complex x) {
5 // CHECK-LABEL: @test__builtin_conjf(
6 // CHECK: fneg float %x.imag
7 return __builtin_conjf(x);
10 double _Complex test__builtin_conj(double _Complex x) {
11 // CHECK-LABEL: @test__builtin_conj(
12 // CHECK: fneg double %x.imag
13 return __builtin_conj(x);
16 long double _Complex test__builtin_conjl(long double _Complex x) {
17 // CHECK-LABEL: @test__builtin_conjl(
18 // CHECK: fneg x86_fp80 %x.imag
19 return __builtin_conjl(x);