[llvm-bugs] [Bug 45558] New: error in backend: Invalid register name global variable

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 15 11:35:34 PDT 2020


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

            Bug ID: 45558
           Summary: error in backend: Invalid register name global
                    variable
           Product: libraries
           Version: 10.0
          Hardware: Other
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: pkubaj at anongoth.pl
                CC: llvm-bugs at lists.llvm.org, nemanja.i.ibm at gmail.com

FreeBSD head, LLVM 10.0.0, powerpc, powerpcspe and powerpc64 architectures

Reduced test:
register a asm("r15");
b() {
  while (a)
    ;
}

Compile with:
/usr/bin/cc -cc1 -triple powerpc64-unknown-freebsd13.0 -emit-obj -x c
main-7a3d93.c

Result:
fatal error: error in backend: Invalid register name global variable

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200415/d4e06284/attachment.html>


More information about the llvm-bugs mailing list