File tree Expand file tree Collapse file tree 1 file changed +8
-21
lines changed Expand file tree Collapse file tree 1 file changed +8
-21
lines changed Original file line number Diff line number Diff line change 1- // Verify there is a space after the parens when priting callingconv attributes.
2- // RUN: %clang_cc1 -DDEVICE -triple spirv64 -ast-dump -ast-dump-filter foo %s \
3- // RUN: | FileCheck -check-prefix=CHECK-DEVICE --strict-whitespace %s
1+ // RUN: %clang_cc1 -triple aarch64 -ast-dump -ast-dump-filter foo %s \
2+ // RUN: | FileCheck --strict-whitespace %s
43
5- // RUN: %clang_cc1 -DVECTOR -triple aarch64 -ast-dump -ast-dump-filter foo %s \
6- // RUN: | FileCheck -check-prefix=CHECK-VECTOR --strict-whitespace %s
4+ // CHECK: {{foo1 'void \(\) __attribute__\(\(device_kernel\)\)'$}}
5+ void foo1 () __attribute__((device_kernel));
76
8- // RUN: %clang_cc1 -DSVE -triple aarch64 -ast-dump -ast-dump-filter foo %s \
9- // RUN: | FileCheck -check-prefix=CHECK-SVE --strict-whitespace %s
7+ // CHECK: {{foo2 'void \(\) __attribute__\(\(aarch64_vector_pcs\)\)'$}}
8+ void foo2 () __attribute__((aarch64_vector_pcs));
109
11- #ifdef DEVICE
12- // CHECK-DEVICE-NOT: ()__attribute__((device_kernel))
13- void foo () __attribute__((device_kernel));
14- #endif
15-
16- #ifdef VECTOR
17- // CHECK-VECTOR-NOT: ()__attribute__((aarch64_vector_pcs))
18- void foo () __attribute__((aarch64_vector_pcs));
19- #endif
20-
21- #ifdef SVE
22- // CHECK-SVE-NOT: ()__attribute__((aarch64_sve_pcs))
23- void foo () __attribute__((aarch64_sve_pcs));
24- #endif
10+ // CHECK: {{foo3 'void \(\) __attribute__\(\(aarch64_sve_pcs\)\)'$}}
11+ void foo3 () __attribute__((aarch64_sve_pcs));
You can’t perform that action at this time.
0 commit comments