This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] XFAIL midpoint.float.pass on AArch64 with compiler-rt
AbandonedPublic

Authored by broadwaylamb on Jul 28 2020, 2:30 PM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Summary

This test makes use of subnormal long doubles, which are not implemented in compiler-rt, at least for the aarch64-linux-gnu triple.

Diff Detail

Event Timeline

broadwaylamb created this revision.Jul 28 2020, 2:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2020, 2:30 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
broadwaylamb requested review of this revision.Jul 28 2020, 2:30 PM
ldionne requested changes to this revision.Jul 29 2020, 9:54 AM
ldionne added inline comments.
libcxx/utils/libcxx/test/config.py
280

This is already added by Lit IIUC.

283

Not super happy about this for a couple of reasons:

  1. It adds more to config.py, which I'm trying to get rid of.
  2. There's nothing associated to the use_compiler_rt feature except the Lit feature itself. It's kind of like adding a new feature whose sole purpose is to XFAIL this specific test. Instead, it might make more sense to detect whether subnormal floats are supported?
This revision now requires changes to proceed.Jul 29 2020, 9:54 AM
broadwaylamb added inline comments.Jul 29 2020, 10:08 AM
libcxx/utils/libcxx/test/config.py
283
  1. There's nothing associated to the use_compiler_rt feature except the Lit feature itself. It's kind of like adding a new feature whose sole purpose is to XFAIL this specific test. Instead, it might make more sense to detect whether subnormal floats are supported?

Do you mean like compile and run a test program that makes use of subnormal floats and generate a Lit feature based on whether it succeeds?

broadwaylamb added inline comments.Aug 3 2020, 11:02 AM
libcxx/utils/libcxx/test/config.py
283

@ldionne could you please explain what you've meant?

ldionne added inline comments.Aug 3 2020, 2:06 PM
libcxx/utils/libcxx/test/config.py
283

Yes, this is what I meant. I think it would provide more value because it would be detected automatically instead of being set explicitly by users. The test suite is quite complicated to configure today and I'd like to make it simpler. Detecting this automatically would, I think, help us go towards that. WDYT?

broadwaylamb added inline comments.Aug 12 2020, 4:28 PM
libcxx/utils/libcxx/test/config.py
283

The idea was that when D85032 lands, the XFAILed test will unexpectedly pass, so we don't forget to update that test.

broadwaylamb abandoned this revision.Sep 2 2020, 3:20 PM

D85032 has landed, this patch is not needed anymore.