https://bugs.llvm.org/show_bug.cgi?id=44503
Bug ID: 44503
Summary: [ms] clang-cl and MSVC differ on some inline assembly
manipulating function pointers
Product: new-bugs
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Created attachment 23006
--> https://bugs.llvm.org/attachment.cgi?id=23006&action=edit
Examples of differing behavior
While investigating http://llvm.org/PR44272, I've found many cases where inline
assembly that manipulates function pointers compiles to different results with
cl.exe and clang.
Specifically, mov and lea behave badly when addressing most function pointer
values. lea is sometimes functionally equivalent on x86, but breaks if used on
x86-64.
Also, branching instructions (call, jmp, jcc, etc.) differ in handling any case
involving arithmetic on a function pointer.
The attachment contains specific examples.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs