Home | History | Annotate | Download | only in R600
      1 ; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s --check-prefix=R600-CHECK
      2 ; RUN: llc < %s -march=r600 -mcpu=SI -verify-machineinstrs | FileCheck %s --check-prefix=SI-CHECK
      3 
      4 ; R600-CHECK: @fp_to_sint_v2i32
      5 ; R600-CHECK: FLT_TO_INT {{\** *}}T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
      6 ; R600-CHECK: FLT_TO_INT {{\** *}}T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
      7 ; SI-CHECK: @fp_to_sint_v2i32
      8 ; SI-CHECK: V_CVT_I32_F32_e32
      9 ; SI-CHECK: V_CVT_I32_F32_e32
     10 define void @fp_to_sint_v2i32(<2 x i32> addrspace(1)* %out, <2 x float> %in) {
     11   %result = fptosi <2 x float> %in to <2 x i32>
     12   store <2 x i32> %result, <2 x i32> addrspace(1)* %out
     13   ret void
     14 }
     15 
     16 ; R600-CHECK: @fp_to_sint_v4i32
     17 ; R600-CHECK: FLT_TO_INT {{\** *}}T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
     18 ; R600-CHECK: FLT_TO_INT {{\** *}}T{{[0-9]+\.[XYZW]}}
     19 ; R600-CHECK: FLT_TO_INT {{\** *}}T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
     20 ; R600-CHECK: FLT_TO_INT {{\** *}}T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
     21 ; SI-CHECK: @fp_to_sint_v4i32
     22 ; SI-CHECK: V_CVT_I32_F32_e32
     23 ; SI-CHECK: V_CVT_I32_F32_e32
     24 ; SI-CHECK: V_CVT_I32_F32_e32
     25 ; SI-CHECK: V_CVT_I32_F32_e32
     26 define void @fp_to_sint_v4i32(<4 x i32> addrspace(1)* %out, <4 x float> addrspace(1)* %in) {
     27   %value = load <4 x float> addrspace(1) * %in
     28   %result = fptosi <4 x float> %value to <4 x i32>
     29   store <4 x i32> %result, <4 x i32> addrspace(1)* %out
     30   ret void
     31 }
     32