diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-08-15 17:44:32 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-08-15 17:44:32 +0000 |
commit | a1fb0dd0437ef07c43ceea39bc043f93c43e1e7c (patch) | |
tree | 4ce341d74fa9b97666e75cb48a8b546f706172e8 /test/CodeGenOpenCL/builtins-r600.cl | |
parent | 34db924fa7cfcc0c84103163ab18976a074f94ea (diff) |
R600: Add ldexp intrinsic
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215738 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenOpenCL/builtins-r600.cl')
-rw-r--r-- | test/CodeGenOpenCL/builtins-r600.cl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGenOpenCL/builtins-r600.cl b/test/CodeGenOpenCL/builtins-r600.cl index cebeba185e..7167e64f7f 100644 --- a/test/CodeGenOpenCL/builtins-r600.cl +++ b/test/CodeGenOpenCL/builtins-r600.cl @@ -112,3 +112,17 @@ void test_rsq_clamped_f64(global double* out, double a) { *out = __builtin_amdgpu_rsq_clamped(a); } + +// CHECK-LABEL: @test_ldexp_f32 +// CHECK: call float @llvm.AMDGPU.ldexp.f32 +void test_ldexp_f32(global float* out, float a, int b) +{ + *out = __builtin_amdgpu_ldexpf(a, b); +} + +// CHECK-LABEL: @test_ldexp_f64 +// CHECK: call double @llvm.AMDGPU.ldexp.f64 +void test_ldexp_f64(global double* out, double a, int b) +{ + *out = __builtin_amdgpu_ldexp(a, b); +} |