https://bugs.llvm.org/show_bug.cgi?id=40956

            Bug ID: 40956
           Summary: Inline Assembly requires more registers (x86)
           Product: libraries
           Version: 8.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedb...@nondot.org
          Reporter: cmucchie...@wallix.com
                CC: craig.top...@gmail.com, llvm-bugs@lists.llvm.org,
                    llvm-...@redking.me.uk, spatel+l...@rotateright.com

Created attachment 21561
  --> https://bugs.llvm.org/attachment.cgi?id=21561&action=edit
Failure in inline compilation

I have an error while compilingC with inline assembly on x86 32bits with a code
that use 5 registers, I have the following error:

error: inline assembly requires more registers than available at line XXXXX

I have reduced the problem to this specific code (see attached IR file). With
this code, the error is always triggered. By moving the line 
   %9 = alloca i32, align 4   
before the branch instruction, the code compile without errors. By moving the
line
   %8 = alloca i32, align 4
the error is displayed 2 times.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to