Only ARMv6 has BSWAP.

Fix MultiSource/Applications/aha test.

llvm-svn: 35128
This commit is contained in:
Lauro Ramos Venancio 2007-03-16 22:54:16 +00:00
parent c5bc763f50
commit 25d4052af6
1 changed files with 4 additions and 0 deletions

View File

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