Fix Thumb2 function call isel. Thumb1 and Thumb2 should share the same
authorEvan Cheng <evan.cheng@apple.com>
Sat, 1 Aug 2009 00:16:10 +0000 (00:16 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 1 Aug 2009 00:16:10 +0000 (00:16 +0000)
commit6ab54fdb0a84d6b1e42bb6b3635623d65191dc35
treef29bc20750e0732a1d8d26a81b9ce9c37cda36b8
parent82e72324dd95480adc22a6862ec18fdeaab0fbf2
Fix Thumb2 function call isel. Thumb1 and Thumb2 should share the same
instructions for calls since BL and BLX are always 32-bit long and BX is always
16-bit long.

Also, we should be using BLX to call external function stubs.

llvm-svn: 77756
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/lib/Target/ARM/ARMInstrFormats.td
llvm/lib/Target/ARM/ARMInstrThumb.td
llvm/lib/Target/ARM/ARMInstrThumb2.td
llvm/lib/Target/ARM/ARMSubtarget.cpp
llvm/test/CodeGen/Thumb2/thumb2-call.ll [new file with mode: 0644]
llvm/test/CodeGen/Thumb2/thumb2-mulhi.ll