We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8c07f7 commit fd2e400Copy full SHA for fd2e400
llvm/lib/Target/RISCV/RISCVInstrInfoZb.td
@@ -596,7 +596,7 @@ def : Pat<(and (or (shl GPR:$rs2, (XLenVT 8)),
596
(PACKH GPR:$rs1, GPR:$rs2)>;
597
def : Pat<(or (shl (zexti8 (XLenVT GPR:$rs2)), (XLenVT 24)),
598
(shl (zexti8 (XLenVT GPR:$rs1)), (XLenVT 16))),
599
- (SLLI (PACKH GPR:$rs1, GPR:$rs2), (XLenVT 16))>;
+ (SLLI (XLenVT (PACKH GPR:$rs1, GPR:$rs2)), (XLenVT 16))>;
600
601
def : Pat<(binop_allhusers<or> (shl GPR:$rs2, (XLenVT 8)),
602
(zexti8 (XLenVT GPR:$rs1))),
@@ -612,7 +612,8 @@ def : Pat<(or (or
612
(or
613
(shl (zexti8 (XLenVT GPR:$op0rs2)), (XLenVT 8)),
614
(zexti8 (XLenVT GPR:$op0rs1)))),
615
- (PACK (PACKH GPR:$op0rs1, GPR:$op0rs2), (PACKH GPR:$op1rs1, GPR:$op1rs2))>;
+ (PACK (XLenVT (PACKH GPR:$op0rs1, GPR:$op0rs2)),
616
+ (XLenVT (PACKH GPR:$op1rs1, GPR:$op1rs2)))>;
617
}
618
619
let Predicates = [HasStdExtZbkb, IsRV64] in {
0 commit comments