[NVPTX] Added missing test case for llvm.nvvm.sqrt.f NVPTX intrinsic
authorArtem Belevich <tra@google.com>
Tue, 23 Jun 2015 18:22:17 +0000 (18:22 +0000)
committerArtem Belevich <tra@google.com>
Tue, 23 Jun 2015 18:22:17 +0000 (18:22 +0000)
Differential Revision: http://reviews.llvm.org/D10663

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240437 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/NVPTX/intrinsics.ll

index 34b671d70e94f741574c93237cccd9e4bf502a45..06a8712c2102a118cb23a9aa240b195bcc37104d 100644 (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
 }