diff options
author | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2007-03-16 22:54:16 +0000 |
---|---|---|
committer | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2007-03-16 22:54:16 +0000 |
commit | 368f20fda4a1cb9afdc2788a754b9ffe59afd391 (patch) | |
tree | e3ddad22440eded385edad4f991af63033b7184d /lib/Target/ARM | |
parent | 9e2d86add8ae62026d2f07ea1b33d6e1ae418449 (diff) | |
download | external_llvm-368f20fda4a1cb9afdc2788a754b9ffe59afd391.zip external_llvm-368f20fda4a1cb9afdc2788a754b9ffe59afd391.tar.gz external_llvm-368f20fda4a1cb9afdc2788a754b9ffe59afd391.tar.bz2 |
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
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r-- | lib/Target/ARM/ARMISelLowering.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ 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); |