From: Evan Cheng Date: Fri, 19 Nov 2010 06:28:11 +0000 (+0000) Subject: These instructions are thumb2 only. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1f190c8bdf1d74c029c85b0865c983f3f9cafb31;p=oota-llvm.git These instructions are thumb2 only. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119793 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 7e3f98acd9b..1c7a1935af9 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -520,7 +520,7 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM) setOperationAction(ISD::BSWAP, MVT::i32, Expand); // These are expanded into libcalls. - if (!Subtarget->hasDivide()) { + if (!Subtarget->hasDivide() || !Subtarget->isThumb2()) { // v7M has a hardware divider setOperationAction(ISD::SDIV, MVT::i32, Expand); setOperationAction(ISD::UDIV, MVT::i32, Expand);