This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][SVE] Add bfloat16 support to svlen intrinsic
ClosedPublic

Authored by c-rhodes on Jun 19 2020, 7:11 AM.

Diff Detail

Event Timeline

c-rhodes created this revision.Jun 19 2020, 7:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 19 2020, 7:11 AM
fpetrogalli added inline comments.Jun 19 2020, 8:11 AM
clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_len.c
2

We said ARM_FEATURE_BF16_SCALAR_ARITHMETIC is implied by __ARM_FEATURE_SVE_BF16, so I think you should remove this macro definition.

c-rhodes added inline comments.Jun 19 2020, 8:48 AM
clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_len.c
2

that's correct but it's not handled yet, __ARM_FEATURE_SVE_BF16 isn't enabled as the implementation is incomplete, it'll eventually be enabled in the driver, but for now we need to explicitly define both macros in all tests.

fpetrogalli accepted this revision.Jun 22 2020, 12:04 PM
This revision is now accepted and ready to land.Jun 22 2020, 12:04 PM
c-rhodes updated this revision to Diff 272753.Jun 23 2020, 9:32 AM

Changes:

  • Rebased.
  • Moved bfloat test to separate file.
  • Added checks to test intrinsics are guarded by feature flag, this is by omitting the feature macro __ARM_FEATURE_SVE_BF16 for now but will eventually be updated to omit +bf16 once the feature flag implies the macro.
fpetrogalli accepted this revision.Jun 23 2020, 11:06 AM
This revision was automatically updated to reflect the committed changes.