[PATCH 07/39] x86-64: Disable libmvec ABI test for Clang

Sam James sam@gentoo.org
Sun Dec 22 05:22:52 GMT 2024


"H.J. Lu" <hjl.tools@gmail.com> writes:

> On Sun, Dec 22, 2024 at 10:45 AM Sam James <sam@gentoo.org> wrote:
>>
>> "H.J. Lu" <hjl.tools@gmail.com> writes:
>>
>> > Unlike GCC, libmvec support in Clang is hard-coded.  Clang doesn't use
>> > macros defined in <bits/libm-simd-decl-stubs.h> to support new libmvec
>> > functions added to glibc.  Also since Clang can't vectorize some test
>> > loops to test libmvec ABI:
>> >
>> > In file included from ../sysdeps/x86_64/fpu/test-double-libmvec-asin.c:3:
>> > ../sysdeps/x86_64/fpu/test-vector-abi-arg1.h:38:1: error: loop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Werror,-Wpass-failed=transform-warning]
>> >    38 | #pragma omp simd
>> >       | ^
>> > 1 error generated.
>> >
>> > disable libmvec ABI test for Clang.
>>
>> OK (as I said before, while we could file a bug for this, I don't
>> consider this the same as the compile-time-hog one).
>>
>> Reviewed-by: Sam James <sam@gentoo.org>
>
> I opened:
>
> https://github.com/llvm/llvm-project/issues/120868
>
> and will commit the enclosed patch.
>
> Thanks.

Thanks.


More information about the Libc-alpha mailing list