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_uint_v2i32
      5 ; R600-CHECK: FLT_TO_UINT {{\** *}}T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
      6 ; R600-CHECK: FLT_TO_UINT {{\** *}}T{{[0-9]+\.[XYZW], T[0-9]+\.[XYZW]}}
      7 ; SI-CHECK: @fp_to_uint_v2i32
      8 ; SI-CHECK: V_CVT_U32_F32_e32
      9 ; SI-CHECK: V_CVT_U32_F32_e32
     10 
     11 define void @fp_to_uint_v2i32(<2 x i32> addrspace(1)* %out, <2 x float> %in) {
     12   %result = fptoui <2 x float> %in to <2 x i32>
     13   store <2 x i32> %result, <2 x i32> addrspace(1)* %out
     14   ret void
     15 }
     16 
     17 ; R600-CHECK: @fp_to_uint_v4i32
     18 ; R600-CHECK: FLT_TO_UINT {{\** *}}T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
     19 ; R600-CHECK: FLT_TO_UINT {{\** *}}T{{[0-9]+\.[XYZW], T[0-9]+\.[XYZW]}}
     20 ; R600-CHECK: FLT_TO_UINT {{\** *}}T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
     21 ; R600-CHECK: FLT_TO_UINT {{\** *}}T{{[0-9]+\.[XYZW], PV\.[XYZW]}}
     22 ; SI-CHECK: @fp_to_uint_v4i32
     23 ; SI-CHECK: V_CVT_U32_F32_e32
     24 ; SI-CHECK: V_CVT_U32_F32_e32
     25 ; SI-CHECK: V_CVT_U32_F32_e32
     26 ; SI-CHECK: V_CVT_U32_F32_e32
     27 
     28 define void @fp_to_uint_v4i32(<4 x i32> addrspace(1)* %out, <4 x float> addrspace(1)* %in) {
     29   %value = load <4 x float> addrspace(1) * %in
     30   %result = fptoui <4 x float> %value to <4 x i32>
     31   store <4 x i32> %result, <4 x i32> addrspace(1)* %out
     32   ret void
     33 }
     34