diff options
author | Chris Lattner <sabre@nondot.org> | 2010-05-06 06:04:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-05-06 06:04:13 +0000 |
commit | dbff4bf5f43fd6a6dd03ed3dd55a65a87f18b4d2 (patch) | |
tree | 4231690f32f185be042f6fa66a85fc3b7a5c5f51 /clang/test/CodeGen/builtins.c | |
parent | 68784efaf62af6cc4234ea01f378e859dd7bfbab (diff) | |
download | bcm5719-llvm-dbff4bf5f43fd6a6dd03ed3dd55a65a87f18b4d2.tar.gz bcm5719-llvm-dbff4bf5f43fd6a6dd03ed3dd55a65a87f18b4d2.zip |
implement codegen support for __builtin_isfinite, part of PR6083
llvm-svn: 103168
Diffstat (limited to 'clang/test/CodeGen/builtins.c')
-rw-r--r-- | clang/test/CodeGen/builtins.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/clang/test/CodeGen/builtins.c b/clang/test/CodeGen/builtins.c index e604fbe3189..b6a4a68ea4f 100644 --- a/clang/test/CodeGen/builtins.c +++ b/clang/test/CodeGen/builtins.c @@ -165,8 +165,8 @@ void bar() { // CHECK: } -// CHECK: define void @test_inff -void test_inff(float F, double D, long double LD) { +// CHECK: define void @test_float_builtins +void test_float_builtins(float F, double D, long double LD) { volatile int res; res = __builtin_isinf(F); // CHECK: call float @fabsf(float @@ -179,5 +179,11 @@ void test_inff(float F, double D, long double LD) { res = __builtin_isinf(LD); // CHECK: call x86_fp80 @fabsl(x86_fp80 // CHECK: fcmp oeq x86_fp80 {{.*}}, 0xK7FFF8000000000000000 + + res = __builtin_isfinite(F); + // CHECK: fcmp oeq float + // CHECK: call float @fabsf + // CHECK: fcmp une float {{.*}}, 0x7FF0000000000000 + // CHECK: and i1 } |