[llvm-bugs] [Bug 42839] New: Compile error when input operator constraint of inline asm has "o"
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jul 31 01:18:26 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42839
Bug ID: 42839
Summary: Compile error when input operator constraint of inline
asm has "o"
Product: new-bugs
Version: unspecified
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: ueno.masakazu at jp.fujitsu.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
Created attachment 22321
--> https://bugs.llvm.org/attachment.cgi?id=22321&action=edit
Error log when compiling ruby
When compiling ruby-2.5.5 on aarch64/thunderX2t99, the compilation process is
aborted.
The problem seems to be due to the input operator constraint of inline asm
having "o".
Here's a short example.
-------------------
//This program aborts because "o" is included in "nor".
void hoge(void)
{
static const char *str = "HOGE";
__asm__ __volatile__(".asciz \"%[_SDT_A2]\"" : : [_SDT_A2] "nor" ((str)));
}
-------------------
There is no description of the "o" in the AArch64 section of the following URL,
but how should it be done?
> https://llvm.org/docs/LangRef.html#supported-constraint-code-list
If "o" is included, is it correct to ignore it?
The environment used for confirmation is as follows.
$ clang --version
clang version 7.0.1 (tags/RELEASE_701/final)
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /oss/LLVM/llvm-7.0.1/install/bin
--
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/20190731/97a325fc/attachment.html>
More information about the llvm-bugs
mailing list