[llvm-bugs] [Bug 48197] New: clang-10 fails to compile C-embedded assembly with SSE and AVX instructions
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Nov 16 15:58:23 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48197
Bug ID: 48197
Summary: clang-10 fails to compile C-embedded assembly with SSE
and AVX instructions
Product: clang
Version: 10.0
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: enhancement
Priority: P
Component: C
Assignee: unassignedclangbugs at nondot.org
Reporter: yuri at tsoft.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
The attached testcases test_sse.cpp and test_avx.cpp fail on FreeBSD 12.2 with
clang-10:
> [yuri at yv /tmp/llvm-asm-failure]$ c++ -O2 -fPIC -o test_sse.gcc.o -msse -c test_sse.cpp
> test_sse.cpp:9:39: error: expected relocatable expression
> "movups 0x00 + %[xs], %%xmm0\n\t"
> ^
> <inline asm>:2:2: note: instantiated into assembly here
> movups %xmm0, 0x00 + (%rax)
> ^
> 1 error generated.
> [yuri at yv /tmp/llvm-asm-failure]$ c++ -O2 -fPIC -o test_sse.gcc.o -msse -c test_avx.cpp
> test_avx.cpp:9:40: error: expected relocatable expression
> "vmovups 0x00 + %[xs], %%ymm0\n\t"
> ^
> <inline asm>:2:2: note: instantiated into assembly here
> vmovups %ymm0, 0x00 + (%rax)
> ^
> 1 error generated.
Originally spotted by the author of LSP-plugins Vladimir Sadovnikov:
https://github.com/sadko4u/lsp-plugins/issues/154#issuecomment-728394467
--
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/20201116/5f150c89/attachment.html>
More information about the llvm-bugs
mailing list