[LLVMbugs] [Bug 6665] New: asm variables

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


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

           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;
  }

to:

  define void @foo1(i8* %newtls) nounwind {
  entry:
    tail call void asm sideeffect "", "{r8}"(i8* %newtls) nounwind
    tail call void asm sideeffect "", "{r8}"(i8* inttoptr (i64 5 to i8*))
nounwind
    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