[NVPTX] Added missing test case for llvm.nvvm.sqrt.f NVPTX intrinsic

Differential Revision: http://reviews.llvm.org/D10663

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240437 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Artem Belevich 2015-06-23 18:22:17 +00:00
parent 1c5cf241af
commit 572587cad1

View File

@ -16,6 +16,8 @@ define ptx_device double @test_fabs(double %d) {
}
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)
ret float %val
}