; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve < %s 2>%t | FileCheck %s ; RUN: FileCheck --check-prefix=WARN --allow-empty %s <%t ; If this check fails please read test/CodeGen/AArch64/README for instructions on how to resolve it. ; WARN-NOT: warning ; ; FP_EXTEND ; define @fcvts_nxv2f16( %a) { ; CHECK-LABEL: fcvts_nxv2f16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvt z0.s, p0/m, z0.h ; CHECK-NEXT: ret %res = fpext %a to ret %res } define @fcvts_nxv4f16( %a) { ; CHECK-LABEL: fcvts_nxv4f16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.s ; CHECK-NEXT: fcvt z0.s, p0/m, z0.h ; CHECK-NEXT: ret %res = fpext %a to ret %res } define @fcvtd_nxv2f16( %a) { ; CHECK-LABEL: fcvtd_nxv2f16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvt z0.d, p0/m, z0.h ; CHECK-NEXT: ret %res = fpext %a to ret %res } define @fcvtd_nxv2f32( %a) { ; CHECK-LABEL: fcvtd_nxv2f32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvt z0.d, p0/m, z0.s ; CHECK-NEXT: ret %res = fpext %a to ret %res } ; ; FP_ROUND ; define @fcvth_nxv2f32( %a) { ; CHECK-LABEL: fcvth_nxv2f32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvt z0.h, p0/m, z0.s ; CHECK-NEXT: ret %res = fptrunc %a to ret %res } define @fcvth_nxv4f32( %a) { ; CHECK-LABEL: fcvth_nxv4f32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.s ; CHECK-NEXT: fcvt z0.h, p0/m, z0.s ; CHECK-NEXT: ret %res = fptrunc %a to ret %res } define @fcvth_nxv2f64( %a) { ; CHECK-LABEL: fcvth_nxv2f64: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvt z0.h, p0/m, z0.d ; CHECK-NEXT: ret %res = fptrunc %a to ret %res } define @fcvts_nxv2f64( %a) { ; CHECK-LABEL: fcvts_nxv2f64: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvt z0.s, p0/m, z0.d ; CHECK-NEXT: ret %res = fptrunc %a to ret %res } ; ; FP_TO_SINT ; define @fcvtzs_h_nxv2f16( %a) { ; CHECK-LABEL: fcvtzs_h_nxv2f16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvtzs z0.d, p0/m, z0.h ; CHECK-NEXT: ret %res = fptosi %a to ret %res } define @fcvtzs_h_nxv2f32( %a) { ; CHECK-LABEL: fcvtzs_h_nxv2f32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvtzs z0.d, p0/m, z0.s ; CHECK-NEXT: ret %res = fptosi %a to ret %res } define @fcvtzs_h_nxv2f64( %a) { ; CHECK-LABEL: fcvtzs_h_nxv2f64: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvtzs z0.d, p0/m, z0.d ; CHECK-NEXT: ret %res = fptosi %a to ret %res } define @fcvtzs_h_nxv4f16( %a) { ; CHECK-LABEL: fcvtzs_h_nxv4f16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.s ; CHECK-NEXT: fcvtzs z0.s, p0/m, z0.h ; CHECK-NEXT: ret %res = fptosi %a to ret %res } define @fcvtzs_h_nxv4f32( %a) { ; CHECK-LABEL: fcvtzs_h_nxv4f32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.s ; CHECK-NEXT: fcvtzs z0.s, p0/m, z0.s ; CHECK-NEXT: ret %res = fptosi %a to ret %res } define @fcvtzs_h_nxv8f16( %a) { ; CHECK-LABEL: fcvtzs_h_nxv8f16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.h ; CHECK-NEXT: fcvtzs z0.h, p0/m, z0.h ; CHECK-NEXT: ret %res = fptosi %a to ret %res } define @fcvtzs_s_nxv2f16( %a) { ; CHECK-LABEL: fcvtzs_s_nxv2f16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvtzs z0.d, p0/m, z0.h ; CHECK-NEXT: ret %res = fptosi %a to ret %res } define @fcvtzs_s_nxv2f32( %a) { ; CHECK-LABEL: fcvtzs_s_nxv2f32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvtzs z0.d, p0/m, z0.s ; CHECK-NEXT: ret %res = fptosi %a to ret %res } define @fcvtzs_s_nxv2f64( %a) { ; CHECK-LABEL: fcvtzs_s_nxv2f64: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvtzs z0.d, p0/m, z0.d ; CHECK-NEXT: ret %res = fptosi %a to ret %res } define @fcvtzs_s_nxv4f16( %a) { ; CHECK-LABEL: fcvtzs_s_nxv4f16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.s ; CHECK-NEXT: fcvtzs z0.s, p0/m, z0.h ; CHECK-NEXT: ret %res = fptosi %a to ret %res } define @fcvtzs_s_nxv4f32( %a) { ; CHECK-LABEL: fcvtzs_s_nxv4f32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.s ; CHECK-NEXT: fcvtzs z0.s, p0/m, z0.s ; CHECK-NEXT: ret %res = fptosi %a to ret %res } define @fcvtzs_d_nxv2f16( %a) { ; CHECK-LABEL: fcvtzs_d_nxv2f16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvtzs z0.d, p0/m, z0.h ; CHECK-NEXT: ret %res = fptosi %a to ret %res } define @fcvtzs_d_nxv2f32( %a) { ; CHECK-LABEL: fcvtzs_d_nxv2f32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvtzs z0.d, p0/m, z0.s ; CHECK-NEXT: ret %res = fptosi %a to ret %res } define @fcvtzs_d_nxv2f64( %a) { ; CHECK-LABEL: fcvtzs_d_nxv2f64: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvtzs z0.d, p0/m, z0.d ; CHECK-NEXT: ret %res = fptosi %a to ret %res } ; ; FP_TO_UINT ; ; NOTE: Using fcvtzs is safe as fptoui overflow is considered poison and a ; 64bit signed value encompasses the entire range of a 16bit unsigned value define @fcvtzu_h_nxv2f16( %a) { ; CHECK-LABEL: fcvtzu_h_nxv2f16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvtzs z0.d, p0/m, z0.h ; CHECK-NEXT: ret %res = fptoui %a to ret %res } define @fcvtzu_h_nxv2f32( %a) { ; CHECK-LABEL: fcvtzu_h_nxv2f32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvtzs z0.d, p0/m, z0.s ; CHECK-NEXT: ret %res = fptoui %a to ret %res } define @fcvtzu_h_nxv2f64( %a) { ; CHECK-LABEL: fcvtzu_h_nxv2f64: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvtzs z0.d, p0/m, z0.d ; CHECK-NEXT: ret %res = fptoui %a to ret %res } define @fcvtzu_h_nxv4f16( %a) { ; CHECK-LABEL: fcvtzu_h_nxv4f16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.s ; CHECK-NEXT: fcvtzs z0.s, p0/m, z0.h ; CHECK-NEXT: ret %res = fptoui %a to ret %res } define @fcvtzu_h_nxv4f32( %a) { ; CHECK-LABEL: fcvtzu_h_nxv4f32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.s ; CHECK-NEXT: fcvtzs z0.s, p0/m, z0.s ; CHECK-NEXT: ret %res = fptosi %a to ret %res } define @fcvtzu_h_nxv8f16( %a) { ; CHECK-LABEL: fcvtzu_h_nxv8f16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.h ; CHECK-NEXT: fcvtzu z0.h, p0/m, z0.h ; CHECK-NEXT: ret %res = fptoui %a to ret %res } define @fcvtzu_s_nxv2f16( %a) { ; CHECK-LABEL: fcvtzu_s_nxv2f16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvtzs z0.d, p0/m, z0.h ; CHECK-NEXT: ret %res = fptoui %a to ret %res } define @fcvtzu_s_nxv2f32( %a) { ; CHECK-LABEL: fcvtzu_s_nxv2f32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvtzs z0.d, p0/m, z0.s ; CHECK-NEXT: ret %res = fptoui %a to ret %res } define @fcvtzu_s_nxv2f64( %a) { ; CHECK-LABEL: fcvtzu_s_nxv2f64: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvtzs z0.d, p0/m, z0.d ; CHECK-NEXT: ret %res = fptoui %a to ret %res } define @fcvtzu_s_nxv4f16( %a) { ; CHECK-LABEL: fcvtzu_s_nxv4f16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.s ; CHECK-NEXT: fcvtzu z0.s, p0/m, z0.h ; CHECK-NEXT: ret %res = fptoui %a to ret %res } define @fcvtzu_s_nxv4f32( %a) { ; CHECK-LABEL: fcvtzu_s_nxv4f32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.s ; CHECK-NEXT: fcvtzu z0.s, p0/m, z0.s ; CHECK-NEXT: ret %res = fptoui %a to ret %res } define @fcvtzu_d_nxv2f16( %a) { ; CHECK-LABEL: fcvtzu_d_nxv2f16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvtzu z0.d, p0/m, z0.h ; CHECK-NEXT: ret %res = fptoui %a to ret %res } define @fcvtzu_d_nxv2f32( %a) { ; CHECK-LABEL: fcvtzu_d_nxv2f32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvtzu z0.d, p0/m, z0.s ; CHECK-NEXT: ret %res = fptoui %a to ret %res } define @fcvtzu_d_nxv2f64( %a) { ; CHECK-LABEL: fcvtzu_d_nxv2f64: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: fcvtzu z0.d, p0/m, z0.d ; CHECK-NEXT: ret %res = fptoui %a to ret %res } ; SINT_TO_FP define @scvtf_h_nxv2i1( %a) { ; CHECK-LABEL: scvtf_h_nxv2i1: ; CHECK: // %bb.0: ; CHECK-NEXT: mov z0.d, p0/z, #-1 // =0xffffffffffffffff ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: scvtf z0.h, p0/m, z0.d ; CHECK-NEXT: ret %res = sitofp %a to ret %res } define @scvtf_h_nxv2i16( %a) { ; CHECK-LABEL: scvtf_h_nxv2i16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: scvtf z0.h, p0/m, z0.h ; CHECK-NEXT: ret %res = sitofp %a to ret %res } define @scvtf_h_nxv2i32( %a) { ; CHECK-LABEL: scvtf_h_nxv2i32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: scvtf z0.h, p0/m, z0.s ; CHECK-NEXT: ret %res = sitofp %a to ret %res } define @scvtf_h_nxv2i64( %a) { ; CHECK-LABEL: scvtf_h_nxv2i64: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: scvtf z0.h, p0/m, z0.d ; CHECK-NEXT: ret %res = sitofp %a to ret %res } define @scvtf_h_nxv4i1( %a) { ; CHECK-LABEL: scvtf_h_nxv4i1: ; CHECK: // %bb.0: ; CHECK-NEXT: mov z0.s, p0/z, #-1 // =0xffffffffffffffff ; CHECK-NEXT: ptrue p0.s ; CHECK-NEXT: scvtf z0.h, p0/m, z0.s ; CHECK-NEXT: ret %res = sitofp %a to ret %res } define @scvtf_h_nxv4i16( %a) { ; CHECK-LABEL: scvtf_h_nxv4i16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.s ; CHECK-NEXT: scvtf z0.h, p0/m, z0.h ; CHECK-NEXT: ret %res = sitofp %a to ret %res } define @scvtf_h_nxv4i32( %a) { ; CHECK-LABEL: scvtf_h_nxv4i32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.s ; CHECK-NEXT: scvtf z0.h, p0/m, z0.s ; CHECK-NEXT: ret %res = sitofp %a to ret %res } define @scvtf_h_nxv8i1( %a) { ; CHECK-LABEL: scvtf_h_nxv8i1: ; CHECK: // %bb.0: ; CHECK-NEXT: mov z0.h, p0/z, #-1 // =0xffffffffffffffff ; CHECK-NEXT: ptrue p0.h ; CHECK-NEXT: scvtf z0.h, p0/m, z0.h ; CHECK-NEXT: ret %res = sitofp %a to ret %res } define @scvtf_h_nxv8i16( %a) { ; CHECK-LABEL: scvtf_h_nxv8i16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.h ; CHECK-NEXT: scvtf z0.h, p0/m, z0.h ; CHECK-NEXT: ret %res = sitofp %a to ret %res } define @scvtf_s_nxv2i1( %a) { ; CHECK-LABEL: scvtf_s_nxv2i1: ; CHECK: // %bb.0: ; CHECK-NEXT: mov z0.d, p0/z, #-1 // =0xffffffffffffffff ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: scvtf z0.s, p0/m, z0.d ; CHECK-NEXT: ret %res = sitofp %a to ret %res } define @scvtf_s_nxv2i32( %a) { ; CHECK-LABEL: scvtf_s_nxv2i32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: scvtf z0.s, p0/m, z0.s ; CHECK-NEXT: ret %res = sitofp %a to ret %res } define @scvtf_s_nxv2i64( %a) { ; CHECK-LABEL: scvtf_s_nxv2i64: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: scvtf z0.s, p0/m, z0.d ; CHECK-NEXT: ret %res = sitofp %a to ret %res } define @scvtf_s_nxv4i1( %a) { ; CHECK-LABEL: scvtf_s_nxv4i1: ; CHECK: // %bb.0: ; CHECK-NEXT: mov z0.s, p0/z, #-1 // =0xffffffffffffffff ; CHECK-NEXT: ptrue p0.s ; CHECK-NEXT: scvtf z0.s, p0/m, z0.s ; CHECK-NEXT: ret %res = sitofp %a to ret %res } define @scvtf_s_nxv4i32( %a) { ; CHECK-LABEL: scvtf_s_nxv4i32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.s ; CHECK-NEXT: scvtf z0.s, p0/m, z0.s ; CHECK-NEXT: ret %res = sitofp %a to ret %res } define @scvtf_d_nxv2i1( %a) { ; CHECK-LABEL: scvtf_d_nxv2i1: ; CHECK: // %bb.0: ; CHECK-NEXT: mov z0.d, p0/z, #-1 // =0xffffffffffffffff ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: scvtf z0.d, p0/m, z0.d ; CHECK-NEXT: ret %res = sitofp %a to ret %res } define @scvtf_d_nxv2i32( %a) { ; CHECK-LABEL: scvtf_d_nxv2i32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: scvtf z0.d, p0/m, z0.s ; CHECK-NEXT: ret %res = sitofp %a to ret %res } define @scvtf_d_nxv2i64( %a) { ; CHECK-LABEL: scvtf_d_nxv2i64: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: scvtf z0.d, p0/m, z0.d ; CHECK-NEXT: ret %res = sitofp %a to ret %res } ; UINT_TO_FP define @ucvtf_h_nxv2i1( %a) { ; CHECK-LABEL: ucvtf_h_nxv2i1: ; CHECK: // %bb.0: ; CHECK-NEXT: mov z0.d, p0/z, #1 // =0x1 ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: ucvtf z0.h, p0/m, z0.d ; CHECK-NEXT: ret %res = uitofp %a to ret %res } define @ucvtf_h_nxv2i16( %a) { ; CHECK-LABEL: ucvtf_h_nxv2i16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: ucvtf z0.h, p0/m, z0.h ; CHECK-NEXT: ret %res = uitofp %a to ret %res } define @ucvtf_h_nxv2i32( %a) { ; CHECK-LABEL: ucvtf_h_nxv2i32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: ucvtf z0.h, p0/m, z0.s ; CHECK-NEXT: ret %res = uitofp %a to ret %res } define @ucvtf_h_nxv2i64( %a) { ; CHECK-LABEL: ucvtf_h_nxv2i64: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: ucvtf z0.h, p0/m, z0.d ; CHECK-NEXT: ret %res = uitofp %a to ret %res } define @ucvtf_h_nxv4i1( %a) { ; CHECK-LABEL: ucvtf_h_nxv4i1: ; CHECK: // %bb.0: ; CHECK-NEXT: mov z0.s, p0/z, #1 // =0x1 ; CHECK-NEXT: ptrue p0.s ; CHECK-NEXT: ucvtf z0.h, p0/m, z0.s ; CHECK-NEXT: ret %res = uitofp %a to ret %res } define @ucvtf_h_nxv4i16( %a) { ; CHECK-LABEL: ucvtf_h_nxv4i16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.s ; CHECK-NEXT: ucvtf z0.h, p0/m, z0.h ; CHECK-NEXT: ret %res = uitofp %a to ret %res } define @ucvtf_h_nxv4i32( %a) { ; CHECK-LABEL: ucvtf_h_nxv4i32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.s ; CHECK-NEXT: ucvtf z0.h, p0/m, z0.s ; CHECK-NEXT: ret %res = uitofp %a to ret %res } define @ucvtf_h_nxv8i1( %a) { ; CHECK-LABEL: ucvtf_h_nxv8i1: ; CHECK: // %bb.0: ; CHECK-NEXT: mov z0.h, p0/z, #1 // =0x1 ; CHECK-NEXT: ptrue p0.h ; CHECK-NEXT: ucvtf z0.h, p0/m, z0.h ; CHECK-NEXT: ret %res = uitofp %a to ret %res } define @ucvtf_h_nxv8i16( %a) { ; CHECK-LABEL: ucvtf_h_nxv8i16: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.h ; CHECK-NEXT: ucvtf z0.h, p0/m, z0.h ; CHECK-NEXT: ret %res = uitofp %a to ret %res } define @ucvtf_s_nxv2i1( %a) { ; CHECK-LABEL: ucvtf_s_nxv2i1: ; CHECK: // %bb.0: ; CHECK-NEXT: mov z0.d, p0/z, #1 // =0x1 ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: ucvtf z0.s, p0/m, z0.d ; CHECK-NEXT: ret %res = uitofp %a to ret %res } define @ucvtf_s_nxv2i32( %a) { ; CHECK-LABEL: ucvtf_s_nxv2i32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: ucvtf z0.s, p0/m, z0.s ; CHECK-NEXT: ret %res = uitofp %a to ret %res } define @ucvtf_s_nxv2i64( %a) { ; CHECK-LABEL: ucvtf_s_nxv2i64: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: ucvtf z0.s, p0/m, z0.d ; CHECK-NEXT: ret %res = uitofp %a to ret %res } define @ucvtf_s_nxv4i1( %a) { ; CHECK-LABEL: ucvtf_s_nxv4i1: ; CHECK: // %bb.0: ; CHECK-NEXT: mov z0.s, p0/z, #1 // =0x1 ; CHECK-NEXT: ptrue p0.s ; CHECK-NEXT: ucvtf z0.s, p0/m, z0.s ; CHECK-NEXT: ret %res = uitofp %a to ret %res } define @ucvtf_s_nxv4i32( %a) { ; CHECK-LABEL: ucvtf_s_nxv4i32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.s ; CHECK-NEXT: ucvtf z0.s, p0/m, z0.s ; CHECK-NEXT: ret %res = uitofp %a to ret %res } define @ucvtf_d_nxv2i1( %a) { ; CHECK-LABEL: ucvtf_d_nxv2i1: ; CHECK: // %bb.0: ; CHECK-NEXT: mov z0.d, p0/z, #1 // =0x1 ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: ucvtf z0.d, p0/m, z0.d ; CHECK-NEXT: ret %res = uitofp %a to ret %res } define @ucvtf_d_nxv2i32( %a) { ; CHECK-LABEL: ucvtf_d_nxv2i32: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: ucvtf z0.d, p0/m, z0.s ; CHECK-NEXT: ret %res = uitofp %a to ret %res } define @ucvtf_d_nxv2i64( %a) { ; CHECK-LABEL: ucvtf_d_nxv2i64: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p0.d ; CHECK-NEXT: ucvtf z0.d, p0/m, z0.d ; CHECK-NEXT: ret %res = uitofp %a to ret %res }