[hlsl] Update expectations for HLSL IR.
Update the expectation files for the HLSL IR backend.
Bug: 42251044
Change-Id: Ie4e27c6a5d8ea3eb3d9b2d055a9d285174bbf30f
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/200696
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
diff --git a/test/tint/statements/compound_assign/function.wgsl.expected.ir.fxc.hlsl b/test/tint/statements/compound_assign/function.wgsl.expected.ir.fxc.hlsl
index e5265e3..d60df9a 100644
--- a/test/tint/statements/compound_assign/function.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/statements/compound_assign/function.wgsl.expected.ir.fxc.hlsl
@@ -1,11 +1,14 @@
-SKIP: FAILED
+
+int tint_div_i32(int lhs, int rhs) {
+ return (lhs / ((((rhs == 0) | ((lhs == -2147483648) & (rhs == -1)))) ? (1) : (rhs)));
+}
void foo() {
int a = 0;
float4 b = (0.0f).xxxx;
float2x2 c = float2x2((0.0f).xx, (0.0f).xx);
- a = (a / 2);
- b = (b * float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx));
+ a = tint_div_i32(a, 2);
+ b = mul(float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx), b);
c = (c * 2.0f);
}