ARM: Use the PICADD opcode calculated.
authorJim Grosbach <grosbach@apple.com>
Tue, 10 Sep 2013 17:21:39 +0000 (17:21 +0000)
committerJim Grosbach <grosbach@apple.com>
Tue, 10 Sep 2013 17:21:39 +0000 (17:21 +0000)
commit1039e106d095979b3707bb27cfa765cd2c0f3b54
tree8d6255f17c8d441dbd6fc4297ddc2fa1a2348d52
parent28823ec4088e216f455278ba42f99f79d0d71969
ARM: Use the PICADD opcode calculated.

We were figuring out whether to use tPICADD or PICADD, then just using
tPICADD unconditionally anyway. Oops.

A testcase from someone familiar enough with ELF to produce one would
be appreciated. The existing PIC testcase correctly verifies the .s
generated, but that doesn't catch this bug, which only showed up in
direct-to-object mode.

http://llvm.org/bugs/show_bug.cgi?id=17180

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190417 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrInfo.cpp