These instructions are thumb2 only.

llvm-svn: 119793
This commit is contained in:
Evan Cheng 2010-11-19 06:28:11 +00:00
parent 0eb2994626
commit 2debc86138
1 changed files with 1 additions and 1 deletions

View File

@ -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);