[llvm-bugs] [Bug 31005] New: inline asm global registers compatibility to gcc+icc
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Nov 13 04:00:32 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=31005
Bug ID: 31005
Summary: inline asm global registers compatibility to gcc+icc
Product: new-bugs
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: ziv.izhar at intel.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
in clang, the following lines produce an error:
register int foo asm("al");
int main() {
}
error: register 'al' unsuitable for global register variables on this target
while in gcc + icc these lines compile with a new meanning: instead of al (or
ax,eax,rax), it acts like it's all the eax register.
in clang however we get the error specified before.
--
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/20161113/d83f4f7e/attachment.html>
More information about the llvm-bugs
mailing list