[llvm-branch-commits] [llvm-branch] r118531 - /llvm/branches/Apple/whitney/lib/Target/ARM/ARMFastISel.cpp
Daniel Dunbar
daniel at zuster.org
Tue Nov 9 09:28:26 PST 2010
Author: ddunbar
Date: Tue Nov 9 11:28:26 2010
New Revision: 118531
URL: http://llvm.org/viewvc/llvm-project?rev=118531&view=rev
Log:
Merge r118333:
--
Author: Eric Christopher <echristo at apple.com>
Date: Sat Nov 6 07:53:11 2010 +0000
Make sure we have movw on the target before using it.
Fixes 8559.
Modified:
llvm/branches/Apple/whitney/lib/Target/ARM/ARMFastISel.cpp
Modified: llvm/branches/Apple/whitney/lib/Target/ARM/ARMFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/whitney/lib/Target/ARM/ARMFastISel.cpp?rev=118531&r1=118530&r2=118531&view=diff
==============================================================================
--- llvm/branches/Apple/whitney/lib/Target/ARM/ARMFastISel.cpp (original)
+++ llvm/branches/Apple/whitney/lib/Target/ARM/ARMFastISel.cpp Tue Nov 9 11:28:26 2010
@@ -439,7 +439,7 @@
// If we can do this in a single instruction without a constant pool entry
// do so now.
const ConstantInt *CI = cast<ConstantInt>(C);
- if (isUInt<16>(CI->getSExtValue())) {
+ if (Subtarget->hasV6T2Ops() && isUInt<16>(CI->getSExtValue())) {
unsigned Opc = isThumb ? ARM::t2MOVi16 : ARM::MOVi16;
AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
TII.get(Opc), DestReg)
More information about the llvm-branch-commits
mailing list