Skip to content

Commit 650cd7f

Browse files
authored
Remove template/ByteAddressBufferLoad test dependency on high-level opcode (#4864)
High-level opcode is not stable, except within a build. Tests should not take a dependency on these opcode numbers. Fixed the template/ByteAddressBufferLoad test that was failing due to this dependency.
1 parent 665e977 commit 650cd7f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/clang/test/HLSLFileCheck/hlsl/template/ByteAddressBufferLoad.hlsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ RWBuffer<float> result;
2525
[numthreads(1,1,1)]
2626
void CSMain()
2727
{
28-
// CHECK: call %"struct.MyStructA<float>"* @"dx.hl.op..%\22struct.MyStructA<float>\22* (i32, %dx.types.Handle, i32)"(i32 229, %dx.types.Handle %{{[0-9]+}}, i32 0)
28+
// CHECK: call %"struct.MyStructA<float>"* @"dx.hl.op..%\22struct.MyStructA<float>\22* (i32, %dx.types.Handle, i32)"(i32 {{[0-9]+}}, %dx.types.Handle %{{[0-9]+}}, i32 0)
2929
MyStructA<float> a = g_bab.Load<MyStructA<float> >(0);
3030
result[0] = a.m_0;
3131

32-
// CHECK: call %struct.MyStructB* @"dx.hl.op..%struct.MyStructB* (i32, %dx.types.Handle, i32)"(i32 229, %dx.types.Handle %{{[0-9]+}}, i32 1)
32+
// CHECK: call %struct.MyStructB* @"dx.hl.op..%struct.MyStructB* (i32, %dx.types.Handle, i32)"(i32 {{[0-9]+}}, %dx.types.Handle %{{[0-9]+}}, i32 1)
3333
MyStructB b = g_bab.Load<MyStructB>(1);
3434
result[1] = b.m_a.m_0;
3535
}

0 commit comments

Comments
 (0)