Only ARMv6 has BSWAP.
Fix MultiSource/Applications/aha test.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35128 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp
index 40ede74..1f4fb0f 100644
--- a/lib/Target/ARM/ARMISelLowering.cpp
+++ b/lib/Target/ARM/ARMISelLowering.cpp
@@ -159,6 +159,10 @@
   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);