[PATCH] D83079: [clang][aarch64] Generate preprocessor macros for -march=armv8.6a+sve.
Sander de Smalen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 13 09:12:05 PDT 2020
sdesmalen accepted this revision.
sdesmalen added a comment.
LGTM again!
================
Comment at: clang/test/Preprocessor/aarch64-target-features.c:163
+
+// RUN: %clang -target aarch64-none-linux-gnu -march=armv8.6-a+sve+noi8mm+nobf16+nof32mm -x c -E -dM %s -o - | FileCheck --check-prefix=CHECK-SVE-8_6-NOI8MMNOBF16NOF32MM %s
+// CHECK-SVE-8_6-NOI8MMNOBF16NOF32MM-NOT: __ARM_FEATURE_SVE_BF16 1
----------------
nit: I don't think you really need to test all permutations, one positive test (for `-march=armv8.6-a+sve`) and this negative test should be sufficient?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83079/new/
https://reviews.llvm.org/D83079
More information about the cfe-commits
mailing list