[llvm-commits] CVS: llvm/lib/Target/ARM/ARMISelLowering.cpp

Lauro Ramos Venancio lauro.venancio at gmail.com
Fri Mar 16 15:54:38 PDT 2007



Changes in directory llvm/lib/Target/ARM:

ARMISelLowering.cpp updated: 1.23 -> 1.24
---
Log message:

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


---
Diffs of the changes:  (+4 -0)

 ARMISelLowering.cpp |    4 ++++
 1 files changed, 4 insertions(+)


Index: llvm/lib/Target/ARM/ARMISelLowering.cpp
diff -u llvm/lib/Target/ARM/ARMISelLowering.cpp:1.23 llvm/lib/Target/ARM/ARMISelLowering.cpp:1.24
--- llvm/lib/Target/ARM/ARMISelLowering.cpp:1.23	Fri Mar 16 03:43:56 2007
+++ llvm/lib/Target/ARM/ARMISelLowering.cpp	Fri Mar 16 17:54:16 2007
@@ -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);






More information about the llvm-commits mailing list