[llvm-bugs] [Bug 31171] New: [inline asm] clang ungracefull exit, asm regex
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Nov 27 04:14:53 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=31171
Bug ID: 31171
Summary: [inline asm] clang ungracefull exit, asm regex
Product: new-bugs
Version: unspecified
Hardware: PC
OS: All
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
the following code crashes instead of gracefully exit:
void add(volatile int* __mem, int __val)
{
__asm__ ("add{l} {%1,%0 {#dst last}|%0,%1}" /* illegal */
: "=m" (*__mem) : "ir" (__val) );
}
output:
fatal error: error in backend: Nested variants found in inline asm string:
'add$(l$) $($1,$0 $(#dst last$)$|$0,$1$)'
clang-3.9: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 3.9.0 (tags/RELEASE_390/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir:
/opt/gcc-explorer/clang+llvm-3.9.0-x86_64-linux-gnu-ubuntu-16.04/bin
clang-3.9: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.9: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.9: note: diagnostic msg: /tmp/example-9ae93d.cpp
clang-3.9: note: diagnostic msg: /tmp/example-9ae93d.sh
clang-3.9: note: diagnostic msg:
********************
Compiler exited with result code 70
--
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/20161127/6889e02c/attachment.html>
More information about the llvm-bugs
mailing list