File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,10 @@ static unsigned log2LdstWidth(unsigned Opcode) {
103
103
case RISCV::SB:
104
104
return 0 ;
105
105
case RISCV::LH:
106
+ case RISCV::LH_INX:
106
107
case RISCV::LHU:
107
108
case RISCV::SH:
109
+ case RISCV::SH_INX:
108
110
return 1 ;
109
111
case RISCV::LW:
110
112
case RISCV::SW:
@@ -128,8 +130,10 @@ static unsigned offsetMask(unsigned Opcode) {
128
130
case RISCV::SB:
129
131
return maskTrailingOnes<unsigned >(2U );
130
132
case RISCV::LH:
133
+ case RISCV::LH_INX:
131
134
case RISCV::LHU:
132
135
case RISCV::SH:
136
+ case RISCV::SH_INX:
133
137
return maskTrailingOnes<unsigned >(1U );
134
138
case RISCV::LW:
135
139
case RISCV::SW:
@@ -186,6 +190,7 @@ static bool isCompressibleLoad(const MachineInstr &MI) {
186
190
return false ;
187
191
case RISCV::LBU:
188
192
case RISCV::LH:
193
+ case RISCV::LH_INX:
189
194
case RISCV::LHU:
190
195
return STI.hasStdExtZcb ();
191
196
case RISCV::LW:
@@ -207,6 +212,7 @@ static bool isCompressibleStore(const MachineInstr &MI) {
207
212
return false ;
208
213
case RISCV::SB:
209
214
case RISCV::SH:
215
+ case RISCV::SH_INX:
210
216
return STI.hasStdExtZcb ();
211
217
case RISCV::SW:
212
218
case RISCV::SD:
You can’t perform that action at this time.
0 commit comments