1; RUN: llc < %s -march=nvptx -mcpu=sm_20 -nvptx-prec-divf32=1 -nvptx-prec-sqrtf32=0 | FileCheck %s
2
3target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-n16:32:64"
4
5declare float @llvm.nvvm.sqrt.f(float)
6
7define float @foo(float %a) {
8; CHECK: rsqrt.approx.f32
9  %val = tail call float @llvm.nvvm.sqrt.f(float %a)
10  %ret = fdiv float 1.0, %val
11  ret float %ret
12}
13
14