[PATCH] D74040: [ARM] Correct syntax of the CLRM insn

Momchil Velikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 5 05:59:58 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGa328536c6d7a: [ARM] Correct syntax of the CLRM insn (authored by chill).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74040/new/

https://reviews.llvm.org/D74040

Files:
  llvm/lib/Target/ARM/ARMInstrThumb2.td
  llvm/test/MC/Disassembler/ARM/clrm.txt


Index: llvm/test/MC/Disassembler/ARM/clrm.txt
===================================================================
--- llvm/test/MC/Disassembler/ARM/clrm.txt
+++ llvm/test/MC/Disassembler/ARM/clrm.txt
@@ -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
Index: llvm/lib/Target/ARM/ARMInstrThumb2.td
===================================================================
--- llvm/lib/Target/ARM/ARMInstrThumb2.td
+++ llvm/lib/Target/ARM/ARMInstrThumb2.td
@@ -5207,7 +5207,7 @@
 
 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;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74040.242580.patch
Type: text/x-patch
Size: 1024 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200205/bfd7227b/attachment-0001.bin>


More information about the llvm-commits mailing list