diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-04-07 14:29:05 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-04-07 14:29:05 +0000 |
commit | ae7a9df7bff5b548d8c16366ce17ac8a54db6fa6 (patch) | |
tree | b7808aa35c28869ca9a4965936a0f63032c55ba5 /clang/test/CodeGen/builtins.c | |
parent | f90ec0e82e098d0a64070f4f16c6388821132430 (diff) | |
download | bcm5719-llvm-ae7a9df7bff5b548d8c16366ce17ac8a54db6fa6.tar.gz bcm5719-llvm-ae7a9df7bff5b548d8c16366ce17ac8a54db6fa6.zip |
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
Diffstat (limited to 'clang/test/CodeGen/builtins.c')
-rw-r--r-- | clang/test/CodeGen/builtins.c | 4 |
1 files changed, 1 insertions, 3 deletions
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 |