[llvm-bugs] [Bug 30389] New: Windows style inline assembly. Problem with not restored registers
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Sep 14 13:46:11 PDT 2016
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: unassignedbugs at nondot.org
Reporter: adamf88 at gmail.com
CC: llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160914/09f5a8e9/attachment.html>
More information about the llvm-bugs
mailing list