Skip to content

Commit 8db4620

Browse files
author
Jim Grosbach
committed
ARM pre-v6 alias for 'nop' to 'mov r0, r0'
llvm-svn: 152185
1 parent eed9992 commit 8db4620

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Target/ARM/ARMInstrInfo.td

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5252,6 +5252,10 @@ def : ARMInstAlias<"mul${s}${p} $Rn, $Rm",
52525252
def : ARMInstAlias<"neg${s}${p} $Rd, $Rm",
52535253
(RSBri GPR:$Rd, GPR:$Rm, 0, pred:$p, cc_out:$s)>;
52545254

5255+
// Pre-v6, 'mov r0, r0' was used as a NOP encoding.
5256+
def : InstAlias<"nop${p}", (MOVr R0, R0, pred:$p, zero_reg)>,
5257+
Requires<[IsARM, NoV6]>;
5258+
52555259
// 'it' blocks in ARM mode just validate the predicates. The IT itself
52565260
// is discarded.
52575261
def ITasm : ARMAsmPseudo<"it$mask $cc", (ins it_pred:$cc, it_mask:$mask)>;

0 commit comments

Comments
 (0)