Browse Source

fixes pix debug instrumentation test (broken by 1827) (#1830)

John Porto 6 years ago
parent
commit
3606804ce8
1 changed files with 6 additions and 6 deletions
  1. 6 6
      tools/clang/test/HLSL/pix/DebugFlowControl.hlsl

+ 6 - 6
tools/clang/test/HLSL/pix/DebugFlowControl.hlsl

@@ -1,14 +1,14 @@
-// RUN: %dxc -EFlowControlPS -Tps_6_0 %s | %opt -S -hlsl-dxil-debug-instrumentation | %FileCheck %s
+// RUN: %dxc -EFlowControlPS -Tps_6_0 %s | %opt -S -dxil-annotate-with-virtual-regs -hlsl-dxil-debug-instrumentation | %FileCheck %s
 
 // Check that flow control constructs don't break the instrumentation.
 
 // check instrumentation for one branch. 
 
-// CHECK:  %UAVIncResult15 = call i32 @dx.op.atomicBinOp.i32(i32 78, %dx.types.Handle %PIX_DebugUAV_Handle, i32 0, i32 0, i32 undef, i32 undef, i32 %IncrementForThisInvocation1)
-// CHECK:  %MaskedForUAVLimit16 = and i32 %UAVIncResult15, 983039
-// CHECK:  %MultipliedForInterest17 = mul i32 %MaskedForUAVLimit16, %OffsetMultiplicand
-// CHECK:  %AddedForInterest18 = add i32 %MultipliedForInterest17, %OffsetAddend
-// CHECK:  call void @dx.op.bufferStore.i32(i32 69, %dx.types.Handle %PIX_DebugUAV_Handle, i32 %AddedForInterest18, i32 undef, i32 64257, i32 undef, i32 undef, i32 undef, i8 1)
+// CHECK:  %UAVIncResult2 = call i32 @dx.op.atomicBinOp.i32(i32 78, %dx.types.Handle %PIX_DebugUAV_Handle, i32 0, i32 0, i32 undef, i32 undef, i32 %IncrementForThisInvocation1)
+// CHECK:  %MaskedForUAVLimit3 = and i32 %UAVIncResult2, 983039
+// CHECK:  %MultipliedForInterest4 = mul i32 %MaskedForUAVLimit3, %OffsetMultiplicand
+// CHECK:  %AddedForInterest5 = add i32 %MultipliedForInterest4, %OffsetAddend
+// CHECK:  call void @dx.op.bufferStore.i32(i32 69, %dx.types.Handle %PIX_DebugUAV_Handle, i32 %AddedForInterest5, i32 undef, i32 64770, i32 undef, i32 undef, i32 undef, i8 1)
 // CHECK:  switch i32
 // CHECK:    i32 0, label 
 // CHECK:    i32 32, label