summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorLauro Ramos Venancio <lauro.venancio@gmail.com>2007-03-16 22:54:16 +0000
committerLauro Ramos Venancio <lauro.venancio@gmail.com>2007-03-16 22:54:16 +0000
commit25d4052af6730548088280d1b320b6c4113fc851 (patch)
tree7df3fb32aa4e6f637a46f9ef1ce4b0e1b3d334d1 /llvm/lib/Target/ARM/ARMISelLowering.cpp
parentc5bc763f50cf2f02d4c6ec462e65224dada11c13 (diff)
downloadbcm5719-llvm-25d4052af6730548088280d1b320b6c4113fc851.tar.gz
bcm5719-llvm-25d4052af6730548088280d1b320b6c4113fc851.zip
Only ARMv6 has BSWAP.
Fix MultiSource/Applications/aha test. llvm-svn: 35128
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 40ede7409ac..1f4fb0f2b5c 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -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);
OpenPOWER on IntegriCloud