[LLVMbugs] [Bug 3428] New: inline asm crash

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jan 27 16:43:35 PST 2009


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

           Summary: inline asm crash
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu


llvm-gcc crashes on this asm in selectiondagbuild:

        #include <stdint.h>

        typedef struct { uint64_t a0, a1; } u128;

        u128 mul(uint64_t a, uint64_t b)
        {
                u128 result;
                __asm__("mulq %[b]"
                        : "=a" (result.a0), "=d" (result.a1)
                        : "a" (a), [b] "rm" (b));
                return result;
        }

SelectionDAGBuild.cpp:532: failed assertion `TLI.isTypeLegal(PartVT) &&
"Copying to an illegal type!"'


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