1 ; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
3 ; FUNC-LABEL: {{^}}fp_to_sint_f64_i32:
4 ; SI: V_CVT_I32_F64_e32
5 define void @fp_to_sint_f64_i32(i32 addrspace(1)* %out, double %in) {
6 %result = fptosi double %in to i32
7 store i32 %result, i32 addrspace(1)* %out
11 ; FUNC-LABEL: {{^}}fp_to_sint_v2f64_v2i32:
12 ; SI: V_CVT_I32_F64_e32
13 ; SI: V_CVT_I32_F64_e32
14 define void @fp_to_sint_v2f64_v2i32(<2 x i32> addrspace(1)* %out, <2 x double> %in) {
15 %result = fptosi <2 x double> %in to <2 x i32>
16 store <2 x i32> %result, <2 x i32> addrspace(1)* %out
20 ; FUNC-LABEL: {{^}}fp_to_sint_v4f64_v4i32:
21 ; SI: V_CVT_I32_F64_e32
22 ; SI: V_CVT_I32_F64_e32
23 ; SI: V_CVT_I32_F64_e32
24 ; SI: V_CVT_I32_F64_e32
25 define void @fp_to_sint_v4f64_v4i32(<4 x i32> addrspace(1)* %out, <4 x double> %in) {
26 %result = fptosi <4 x double> %in to <4 x i32>
27 store <4 x i32> %result, <4 x i32> addrspace(1)* %out