[PATCH] D43374: [ARM]Decoding MSR with unpredictable destination register causes an assert

Simi Pallipurath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 16 01:57:50 PST 2018


simpal01 created this revision.
simpal01 added reviewers: resistor, olista01.
Herald added subscribers: llvm-commits, kristof.beyls, javed.absar.

This patch handling:

1. Enable parsing of raw encodings of system registers .
2. Allows UNPREDICTABLE sysregs to be decoded to a raw number in the same way that disasslib does, rather than llvm crashing.
3. Disassemble msr/mrs with unpredictable sysregs as SoftFail.
  1. Fix regression due to SoftFailing some encodings.

Patch by Chris Ryder

      
  
     


Repository:
  rL LLVM

https://reviews.llvm.org/D43374

Files:
  lib/Target/ARM/AsmParser/ARMAsmParser.cpp
  lib/Target/ARM/Disassembler/ARMDisassembler.cpp
  lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
  test/MC/ARM/thumbv8m.s
  test/MC/Disassembler/ARM/invalid-thumb-MSR-MClass.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43374.134569.patch
Type: text/x-patch
Size: 3746 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180216/fac4d9d2/attachment.bin>


More information about the llvm-commits mailing list