https://llvm.org/bugs/show_bug.cgi?id=30389
Bug ID: 30389
Summary: Windows style inline assembly. Problem with not
restored registers
Product: new-bugs
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 17263
--> https://llvm.org/bugs/attachment.cgi?id=17263&action=edit
Sample code and generated assembly
Clang has problem with properly handling windows style assembly.
Code in the attachment runs properly if I compile it with Microsoft compiler.
If I compile it with clang then the program crashes.
After some investigations I suppose, clang requires restoring esp registers.
According to this document (
https://msdn.microsoft.com/en-us/library/k1a8ss06.aspx ) it is not required for
EAX, EBX, ECX, EDX, ESI, EDI registers
Code compiled in clang compiler revision: r279979 from: http://llvm.org/builds/
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs