[LLVMbugs] [Bug 16877] New: Global register variable support

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 13 16:01:28 PDT 2013


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

            Bug ID: 16877
           Summary: Global register variable support
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: owen.yamauchi+llvm at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

register int num asm("ebx");

void f() {
  num = 12345;
}

void g() {
  int x;
  f();
  asm("mov %%ebx, %0" : "=r"(x));
  // x is now 12345
}

clang parses this successfully and prints a helpful error message; the bug is
that it doesn't actually support this (GNU extension) functionality.

This feature is useful in low-level software like JIT compilers. I realize this
requires support in LLVM (some way to express this constraint in LLIR for a
start), so I'm not sure exactly where this bug should be filed.

-- 
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/20130813/19b295e3/attachment.html>


More information about the llvm-bugs mailing list