File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -63,13 +63,14 @@ defm SD : SRL_r_aq_rl<0b011, "sd">;
63
63
//===----------------------------------------------------------------------===//
64
64
65
65
class PatLAQ<SDPatternOperator OpNode, RVInst Inst, ValueType vt = XLenVT>
66
- : Pat<(vt (OpNode (vt GPRMemZeroOffset:$rs1))), (Inst GPRMemZeroOffset:$rs1)>;
66
+ : Pat<(vt (OpNode (XLenVT GPRMemZeroOffset:$rs1))),
67
+ (Inst GPRMemZeroOffset:$rs1)>;
67
68
68
69
// n.b. this switches order of arguments
69
70
// to deal with the fact that SRL has addr, data
70
71
// while atomic_store has data, addr
71
72
class PatSRL<SDPatternOperator OpNode, RVInst Inst, ValueType vt = XLenVT>
72
- : Pat<(OpNode (vt GPR:$rs2), (vt GPRMemZeroOffset:$rs1)),
73
+ : Pat<(OpNode (vt GPR:$rs2), (XLenVT GPRMemZeroOffset:$rs1)),
73
74
(Inst GPRMemZeroOffset:$rs1, GPR:$rs2)>;
74
75
75
76
You can’t perform that action at this time.
0 commit comments