; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3
; RUN: llc --mtriple=loongarch64 --mattr=+lsx < %s | FileCheck %s
define void @uitofp_v4i32_v4f32(ptr %res, ptr %in){
; CHECK-LABEL: uitofp_v4i32_v4f32:
; CHECK: # %bb.0:
; CHECK-NEXT: vld $vr0, $a1, 0
; CHECK-NEXT: vffint.s.wu $vr0, $vr0
; CHECK-NEXT: vst $vr0, $a0, 0
; CHECK-NEXT: ret
%v0 = load <4 x i32>, ptr %in
%v1 = uitofp <4 x i32> %v0 to <4 x float>
store <4 x float> %v1, ptr %res
ret void
}
define void @uitofp_v2i64_v2f64(ptr %res, ptr %in){
; CHECK-LABEL: uitofp_v2i64_v2f64:
; CHECK: # %bb.0:
; CHECK-NEXT: vld $vr0, $a1, 0
; CHECK-NEXT: vffint.d.lu $vr0, $vr0
; CHECK-NEXT: vst $vr0, $a0, 0
; CHECK-NEXT: ret
%v0 = load <2 x i64>, ptr %in
%v1 = uitofp <2 x i64> %v0 to <2 x double>
store <2 x double> %v1, ptr %res
ret void
}