Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / afn-flag-test.c
blobf948fc068ba2553589385968875750fb46694539
1 // RUN: %clang_cc1 -fapprox-func %s -emit-llvm -o - | FileCheck --check-prefix=CHECK-AFN %s
2 // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck --check-prefix=CHECK-NO-AFN %s
4 extern double exp(double);
5 double afn_option_test(double x) {
6 return exp(x);
7 // CHECK-LABEL: define{{.*}} double @afn_option_test(double %x) #0 {
9 // CHECK-AFN: %{{.*}} = call afn double @{{.*}}exp{{.*}}(double %{{.*}})
10 // CHECK-AFN: attributes #0 ={{.*}} "approx-func-fp-math"="true" {{.*}}
12 // CHECK-NO-AFN: %{{.*}} = call double @{{.*}}exp{{.*}}(double %{{.*}})
13 // CHECK-NO-AFN-NOT: attributes #0 ={{.*}} "approx-func-fp-math"="true" {{.*}}