[LLVMbugs] [Bug 5570] New: Bad Type used for InlineAsm Use/Def flags in selection DAG

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Nov 20 09:23:25 PST 2009


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

           Summary: Bad Type used for InlineAsm Use/Def flags in selection
                    DAG
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: compile-fail
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: quickslyver at free.fr
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=3843)
 --> (http://llvm.org/bugs/attachment.cgi?id=3843)
testcase

InlineAsm Use/Def flags is a 32 bit constant packed into a target machine
Pointer Type that can be smaller than 32bits: it crashes with 16 bit machines.

command used:
clang-cc -S -triple=msp430-unknown-unknown -O3 test.c -o -

Wrong code is in RegsForValue::AddInlineAsmOperands and
SelectionDAGLowering::visitInlineAsm

The testcase is from gcc torture suite


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