[LLVMbugs] [Bug 871] NEW: assertion: Couldn't allocate output reg!

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Aug 7 12:56:41 PDT 2006


           Summary: assertion: Couldn't allocate output reg!
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca

This code snippet causes an assertion to trigger in llc. I'm not sure whether
it's valid or not, but then the module verifier should be updated to catch it first.

  void %floor0_inverse2() {
          br bool false, label %cond_true138.preheader, label %cond_next156
  cond_true138.preheader:         ; preds = %entry
          %tmp108 = call double asm sideeffect "frndint", "={st},0,~{dirflag},~{fp
sr},~{flags}"( double 0.000000e+00 )            ; <double> [#uses=0]
  cond_next156:           ; preds = %entry
          ret void

Reproduce with "llc foo.bc" on X86. This is bugpoint-reduced from oggenc in
llvm-test with my propsimplify optimization. It's possible that LLVM variables
got replaced with their equivalent constant in the asm statement.

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list