forked from OSchip/llvm-project
Only ARMv6 has BSWAP.
Fix MultiSource/Applications/aha test. llvm-svn: 35128
This commit is contained in:
parent
c5bc763f50
commit
25d4052af6
|
@ -159,6 +159,10 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
|
|||
if (!Subtarget->hasV5TOps() || Subtarget->isThumb())
|
||||
setOperationAction(ISD::CTLZ, MVT::i32, Expand);
|
||||
|
||||
// Only ARMv6 has BSWAP.
|
||||
if (!Subtarget->hasV6Ops())
|
||||
setOperationAction(ISD::BSWAP, MVT::i32, Expand);
|
||||
|
||||
// These are expanded into libcalls.
|
||||
setOperationAction(ISD::SDIV, MVT::i32, Expand);
|
||||
setOperationAction(ISD::UDIV, MVT::i32, Expand);
|
||||
|
|
Loading…
Reference in New Issue