[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/builtins/gen/var/bitcast/a5c539.wgsl.expected.ir.dxc.hlsl b/test/tint/builtins/gen/var/bitcast/a5c539.wgsl.expected.ir.dxc.hlsl
index a249798..c1c3dcd 100644
--- a/test/tint/builtins/gen/var/bitcast/a5c539.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/builtins/gen/var/bitcast/a5c539.wgsl.expected.ir.dxc.hlsl
@@ -1,9 +1,43 @@
-SKIP: FAILED
+struct VertexOutput {
+ float4 pos;
+ int4 prevent_dce;
+};
-<dawn>/src/tint/lang/hlsl/writer/printer/printer.cc:285 internal compiler error: Switch() matched no cases. Type: tint::core::ir::Bitcast
-********************************************************************
-* The tint shader compiler has encountered an unexpected error. *
-* *
-* Please help us fix this issue by submitting a bug report at *
-* crbug.com/tint with the source program that triggered the bug. *
-********************************************************************
+struct vertex_main_outputs {
+ nointerpolation int4 VertexOutput_prevent_dce : TEXCOORD0;
+ float4 VertexOutput_pos : SV_Position;
+};
+
+
+RWByteAddressBuffer prevent_dce : register(u0);
+int4 bitcast_a5c539() {
+ uint4 arg_0 = (1u).xxxx;
+ int4 res = asint(arg_0);
+ return res;
+}
+
+void fragment_main() {
+ prevent_dce.Store4(0u, asuint(bitcast_a5c539()));
+}
+
+[numthreads(1, 1, 1)]
+void compute_main() {
+ prevent_dce.Store4(0u, asuint(bitcast_a5c539()));
+}
+
+VertexOutput vertex_main_inner() {
+ VertexOutput tint_symbol = (VertexOutput)0;
+ tint_symbol.pos = (0.0f).xxxx;
+ tint_symbol.prevent_dce = bitcast_a5c539();
+ VertexOutput v = tint_symbol;
+ return v;
+}
+
+vertex_main_outputs vertex_main() {
+ VertexOutput v_1 = vertex_main_inner();
+ VertexOutput v_2 = v_1;
+ VertexOutput v_3 = v_1;
+ vertex_main_outputs v_4 = {v_3.prevent_dce, v_2.pos};
+ return v_4;
+}
+