llvm-project/clang/test/CodeGen/complex-libcalls-2.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
599 B
C
Raw Normal View History

// RUN: %clang_cc1 -triple x86_64-unknown-unknown -w -S -o - -emit-llvm %s | FileCheck %s
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -w -S -o - -emit-llvm -fmath-errno %s | FileCheck %s
float _Complex test_conjf(float _Complex x) {
// CHECK-LABEL: @test_conjf(
// CHECK: fneg float %x.imag
return conjf(x);
}
double _Complex test_conj(double _Complex x) {
// CHECK-LABEL: @test_conj(
// CHECK: fneg double %x.imag
return conj(x);
}
long double _Complex test_conjl(long double _Complex x) {
// CHECK-LABEL: @test_conjl(
// CHECK: fneg x86_fp80 %x.imag
return conjl(x);
}