This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] <experimental/simd> excluded long double for 32-bits x86 temporarily
ClosedPublic

Authored by Joy12138 on Sep 14 2023, 4:21 AM.

Diff Detail

Event Timeline

Joy12138 created this revision.Sep 14 2023, 4:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 14 2023, 4:21 AM
Joy12138 requested review of this revision.Sep 14 2023, 4:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 14 2023, 4:21 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
mstorsjo added inline comments.Sep 14 2023, 4:25 AM
libcxx/test/std/experimental/simd/test_utils.h
44

It should be quite enough to just check for __i386__ here - I don't know of any case where __i686__ is defined but __i386__ isn't.

FWIW, the previous condition of checking for #ifdef __MINGW32__ did cover 64 bit mingw too which I presume wasn't intended; the __MINGW32__ define is set for all mingw targets, even on 64 bit (just like _WIN32 is defined for all win32 api targets, regardless of whether they're 32 or 64 bit).

mgorny added a subscriber: mgorny.Sep 14 2023, 5:46 AM

Thanks. I've tested with just __i386__, and I can confirm I no longer get test failures in 32-bit build with this change. The 64-bit test run is still ongoing but I think it's unlikely for this to break it.

Joy12138 updated this revision to Diff 556823.Sep 14 2023, 8:19 PM

check for i386 only

@philnik Hi! This is ready to be accepted. Thanks!

philnik accepted this revision.Sep 20 2023, 11:59 PM
This revision is now accepted and ready to land.Sep 20 2023, 11:59 PM

@Joy12138, could you merge it now? This is blocking us from testing new snapshots of LLVM.

@mgorny Would it be possible to add the configuration you use to the precommit CI?

@mgorny Would it be possible to add the configuration you use to the precommit CI?

I don't know anything about precommit CI. We're basically building it using C++ compiler set to i686-pc-linux-gnu-clang++ that's symlink to the amd64 build of clang (and via the filename magic forces -m32).