This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Skip tests using int128 on ARM
AbandonedPublic

Authored by werat on Jul 14 2022, 8:39 AM.

Details

Reviewers
Michael137
Summary

Diff Detail

Event Timeline

werat created this revision.Jul 14 2022, 8:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 14 2022, 8:39 AM
werat requested review of this revision.Jul 14 2022, 8:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 14 2022, 8:39 AM

A very minor point but API tests don't need mydir = TestBase.compute_mydir(__file__) any more thanks to https://reviews.llvm.org/D128077 .

labath added a subscriber: labath.Jul 15 2022, 1:23 AM

I find the aarch64 part surprising, and it seems that the aarch64 bot did not have a problem with this patch (https://lab.llvm.org/buildbot/#/builders/96/builds/26089). The arm part is expected, and most likely applies to all 32 bit architectures (but I think we only have an arm bot at present).

(in case you aren't familiar when we say "Arm" we mean 32 bit Arm and AArch64 refers to 64 bit, it's not always that way but for this purpose it is)

I couldn't find a statement that AArch64 supports int128 but it will compile (https://godbolt.org/z/j5dqz4os4) and I ran the test locally without issue. Arm for sure doesn't support it.

Unless you saw a test failure on AArch64 as well I'd just disable for Arm. If you did please give me the link I'll see if there's some other aspect to this.

werat added a comment.Jul 15 2022, 3:01 AM

I didn't see the test failure on AArch64, so you're both probably right. I've searched the code for other uses of int128 and found a similar place, which disabled the test for both 32-bit and 64-bit --
https://github.com/llvm/llvm-project/blob/30c2406e270cc5dab8da813ce5c54e4bb8c40e49/lldb/test/API/functionalities/data-formatter/builtin-formats/TestBuiltinFormats.py#L25

I'll fix the patch and skip the test only for 32-bit ARM. Thank you the explanation!

which disabled the test for both 32-bit and 64-bit

That one also runs fine on Linux so probably just overly cautious. I see lldb/test/API/commands/expression/rdar44436068/Test128BitsInteger.py as well, that only disables Arm.

Once your changes have passed the bots I'll enable the test in TestBuiltinFormats.py for AArch64 and see what happens.

werat abandoned this revision.EditedJul 15 2022, 4:21 AM

I have relanded the patch with the fixed tests here -- https://github.com/llvm/llvm-project/commit/7d297de95117e783bbfaecbba1f72fc55de05a30

All the tests are passing now.

Thanks! The Arm/AArch64 Linux bots were green.