Skip to content

Commit

Permalink
[HLSL] Fix FileCheck annotation typos (#95155)
Browse files Browse the repository at this point in the history
These are the HLSL specific fixes from #93193. Thanks klensy!
  • Loading branch information
bogner authored Jun 11, 2024
1 parent a118f5f commit c6ee562
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clang/test/CodeGenHLSL/convergence/for.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void test6() {
// CHECK: [[C1:%[a-zA-Z0-9]+]] = call spir_func noundef i1 @_Z4condv() [[A3]] [ "convergencectrl"(token [[T1]]) ]
// CHECK: br i1 [[C1]], label %if.then, label %if.end
// CHECK: if.then:
// CHECK call spir_func void @_Z3foov() [[A3:#[0-9]+]] [ "convergencectrl"(token [[T1]]) ]
// CHECK: call spir_func void @_Z3foov() [[A3:#[0-9]+]] [ "convergencectrl"(token [[T1]]) ]
// CHECK: br label %for.end
// CHECK: if.end:
// CHECK: br label %for.inc
Expand Down
5 changes: 2 additions & 3 deletions clang/test/SemaHLSL/standard_conversion_sequences.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
void test() {

// CHECK: VarDecl {{.*}} used f3 'vector<float, 3>':'float __attribute__((ext_vector_type(3)))' cinit
// CHECK-NEXt: ImplicitCastExpr {{.*}} 'vector<float, 3>':'float __attribute__((ext_vector_type(3)))' <VectorSplat>
// CHECK-NEXt: ImplicitCastExpr {{.*}} 'float' <FloatingCast>
// CHECK-NEXt: FloatingLiteral {{.*}} 'double' 1.000000e+00
// CHECK-NEXT: ImplicitCastExpr {{.*}} 'vector<float, 3>':'float __attribute__((ext_vector_type(3)))' <VectorSplat>
// CHECK-NEXT: FloatingLiteral {{.*}} 'float' 1.000000e+00
vector<float,3> f3 = 1.0; // No warning for splatting to a vector from a literal.


Expand Down

0 comments on commit c6ee562

Please sign in to comment.