diff options
Diffstat (limited to 'clang/test/CodeGen/builtin-sqrt.c')
-rw-r--r-- | clang/test/CodeGen/builtin-sqrt.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/test/CodeGen/builtin-sqrt.c b/clang/test/CodeGen/builtin-sqrt.c index 528ad095174..5b275bf9066 100644 --- a/clang/test/CodeGen/builtin-sqrt.c +++ b/clang/test/CodeGen/builtin-sqrt.c @@ -1,17 +1,15 @@ // RUN: %clang_cc1 -fmath-errno -triple x86_64-apple-darwin %s -emit-llvm -o - | FileCheck %s --check-prefix=HAS_ERRNO // RUN: %clang_cc1 -triple x86_64-apple-darwin %s -emit-llvm -o - | FileCheck %s --check-prefix=NO_ERRNO -// FIXME: If the builtin does not set errno, it should be converted to an LLVM intrinsic. - float foo(float X) { // HAS_ERRNO: call float @sqrtf(float - // NO_ERRNO: call float @sqrtf(float + // NO_ERRNO: call float @llvm.sqrt.f32(float return __builtin_sqrtf(X); } // HAS_ERRNO: declare float @sqrtf(float) [[ATTR:#[0-9]+]] // HAS_ERRNO-NOT: attributes [[ATTR]] = {{{.*}} readnone -// NO_ERRNO: declare float @sqrtf(float) [[ATTR:#[0-9]+]] +// NO_ERRNO: declare float @llvm.sqrt.f32(float) [[ATTR:#[0-9]+]] // NO_ERRNO: attributes [[ATTR]] = { nounwind readnone {{.*}}} |