From ae7a9df7bff5b548d8c16366ce17ac8a54db6fa6 Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Thu, 7 Apr 2016 14:29:05 +0000 Subject: make __builtin_isfinite more efficient (PR27145) isinf (is infinite) and isfinite should be implemented with the same function except we change the comparison operator. See PR27145 for more details: https://llvm.org/bugs/show_bug.cgi?id=27145 Ref: forked off of the discussion in D18513. Differential Revision: http://reviews.llvm.org/D18648 llvm-svn: 265675 --- clang/test/CodeGen/builtins.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'clang/test/CodeGen/builtins.c') diff --git a/clang/test/CodeGen/builtins.c b/clang/test/CodeGen/builtins.c index ac6edcef39e..43ce8f13ade 100644 --- a/clang/test/CodeGen/builtins.c +++ b/clang/test/CodeGen/builtins.c @@ -217,10 +217,8 @@ void test_float_builtins(float F, double D, long double LD) { // CHECK: select i1 %[[ISINF]], i32 %[[SIGN]], i32 0 res = __builtin_isfinite(F); - // CHECK: fcmp oeq float // CHECK: call float @llvm.fabs.f32(float - // CHECK: fcmp une float {{.*}}, 0x7FF0000000000000 - // CHECK: and i1 + // CHECK: fcmp one float {{.*}}, 0x7FF0000000000000 res = __builtin_isnormal(F); // CHECK: fcmp oeq float -- cgit v1.2.3