Index: llvm/lib/Target/AArch64/SVEInstrFormats.td =================================================================== --- llvm/lib/Target/AArch64/SVEInstrFormats.td +++ llvm/lib/Target/AArch64/SVEInstrFormats.td @@ -2270,6 +2270,7 @@ def : SVE_2_Op_Pat(NAME # _H)>; def : SVE_2_Op_Pat(NAME # _S)>; def : SVE_2_Op_Pat(NAME # _S)>; + def : SVE_2_Op_Pat(NAME # _D)>; def : SVE_2_Op_Pat(NAME # _D)>; def : SVE_2_Op_Pat(NAME # _H)>; Index: llvm/test/CodeGen/AArch64/sve-intrinsics-perm-select.ll =================================================================== --- llvm/test/CodeGen/AArch64/sve-intrinsics-perm-select.ll +++ llvm/test/CodeGen/AArch64/sve-intrinsics-perm-select.ll @@ -1304,6 +1304,15 @@ ret %out } +define @trn1_f32_v2( %a, %b) { +; CHECK-LABEL: trn1_f32_v2: +; CHECK: trn1 z0.d, z0.d, z1.d +; CHECK-NEXT: ret + %out = call @llvm.aarch64.sve.trn1.nxv2f32( %a, + %b) + ret %out +} + define @trn1_f32( %a, %b) { ; CHECK-LABEL: trn1_f32: ; CHECK: trn1 z0.s, z0.s, z1.s @@ -1425,6 +1434,15 @@ ret %out } +define @trn2_f32_v2( %a, %b) { +; CHECK-LABEL: trn2_f32_v2: +; CHECK: trn2 z0.d, z0.d, z1.d +; CHECK-NEXT: ret + %out = call @llvm.aarch64.sve.trn2.nxv2f32( %a, + %b) + ret %out +} + define @trn2_f32( %a, %b) { ; CHECK-LABEL: trn2_f32: ; CHECK: trn2 z0.s, z0.s, z1.s @@ -1546,6 +1564,15 @@ ret %out } +define @uzp1_f32_v2( %a, %b) { +; CHECK-LABEL: uzp1_f32_v2: +; CHECK: uzp1 z0.d, z0.d, z1.d +; CHECK-NEXT: ret + %out = call @llvm.aarch64.sve.uzp1.nxv2f32( %a, + %b) + ret %out +} + define @uzp1_f32( %a, %b) { ; CHECK-LABEL: uzp1_f32: ; CHECK: uzp1 z0.s, z0.s, z1.s @@ -1667,6 +1694,15 @@ ret %out } +define @uzp2_f32_v2( %a, %b) { +; CHECK-LABEL: uzp2_f32_v2: +; CHECK: uzp2 z0.d, z0.d, z1.d +; CHECK-NEXT: ret + %out = call @llvm.aarch64.sve.uzp2.nxv2f32( %a, + %b) + ret %out +} + define @uzp2_f32( %a, %b) { ; CHECK-LABEL: uzp2_f32: ; CHECK: uzp2 z0.s, z0.s, z1.s @@ -1788,6 +1824,15 @@ ret %out } +define @zip1_f32_v2( %a, %b) { +; CHECK-LABEL: zip1_f32_v2: +; CHECK: zip1 z0.d, z0.d, z1.d +; CHECK-NEXT: ret + %out = call @llvm.aarch64.sve.zip1.nxv2f32( %a, + %b) + ret %out +} + define @zip1_f32( %a, %b) { ; CHECK-LABEL: zip1_f32: ; CHECK: zip1 z0.s, z0.s, z1.s @@ -1909,6 +1954,15 @@ ret %out } +define @zip2_f32_v2( %a, %b) { +; CHECK-LABEL: zip2_f32_v2: +; CHECK: zip2 z0.d, z0.d, z1.d +; CHECK-NEXT: ret + %out = call @llvm.aarch64.sve.zip2.nxv2f32( %a, + %b) + ret %out +} + define @zip2_f32( %a, %b) { ; CHECK-LABEL: zip2_f32: ; CHECK: zip2 z0.s, z0.s, z1.s @@ -2064,6 +2118,7 @@ declare @llvm.aarch64.sve.trn1.nxv4f16(, ) declare @llvm.aarch64.sve.trn1.nxv8bf16(, ) declare @llvm.aarch64.sve.trn1.nxv8f16(, ) +declare @llvm.aarch64.sve.trn1.nxv2f32(, ) declare @llvm.aarch64.sve.trn1.nxv4f32(, ) declare @llvm.aarch64.sve.trn1.nxv2f64(, ) @@ -2078,6 +2133,7 @@ declare @llvm.aarch64.sve.trn2.nxv4f16(, ) declare @llvm.aarch64.sve.trn2.nxv8bf16(, ) declare @llvm.aarch64.sve.trn2.nxv8f16(, ) +declare @llvm.aarch64.sve.trn2.nxv2f32(, ) declare @llvm.aarch64.sve.trn2.nxv4f32(, ) declare @llvm.aarch64.sve.trn2.nxv2f64(, ) @@ -2092,6 +2148,7 @@ declare @llvm.aarch64.sve.uzp1.nxv4f16(, ) declare @llvm.aarch64.sve.uzp1.nxv8bf16(, ) declare @llvm.aarch64.sve.uzp1.nxv8f16(, ) +declare @llvm.aarch64.sve.uzp1.nxv2f32(, ) declare @llvm.aarch64.sve.uzp1.nxv4f32(, ) declare @llvm.aarch64.sve.uzp1.nxv2f64(, ) @@ -2106,6 +2163,7 @@ declare @llvm.aarch64.sve.uzp2.nxv4f16(, ) declare @llvm.aarch64.sve.uzp2.nxv8bf16(, ) declare @llvm.aarch64.sve.uzp2.nxv8f16(, ) +declare @llvm.aarch64.sve.uzp2.nxv2f32(, ) declare @llvm.aarch64.sve.uzp2.nxv4f32(, ) declare @llvm.aarch64.sve.uzp2.nxv2f64(, ) @@ -2120,6 +2178,7 @@ declare @llvm.aarch64.sve.zip1.nxv4f16(, ) declare @llvm.aarch64.sve.zip1.nxv8bf16(, ) declare @llvm.aarch64.sve.zip1.nxv8f16(, ) +declare @llvm.aarch64.sve.zip1.nxv2f32(, ) declare @llvm.aarch64.sve.zip1.nxv4f32(, ) declare @llvm.aarch64.sve.zip1.nxv2f64(, ) @@ -2134,6 +2193,7 @@ declare @llvm.aarch64.sve.zip2.nxv4f16(, ) declare @llvm.aarch64.sve.zip2.nxv8bf16(, ) declare @llvm.aarch64.sve.zip2.nxv8f16(, ) +declare @llvm.aarch64.sve.zip2.nxv2f32(, ) declare @llvm.aarch64.sve.zip2.nxv4f32(, ) declare @llvm.aarch64.sve.zip2.nxv2f64(, )