Home | History | Annotate | Download | only in NVPTX
      1 ; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
      2 
      3 ; CHECK-LABEL: foo
      4 ; CHECK: setp
      5 ; CHECK: selp
      6 ; CHECK: cvt.rn.f32.u32
      7 define float @foo(i1 %a) {
      8   %ret = uitofp i1 %a to float
      9   ret float %ret
     10 }
     11 
     12 ; CHECK-LABEL: foo2
     13 ; CHECK: setp
     14 ; CHECK: selp
     15 ; CHECK: cvt.rn.f32.s32
     16 define float @foo2(i1 %a) {
     17   %ret = sitofp i1 %a to float
     18   ret float %ret
     19 }
     20 
     21 ; CHECK-LABEL: foo3
     22 ; CHECK: setp
     23 ; CHECK: selp
     24 ; CHECK: cvt.rn.f64.u32
     25 define double @foo3(i1 %a) {
     26   %ret = uitofp i1 %a to double
     27   ret double %ret
     28 }
     29 
     30 ; CHECK-LABEL: foo4
     31 ; CHECK: setp
     32 ; CHECK: selp
     33 ; CHECK: cvt.rn.f64.s32
     34 define double @foo4(i1 %a) {
     35   %ret = sitofp i1 %a to double
     36   ret double %ret
     37 }
     38