Skip to content

Commit bb0ba00

Browse files
committed
Update tests
1 parent c97104e commit bb0ba00

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

clang/test/CodeGenCUDA/amdgpu-bf16.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ __device__ void test_vec_assign() {
114114
__bf16 [[clang::ext_vector_type(2)]] vec2_a, vec2_b;
115115
vec2_a = vec2_b;
116116

117-
__bf16 [[clang::ext_vector_type(4)]] vec4_a, vec4_b;
117+
__bf16 __attribute__((ext_vector_type(4))) vec4_a, vec4_b;
118118
vec4_a = vec4_b;
119119

120120
__bf16 [[clang::ext_vector_type(8)]] vec8_a, vec8_b;
121121
vec8_a = vec8_b;
122122

123-
__bf16 [[clang::ext_vector_type(16)]] vec16_a, vec16_b;
123+
__bf16 __attribute__((ext_vector_type(16))) vec16_a, vec16_b;
124124
vec16_a = vec16_b;
125125
}

clang/test/Sema/vector-ast.c renamed to clang/test/Sema/vector-ast.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
// expected-no-diagnostics
44

5-
// CHECK: VarDecl {{.*}} x 'int __attribute__((ext_vector_type(4)))'
5+
// CHECK: ExtVectorType {{.*}} 'int __attribute__((ext_vector_type(4)))' 4
6+
// CHECK-NEXT: BuiltinType {{.*}} 'int'
67
int x __attribute__((ext_vector_type(4)));
8+
using ExtVecType = decltype(x);
79

810
// CHECK: FunctionDecl {{.*}} 'int () __attribute__((ext_vector_type(4)))'
911
int __attribute__((ext_vector_type(4))) foo() { return x; }
10-
// CHECK: CompoundStmt
12+
// CHECK: CompoundStmt
1113
// CHECK-NEXT: ReturnStmt
1214
// CHECK-NEXT: ImplicitCastExpr {{.*}} 'int __attribute__((ext_vector_type(4)))' <LValueToRValue>
1315
// CHECK-NEXT: DeclRefExpr {{.*}} 'int __attribute__((ext_vector_type(4)))' lvalue Var {{.*}} 'x' 'int __attribute__((ext_vector_type(4)))'

0 commit comments

Comments
 (0)