aboutsummaryrefslogtreecommitdiff
path: root/clang/test/AST/attr-target-version.c
blob: b537f5e685a31a474e1ee7beeb5b59a7dfd32acb (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 -triple aarch64-linux-gnu -ast-dump %s | FileCheck %s

int __attribute__((target_version("sve2-bitperm + sha2"))) foov(void) { return 1; }
int __attribute__((target_clones(" lse + fp + sha3 ", "default"))) fooc(void) { return 2; }
// CHECK: TargetVersionAttr
// CHECK: sve2-bitperm + sha2
// CHECK: TargetClonesAttr
// CHECK: fp+lse+sha3 default