================
@@ -0,0 +1,51 @@
+// RUN: %clang_cc1 -finclude-default-header -triple 
dxil-pc-shadermodel6.6-library %s -emit-llvm -disable-llvm-passes -o - | 
FileCheck %s
+
+using namespace hlsl;
+
+// CHECK-LABEL: test_mul_square
+// CHECK: fmul {{.*}}<4 x float> %{{.*}}, %{{.*}}
+float2x2 test_mul_square(float2x2 a, float2x2 b) {
+  return a * b;
+}
----------------
joaosaffran wrote:

Can we cover `*=` and `\=` in the tests as well? The lowering for those goes 
through `EmitCompoundAssignLValue` rather than the ordinary binary-expression 
path.

https://github.com/llvm/llvm-project/pull/241993
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to