Skip to content

Commit

Permalink
[NVPTX] Added missing test case for llvm.nvvm.sqrt.f NVPTX intrinsic
Browse files Browse the repository at this point in the history
Differential Revision: http://reviews.llvm.org/D10663

llvm-svn: 240437
  • Loading branch information
Artem-B committed Jun 23, 2015
1 parent 6f8a6be commit 6c96272
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/test/CodeGen/NVPTX/intrinsics.ll
Expand Up @@ -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
}
Expand Down

0 comments on commit 6c96272

Please sign in to comment.