diff options
author | Eric Christopher <echristo@apple.com> | 2010-11-06 07:53:11 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-11-06 07:53:11 +0000 |
commit | 5e262bc94342b4ce277206cb739b98b80b8b0d2b (patch) | |
tree | cb01122a65bb0f1fd1156aca95a75734c129dc38 | |
parent | 8caa290a77cc6e71457fcc6b6bfac907510dc0f4 (diff) | |
download | external_llvm-5e262bc94342b4ce277206cb739b98b80b8b0d2b.zip external_llvm-5e262bc94342b4ce277206cb739b98b80b8b0d2b.tar.gz external_llvm-5e262bc94342b4ce277206cb739b98b80b8b0d2b.tar.bz2 |
Make sure we have movw on the target before using it.
Fixes 8559.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118333 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/ARMFastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index 5f7ad8c..a2cce9d 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/lib/Target/ARM/ARMFastISel.cpp @@ -439,7 +439,7 @@ unsigned ARMFastISel::ARMMaterializeInt(const Constant *C, EVT VT) { // 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) |