[llvm] [DXIL][Analysis] Update test to match comment. NFC (PR #105409)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 20 14:32:53 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-directx

Author: Justin Bogner (bogner)

<details>
<summary>Changes</summary>

The mismatch between the comment on this test and the test itself was pointed out in https://github.com/llvm/llvm-project/pull/100699#discussion_r1715835841, but apparently I failed to actually commit the fix.

---
Full diff: https://github.com/llvm/llvm-project/pull/105409.diff


1 Files Affected:

- (modified) llvm/test/Analysis/DXILResource/buffer-frombinding.ll (+3-3) 


``````````diff
diff --git a/llvm/test/Analysis/DXILResource/buffer-frombinding.ll b/llvm/test/Analysis/DXILResource/buffer-frombinding.ll
index 4349adb8ef8ebb..65802c6d1ff87a 100644
--- a/llvm/test/Analysis/DXILResource/buffer-frombinding.ll
+++ b/llvm/test/Analysis/DXILResource/buffer-frombinding.ll
@@ -46,14 +46,14 @@ define void @test_typedbuffer() {
   ; Buffer<uint4> Buf[24] : register(t3, space5)
   %typed2 = call target("dx.TypedBuffer", <4 x i32>, 0, 0, 0)
       @llvm.dx.handle.fromBinding.tdx.TypedBuffer_i32_0_0t(
-          i32 2, i32 7, i32 24, i32 0, i1 false)
+          i32 5, i32 3, i32 24, i32 0, i1 false)
   ; CHECK: Binding for %typed2
   ; CHECK:   Symbol: ptr undef
   ; CHECK:   Name: ""
   ; CHECK:   Binding:
   ; CHECK:     Record ID: 0
-  ; CHECK:     Space: 2
-  ; CHECK:     Lower Bound: 7
+  ; CHECK:     Space: 5
+  ; CHECK:     Lower Bound: 3
   ; CHECK:     Size: 24
   ; CHECK:   Class: SRV
   ; CHECK:   Kind: TypedBuffer

``````````

</details>


https://github.com/llvm/llvm-project/pull/105409


More information about the llvm-commits mailing list