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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs