[llvm] [AArch64] Enable using SVE2 bit-sel instructions with Neon types. (PR #146906)

Ricardo Jesus via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 7 08:03:22 PDT 2025


================
@@ -5368,6 +5368,19 @@ multiclass sve2_int_bitwise_ternary_op<bits<3> opc, string asm,
   def : SVE_3_Op_Pat<nxv8i16, op, nxv8i16, nxv8i16, nxv8i16, !cast<Instruction>(NAME)>;
   def : SVE_3_Op_Pat<nxv4i32, op, nxv4i32, nxv4i32, nxv4i32, !cast<Instruction>(NAME)>;
   def : SVE_3_Op_Pat<nxv2i64, op, nxv2i64, nxv2i64, nxv2i64, !cast<Instruction>(NAME)>;
+
+  // Allow selecting SVE2 ternary ops with Neon types.
+  foreach VT = [nxv16i8, nxv8i16, nxv4i32, nxv2i64] in {
----------------
rj-jesus wrote:

Thanks very much - done. :)

https://github.com/llvm/llvm-project/pull/146906


More information about the llvm-commits mailing list