Browse Source

Update test.

Xiang Li 7 năm trước cách đây
mục cha
commit
35cf3702d6
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      tools/clang/test/CodeGenHLSL/selectObj4.hlsl

+ 4 - 4
tools/clang/test/CodeGenHLSL/selectObj4.hlsl

@@ -1,9 +1,9 @@
 // RUN: %dxc -E main -T cs_6_0 %s | FileCheck %s
 
-// CHECK: select
-// CHECK: i32 2, i32 1
-// CHECK: select
-// CHECK: i32 0, i32 3
+// Make sure select on resource index.
+// TODO: transform phi into selectInst.
+// CHECK: phi i32 [ 2, {{.*}} ], [ 1, {{.*}} ]
+// CHECK: phi i32 [ 0, {{.*}} ], [ 3, {{.*}} ]
 
 
 RWStructuredBuffer<float2x2> o[6];