File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 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'
67int x __attribute__ ((ext_vector_type(4 )));
8+ using ExtVecType = decltype (x);
79
810// CHECK: FunctionDecl {{.*}} 'int () __attribute__((ext_vector_type(4)))'
911int __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)))'
You can’t perform that action at this time.
0 commit comments