diff options
author | Sanjay Patel <spatel@rotateright.com> | 2017-10-20 23:32:41 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2017-10-20 23:32:41 +0000 |
commit | 0c203d6b6dec28cc960ec75c7ddda3ffb3be8dc8 (patch) | |
tree | d3dd3c4762239d61659c5d0f688a66327d10ae41 /clang/test/CodeGen/builtins.c | |
parent | bd4254c69235db8db02449a50b2e946c2241a74f (diff) | |
download | bcm5719-llvm-0c203d6b6dec28cc960ec75c7ddda3ffb3be8dc8.tar.gz bcm5719-llvm-0c203d6b6dec28cc960ec75c7ddda3ffb3be8dc8.zip |
[CodeGen] add tests for __builtin_sqrt*; NFC
I don't know if this is correct, but this is what we currently do.
More discussion in PR27108 and PR27435 and D27618.
llvm-svn: 316250
Diffstat (limited to 'clang/test/CodeGen/builtins.c')
-rw-r--r-- | clang/test/CodeGen/builtins.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGen/builtins.c b/clang/test/CodeGen/builtins.c index 3584585de8c..86bee451ecb 100644 --- a/clang/test/CodeGen/builtins.c +++ b/clang/test/CodeGen/builtins.c @@ -317,6 +317,15 @@ void test_float_builtin_ops(float F, double D, long double LD) { resld = __builtin_floorl(LD); // CHECK: call x86_fp80 @llvm.floor.f80 + resf = __builtin_sqrtf(F); + // CHECK: call float @sqrtf( + + resd = __builtin_sqrt(D); + // CHECK: call double @sqrt( + + resld = __builtin_sqrtl(LD); + // CHECK: call x86_fp80 @sqrtl( + resf = __builtin_truncf(F); // CHECK: call float @llvm.trunc.f32 |