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
) {
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" {{.*}}