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

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


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

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.

>From 124fa2849bf4ed79baad90cf5be7904698fab7f2 Mon Sep 17 00:00:00 2001
From: Justin Bogner <mail at justinbogner.com>
Date: Tue, 20 Aug 2024 14:28:49 -0700
Subject: [PATCH] [DXIL][Analysis] Update test to match comment. NFC

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.
---
 llvm/test/Analysis/DXILResource/buffer-frombinding.ll | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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



More information about the llvm-commits mailing list