[llvm] [LoongArch] Support bswap for LSX/LASX VTs (PR #114171)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 31 05:14:52 PDT 2024


================
@@ -317,6 +320,9 @@ LoongArchTargetLowering::LoongArchTargetLowering(const TargetMachine &TM,
           {ISD::SETNE, ISD::SETGE, ISD::SETGT, ISD::SETUGE, ISD::SETUGT}, VT,
           Expand);
     }
+    for (MVT VT : {MVT::v16i16, MVT::v8i32, MVT::v4i64}) {
+      setOperationAction(ISD::BSWAP, VT, Legal);
+    }
----------------
heiher wrote:

Ditto.

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


More information about the llvm-commits mailing list