================
@@ -6,31 +6,27 @@ typedef float float3x3 __attribute__((matrix_type(3,3)));
void ok() {
float3x3 A;
- // CHECK: BinaryOperator {{.*}} 'vector<float, 1>' lvalue '='
- // CHECK-NEXT: MatrixElementExpr {{.*}} 'vector<float, 1>' lvalue _m12
+ // CHECK: BinaryOperator {{.*}} 'float' lvalue '='
+ // CHECK-NEXT: MatrixElementExpr {{.*}} 'float' lvalue _m12
// CHECK-NEXT: DeclRefExpr {{.*}} 'float3x3':'matrix<float, 3, 3>' lvalue
Var {{.*}} 'A' 'float3x3':'matrix<float, 3, 3>'
- // CHECK-NEXT: ImplicitCastExpr {{.*}} 'vector<float, 1>' <VectorSplat>
// CHECK-NEXT: FloatingLiteral {{.*}} 'float' 3.140000e+00
A._m12 = 3.14;
// CHECK: VarDecl {{.*}} r 'float' cinit
- // CHECK-NEXT: ImplicitCastExpr {{.*}} 'float' <HLSLVectorTruncation>
- // CHECK-NEXT: ImplicitCastExpr {{.*}} 'vector<float, 1>' <LValueToRValue>
- // CHECK-NEXT: MatrixElementExpr {{.*}} 'vector<float, 1>' lvalue _m00
+ // CHECK-NEXT: ImplicitCastExpr {{.*}} 'float' <LValueToRValue>
----------------
bob80905 wrote:
I'm guessing this is a separate issue that doesn't have to be addressed in this
PR, but now that this is the case, I imagine an ImplicitCastExpr should not
need to be generated? since the types match, no need to make a cast.
https://github.com/llvm/llvm-project/pull/182609
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits