[PATCH] D30398: [ARM] Diagnose PC-writing instructions in IT blocks

Oliver Stannard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 27 02:22:11 PST 2017


olista01 created this revision.
Herald added a subscriber: aemerson.

In Thumb2, instructions which write to the PC are UNPREDICTABLE if they are in an IT block but not the last instruction in the block.

      

Previously, we only diagnosed this for LDM instructions, this patch extends the diagnostic to cover all of the relevant instructions.


Repository:
  rL LLVM

https://reviews.llvm.org/D30398

Files:
  lib/Target/ARM/AsmParser/ARMAsmParser.cpp
  test/MC/ARM/arm-thumb-trustzone.s
  test/MC/ARM/basic-thumb2-instructions.s
  test/MC/ARM/unpred-control-flow-in-it-block.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30398.89850.patch
Type: text/x-patch
Size: 6145 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170227/bb486edc/attachment.bin>


More information about the llvm-commits mailing list