Open Quuxplusone opened 3 years ago
test_sse.cpp
test_avx.cpp
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
Attached test_sse.cpp (314 bytes, text/x-c++src): test_sse.cpp
Attached test_avx.cpp (341 bytes, text/x-c++src): test_avx.cpp
test_sse.cpp
(314 bytes, text/x-c++src)test_avx.cpp
(341 bytes, text/x-c++src)