Fix unsupported addressing mode assertion for pld
authorDavid Peixotto <dpeixott@codeaurora.org>
Mon, 27 Jan 2014 21:39:04 +0000 (21:39 +0000)
committerDavid Peixotto <dpeixott@codeaurora.org>
Mon, 27 Jan 2014 21:39:04 +0000 (21:39 +0000)
commit66742f023c75e43e507763c72907f6836970e42c
treeaa444018bc473238549829487bfca4cb6764e945
parenteea2f89d5d5e00e4602b3bef7dbd3f951c0bcaaf
Fix unsupported addressing mode assertion for pld

Summary:
This commit gives an address mode to the PLD instruction. We
were getting an assertion failure in the frame lowering code
because we had code that was doing a pld of a stack allocated
address. The frame lowering was checking the address mode and
then asserting because pld had none defined.

This commit fixes pld for arm mode. There was a previous fix for
thumb mode in a separate commit. The commit for thumb mode
added a test in a separate file because it would otherwise fail
for arm. This commit moves the thumb test back into the prefetch.ll
file and adds the corresponding arm test.

Differential Revision: http://llvm-reviews.chandlerc.com/D2622

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200248 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrFormats.td
lib/Target/ARM/ARMInstrInfo.td
test/CodeGen/ARM/prefetch-thumb.ll [deleted file]
test/CodeGen/ARM/prefetch.ll