[LLVMbugs] [Bug 6665] New: asm variables

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Mar 20 23:56:53 PDT 2010


           Summary: asm variables
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nicholas at mxc.ca
                CC: llvmbugs at cs.uiuc.edu

Some simple register variables should lower from:

  void foo1(void *newfoo) {
    register void *foo __asm__("r8")  = newfoo;
    foo = 5;


  define void @foo1(i8* %newtls) nounwind {
    tail call void asm sideeffect "", "{r8}"(i8* %newtls) nounwind
    tail call void asm sideeffect "", "{r8}"(i8* inttoptr (i64 5 to i8*))
    ret void

llvm-gcc supports this so it can serve as a reference.

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