http://llvm.org/bugs/show_bug.cgi?id=2839
Summary: C Backend does not handle inline assembly correctly.
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Backend: C
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected]
The LLVM IR is the following:
define void @test() nounwind {
tail call void asm sideeffect "", "~{dirflag},~{fpsr},~{flags},~{memory}"()
nounwind
ret void
}
Here is the generated C code:
void test() {
__asm__ volatile (""
:
:"memory");
return;
}
It should be __asm__ volative("":::"memory").
The generated code lacks a colon that make the C code failed to compile.
--
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