forked from OSchip/llvm-project
[NVPTX] Added missing test case for llvm.nvvm.sqrt.f NVPTX intrinsic
Differential Revision: http://reviews.llvm.org/D10663 llvm-svn: 240437
This commit is contained in:
parent
6f8a6be145
commit
6c9627252d
|
@ -16,6 +16,8 @@ define ptx_device double @test_fabs(double %d) {
|
||||||
}
|
}
|
||||||
|
|
||||||
define float @test_nvvm_sqrt(float %a) {
|
define float @test_nvvm_sqrt(float %a) {
|
||||||
|
; CHECK: sqrt.rn.f32 %f{{[0-9]+}}, %f{{[0-9]+}};
|
||||||
|
; CHECK: ret;
|
||||||
%val = call float @llvm.nvvm.sqrt.f(float %a)
|
%val = call float @llvm.nvvm.sqrt.f(float %a)
|
||||||
ret float %val
|
ret float %val
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue