[llvm-commits] [llvm] r97814 - in /llvm/trunk: lib/Target/CellSPU/SPUMCAsmInfo.cpp test/CodeGen/CellSPU/bss.ll

Chris Lattner sabre at nondot.org
Fri Mar 5 10:55:36 PST 2010


Author: lattner
Date: Fri Mar  5 12:55:36 2010
New Revision: 97814

URL: http://llvm.org/viewvc/llvm-project?rev=97814&view=rev
Log:
fix bss section printing for cell, patch by Kalle Raiskila!

Added:
    llvm/trunk/test/CodeGen/CellSPU/bss.ll
Modified:
    llvm/trunk/lib/Target/CellSPU/SPUMCAsmInfo.cpp

Modified: llvm/trunk/lib/Target/CellSPU/SPUMCAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CellSPU/SPUMCAsmInfo.cpp?rev=97814&r1=97813&r2=97814&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CellSPU/SPUMCAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/CellSPU/SPUMCAsmInfo.cpp Fri Mar  5 12:55:36 2010
@@ -34,5 +34,8 @@
   // Exception handling is not supported on CellSPU (think about it: you only
   // have 256K for code+data. Would you support exception handling?)
   ExceptionsType = ExceptionHandling::None;
+
+  // SPU assembly requires ".section" before ".bss" 
+  UsesELFSectionDirectiveForBSS = true;  
 }
 

Added: llvm/trunk/test/CodeGen/CellSPU/bss.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/CellSPU/bss.ll?rev=97814&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/CellSPU/bss.ll (added)
+++ llvm/trunk/test/CodeGen/CellSPU/bss.ll Fri Mar  5 12:55:36 2010
@@ -0,0 +1,5 @@
+; RUN: llc < %s -march=cellspu > %t1.s
+; RUN: grep "\.section" %t1.s | grep "\.bss" | count 1
+
+ at bssVar = global i32 zeroinitializer
+





More information about the llvm-commits mailing list