LegalizeDAG: Respect the result of TLI.getBooleanContents() when expanding SETCC
[oota-llvm.git] / test / CodeGen / NVPTX / intrinsics.ll
1 ; RUN: llc < %s -march=nvptx -mcpu=sm_10 | FileCheck %s
2 ; RUN: llc < %s -march=nvptx64 -mcpu=sm_10 | FileCheck %s
3 ; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
4 ; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 | FileCheck %s
5
6 define ptx_device float @test_fabsf(float %f) {
7 ; CHECK: abs.f32 %f0, %f0;
8 ; CHECK: ret;
9         %x = call float @llvm.fabs.f32(float %f)
10         ret float %x
11 }
12
13 define ptx_device double @test_fabs(double %d) {
14 ; CHECK: abs.f64 %fl0, %fl0;
15 ; CHECK: ret;
16         %x = call double @llvm.fabs.f64(double %d)
17         ret double %x
18 }
19
20 declare float @llvm.fabs.f32(float)
21 declare double @llvm.fabs.f64(double)