[LLVMbugs] [Bug 3327] New: ia64 target problems with ELF sections

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jan 15 01:50:01 PST 2009


http://llvm.org/bugs/show_bug.cgi?id=3327

           Summary: ia64 target problems with ELF sections
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: IA64
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: romixlev at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Hi,

Compilation of the the following very simple file crashes with
--march=ia64 on my x86 machine.

; ModuleID = 'bugpoint-reduced-simplified.bc'
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
target triple = "i386-pc-linux-gnu"
@x = weak global [8 x i32] zeroinitializer, align 32            ; <[8
x i32]*> [#uses=0]
@.str = internal constant [4 x i8] c"%c \00"            ; <[4 x i8]*> [#uses=0]
@rows = weak global [8 x i32] zeroinitializer, align 32         ; <[8
x i32]*> [#uses=0]
@up = weak global [15 x i32] zeroinitializer, align 32          ; <[15
x i32]*> [#uses=0]
@down = weak global [15 x i32] zeroinitializer, align 32
 ; <[15 x i32]*> [#uses=0]

declare i32 @print() nounwind

declare i32 @printf(i8*, ...) nounwind

declare i32 @putchar(i32)

declare i32 @queens(i32) nounwind

define i32 @main() nounwind {
entry:
       unreachable
}

I use this command to compile:
llc -f bugpoint-reduced-simplified.bc  --regalloc=linearscan --march=ia64

The assertion is:

llc: /opt/llvm/lib/Target/ELFTargetAsmInfo.cpp:133: const
llvm::Section* llvm::ELFTargetAsmInfo::MergeableStringSection(const
llvm::GlobalVariable*) const: Assertion `getCStringSection() &&
"Should have string section prefix"' failed.

Please see more details and test BC file at:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-January/019382.html

-Roman


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list