Skip to content

Commit 8cef455

Browse files
[ARM] Fix STRT/STRHT/STRBT input/output operands.
STRT, STRHT, and STRBT are store instructions and their source register $Rt should be treated as an input operand instead of an output operand. This should fix things (e.g., liveness tracking in LivePhysRegs) if these instructions were used in CodeGen. Differential Revision: https://reviews.llvm.org/D95074
1 parent a9bd3d3 commit 8cef455

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/ARM/ARMInstrThumb2.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,7 @@ def t2STRH_preidx: t2PseudoInst<(outs GPRnopc:$Rn_wb),
17241724
// only.
17251725
// Ref: A8.6.193 STR (immediate, Thumb) Encoding T4
17261726
class T2IstT<bits<2> type, string opc, InstrItinClass ii>
1727-
: T2Ii8<(outs rGPR:$Rt), (ins t2addrmode_imm8:$addr), ii, opc,
1727+
: T2Ii8<(outs), (ins rGPR:$Rt, t2addrmode_imm8:$addr), ii, opc,
17281728
"\t$Rt, $addr", []>, Sched<[WriteST]> {
17291729
let Inst{31-27} = 0b11111;
17301730
let Inst{26-25} = 0b00;

0 commit comments

Comments
 (0)