[all-commits] [llvm/llvm-project] c8fae2: [AArch64][SVE] Guard svbfloat16_t with feature mac...

Cullen Rhodes via All-commits all-commits at lists.llvm.org
Tue Jun 23 03:24:41 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c8fae2bb4afed8073096860d23e5759055c9bf88
      https://github.com/llvm/llvm-project/commit/c8fae2bb4afed8073096860d23e5759055c9bf88
  Author: Cullen Rhodes <cullen.rhodes at arm.com>
  Date:   2020-06-23 (Tue, 23 Jun 2020)

  Changed paths:
    M clang/include/clang/Basic/arm_sve.td
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_bfmmla.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_ld1ro-bfloat.c
    M clang/utils/TableGen/SveEmitter.cpp

  Log Message:
  -----------
  [AArch64][SVE] Guard svbfloat16_t with feature macro in ACLE

Summary:
svbfloat16_t should only be defined if the __ARM_FEATURE_SVE_BF16
feature macro is enabled, similar to the scalar bfloat16_t type. Also,
arm_bf16.h should be included in arm_sve.h when
__ARM_FEATURE_BF16_SCALAR_ARITHMETIC is defined.

Patch also contains a fix for ld1ro intrinsic which should be guarded on
__ARM_FEATURE_SVE_BF16 rather than __ARM_FEATURE_BF16_SCALAR_ARITHMETIC,
and a fix for bfmmla test which was missing
__ARM_FEATURE_BF16_SCALAR_ARITHMETIC and -target-feature +bf16 in the
RUN line.

Reviewed By: fpetrogalli

Differential Revision: https://reviews.llvm.org/D82178




More information about the All-commits mailing list