This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][SVE] clang: Add missing svbfloat16_t tests
ClosedPublic

Authored by c-rhodes on Jun 26 2020, 10:31 AM.

Details

Summary

Patch adds tests for mangling of svbfloat16_t and several other type
related tests.

Diff Detail

Event Timeline

c-rhodes created this revision.Jun 26 2020, 10:31 AM
Herald added a project: Restricted Project. · View Herald Transcript
fpetrogalli added inline comments.Jun 26 2020, 1:56 PM
clang/test/CodeGenCXX/aarch64-sve-typeinfo.cpp
4

I wonder if we should keep the bf16 tests separate, as +bf16 is not needed to generate any of the other SVE types. I don't have strong opinions here, but it seems a better thing to do to isolate the bfloat tests in SVE in a separate file. What do you think, @c-rhodes?

c-rhodes added inline comments.Jun 29 2020, 4:22 AM
clang/test/CodeGenCXX/aarch64-sve-typeinfo.cpp
4

I wonder if we should keep the bf16 tests separate, as +bf16 is not needed to generate any of the other SVE types. I don't have strong opinions here, but it seems a better thing to do to isolate the bfloat tests in SVE in a separate file. What do you think, @c-rhodes?

I don't think either +sve or +bf16 are actually required in any of these tests since they're directly using the ACLE types and not including arm_sve.h. Where I've added +bf16 I've done so to be consistent, but notice there's some tests with no target feature and some that have run lines covering both. I'd prefer to keep to tests together.

This revision is now accepted and ready to land.Jun 29 2020, 5:20 AM
fpetrogalli accepted this revision.Jun 29 2020, 9:26 AM

Ship it! :)

This revision was automatically updated to reflect the committed changes.