Skip to content

Commit 2bf6751

Browse files
committed
[RISCV] Add IsRV32 some patterns in RISCVInstrInfoXTHead.td.
This restores the code to its original state before I experimented with making i32 a legal type.
1 parent 0ff8b79 commit 2bf6751

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoXTHead.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,9 @@ defm : LdIdxPat<zextloadi16, TH_LRHU>;
769769

770770
defm : StIdxPat<truncstorei8, TH_SRB, GPR>;
771771
defm : StIdxPat<truncstorei16, TH_SRH, GPR>;
772+
}
772773

774+
let Predicates = [HasVendorXTHeadMemIdx, IsRV32] in {
773775
defm : LdIdxPat<load, TH_LRW, i32>;
774776
defm : StIdxPat<store, TH_SRW, GPR, i32>;
775777
}

0 commit comments

Comments
 (0)