[llvm] [RISCV] Select unsigned bitfield extract for Xqcibm (PR #143354)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 9 08:19:33 PDT 2025
================
@@ -674,13 +674,23 @@ bool RISCVDAGToDAGISel::trySignedBitfieldExtract(SDNode *Node) {
bool RISCVDAGToDAGISel::tryUnsignedBitfieldExtract(SDNode *Node, SDLoc DL,
MVT VT, SDValue X,
unsigned Msb, unsigned Lsb) {
- // Only supported with XTHeadBb/XAndesPerf at the moment.
- if (!Subtarget->hasVendorXTHeadBb() && !Subtarget->hasVendorXAndesPerf())
+ unsigned Opc;
+
+ if (Subtarget->hasVendorXTHeadBb())
----------------
topperc wrote:
Coding standards require curly braces for all if/else bodies if any of them have curly braces.
https://github.com/llvm/llvm-project/pull/143354
More information about the llvm-commits
mailing list