[ARM] Correct syntax of the CLRM insn

The predicate should be adjacent to the opcode.

Differential Revision: https://reviews.llvm.org/D74040
This commit is contained in:
Momchil Velikov 2020-02-05 13:54:18 +00:00
parent aaaeac6166
commit a328536c6d
2 changed files with 6 additions and 1 deletions

View File

@ -5207,7 +5207,7 @@ class V8_1MI<dag oops, dag iops, AddrMode am, InstrItinClass itin, string asm,
def t2CLRM : V8_1MI<(outs),
(ins pred:$p, reglist_with_apsr:$regs, variable_ops),
AddrModeNone, NoItinerary, "clrm", "${p}\t$regs", "", []> {
AddrModeNone, NoItinerary, "clrm${p}", "$regs", "", []> {
bits<16> regs;
let Inst{31-16} = 0b1110100010011111;

View File

@ -16,5 +16,10 @@
[0x9f,0xe8,0x00,0x80]
# CHECK: clrm {apsr} @ encoding: [0x9f,0xe8,0x00,0x80]
[0x04,0xbf]
[0x9f,0xe8,0x0f,0x00]
# CHECK: itt eq
# CHECK: clrmeq {r0, r1, r2, r3}
[0x9f,0xe8,0x00,0x00]
# ERROR: [[@LINE-1]]:2: warning: invalid instruction encoding