Skip to content

Commit b8e4555

Browse files
committed
Add a test for target_clones.
1 parent fb501dd commit b8e4555

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/test/CodeGen/AArch64/fmv-features.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
// RUN: %clang --target=aarch64-linux-gnu --rtlib=compiler-rt -emit-llvm -S -o - %s | FileCheck %s
55

66
// CHECK: define dso_local i32 @fmv._Maes() #[[aes:[0-9]+]] {
7-
__attribute__((target_version("aes"))) int fmv(void) { return 0; }
8-
97
// CHECK: define dso_local i32 @fmv._Mbf16() #[[bf16:[0-9]+]] {
10-
__attribute__((target_version("bf16"))) int fmv(void) { return 0; }
8+
__attribute__((target_clones("aes", "bf16"))) int fmv(void) { return 0; }
119

1210
// CHECK: define dso_local i32 @fmv._Mbti() #[[bti:[0-9]+]] {
1311
__attribute__((target_version("bti"))) int fmv(void) { return 0; }

0 commit comments

Comments
 (0)