[LLVMbugs] [Bug 9201] New: llc behaves in a confusing way when there is no data layout string

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 11 07:17:34 PST 2011


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

           Summary: llc behaves in a confusing way when there is no data
                    layout string
           Product: tools
           Version: 2.8
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: llc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: blood.of.life at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=6151)
 --> (http://llvm.org/bugs/attachment.cgi?id=6151)
IR file that when assembled and passed to llc, triggers behaviour.

Running the following on my machine results in this:

$ llvm-as test6.ll; llc test6.bc
llvm-as: test6.ll:8:28: error: use of undefined value '%int'
  store i1 %primitive, i1* %int
                           ^
llc: /home/bernard/src/llvm-2.8/lib/Target/TargetData.cpp:293: unsigned int
llvm::TargetData::getAlignmentInfo(llvm::AlignTypeEnum, uint32_t, bool, const
llvm::Type*) const: Assertion `AlignType == VECTOR_ALIGN && "Unknown alignment
type!"' failed.
0  libLLVM-2.8.so 0xf6f2e4eb
1  libLLVM-2.8.so 0xf6f2e278
2                 0xf771f400 __kernel_sigreturn + 0
Stack dump:
0.    Program arguments: llc test6.bc 
1.    Running pass 'Function Pass Manager' on module 'test6.bc'.
2.    Running pass 'X86 DAG->DAG Instruction Selection' on function '@main'
Aborted

-- 
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