1 ; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
2 ; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 | FileCheck %s
4 define ptx_device float @test_fabsf(float %f) {
5 ; CHECK: abs.f32 %f{{[0-9]+}}, %f{{[0-9]+}};
7 %x = call float @llvm.fabs.f32(float %f)
11 define ptx_device double @test_fabs(double %d) {
12 ; CHECK: abs.f64 %fd{{[0-9]+}}, %fd{{[0-9]+}};
14 %x = call double @llvm.fabs.f64(double %d)
18 define float @test_nvvm_sqrt(float %a) {
19 %val = call float @llvm.nvvm.sqrt.f(float %a)
24 declare float @llvm.fabs.f32(float)
25 declare double @llvm.fabs.f64(double)
26 declare float @llvm.nvvm.sqrt.f(float)