Skip to content

Commit 8f1346c

Browse files
committed
improve test
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent c99bb95 commit 8f1346c

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed
Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,11 @@
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));

0 commit comments

Comments
 (0)