Deleted Added
full compact
68a69,73
> // Scaled 4 immediate.
> def t_imm_s4 : Operand<i32> {
> let PrintMethod = "printThumbS4ImmOperand";
> }
>
137,138c142,143
< def tADDrPCi : T1I<(outs tGPR:$dst), (ins i32imm:$rhs), IIC_iALUi,
< "add\t$dst, pc, $rhs * 4", []>;
---
> def tADDrPCi : T1I<(outs tGPR:$dst), (ins t_imm_s4:$rhs), IIC_iALUi,
> "add\t$dst, pc, $rhs", []>;
141,142c146,147
< def tADDrSPi : T1I<(outs tGPR:$dst), (ins GPR:$sp, i32imm:$rhs), IIC_iALUi,
< "add\t$dst, $sp, $rhs * 4", []>;
---
> def tADDrSPi : T1I<(outs tGPR:$dst), (ins GPR:$sp, t_imm_s4:$rhs), IIC_iALUi,
> "add\t$dst, $sp, $rhs", []>;
145,146c150,151
< def tADDspi : TIt<(outs GPR:$dst), (ins GPR:$lhs, i32imm:$rhs), IIC_iALUi,
< "add\t$dst, $rhs * 4", []>;
---
> def tADDspi : TIt<(outs GPR:$dst), (ins GPR:$lhs, t_imm_s4:$rhs), IIC_iALUi,
> "add\t$dst, $rhs", []>;
149,150c154,155
< def tSUBspi : TIt<(outs GPR:$dst), (ins GPR:$lhs, i32imm:$rhs), IIC_iALUi,
< "sub\t$dst, $rhs * 4", []>;
---
> def tSUBspi : TIt<(outs GPR:$dst), (ins GPR:$lhs, t_imm_s4:$rhs), IIC_iALUi,
> "sub\t$dst, $rhs", []>;
162,163c167,168
< def tSUBspi_ : PseudoInst<(outs GPR:$dst), (ins GPR:$lhs, i32imm:$rhs),
< NoItinerary, "@ sub\t$dst, $rhs * 4", []>;
---
> def tSUBspi_ : PseudoInst<(outs GPR:$dst), (ins GPR:$lhs, t_imm_s4:$rhs),
> NoItinerary, "@ sub\t$dst, $rhs", []>;