Skip to content

Commit fc7ffe1

Browse files
committed
fix indexing of "y" element
1 parent 6e06fac commit fc7ffe1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/CodeGen/DirectX/ResourceAccess/load_typedbuffer.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ define void @load_float4(i32 %index, i32 %elemindex) {
2020
call void @use_float4(<4 x float> %vec_data)
2121

2222
; CHECK: %[[VALUE:.*]] = call <4 x float> @llvm.dx.typedBufferLoad.v4f32.tdx.TypedBuffer_v4f32_1_0_0t(target("dx.TypedBuffer", <4 x float>, 1, 0, 0) %buffer, i32 %index)
23-
; CHECK: extractelement <4 x float> %[[VALUE]], i32 4
24-
%y_ptr = getelementptr inbounds <4 x float>, ptr %ptr, i32 0, i32 4
23+
; CHECK: extractelement <4 x float> %[[VALUE]], i32 1
24+
%y_ptr = getelementptr inbounds <4 x float>, ptr %ptr, i32 0, i32 1
2525
%y_data = load float, ptr %y_ptr
2626
call void @use_float(float %y_data)
2727

0 commit comments

Comments
 (0)