[PATCH] ARM: Tighten up disassembling of MSR mask for M-class

Petr Pavlu petr.pavlu at arm.com
Mon Jul 28 02:33:54 PDT 2014


Allow only disassembling of M-class MSR masks that the assembler knows how to assemble back.

Note: The current code in DecodeMSRMask() rejects the unpredictable A/R MSR mask '0000' with Fail. The code in the patch follows this style and rejects unpredictable M-class MSR masks also with Fail (instead of SoftFail). If SoftFail is preferred in this case then additional changes to ARMInstPrinter (to print non-symbolic masks) and ARMAsmParser (to parse non-symbolic masks) will be needed.

http://reviews.llvm.org/D4694

Files:
  lib/Target/ARM/Disassembler/ARMDisassembler.cpp
  test/MC/Disassembler/ARM/invalid-thumb-MSR-MClass.txt
  test/MC/Disassembler/ARM/thumb-MSR-MClass.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4694.11940.patch
Type: text/x-patch
Size: 5447 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140728/fe5dc1f9/attachment.bin>


More information about the llvm-commits mailing list