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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

The attached testcases test_sse.cpp and test_avx.cpp fail on FreeBSD 12.2 with
clang-10:

> [yuri@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@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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to