Skip to content

Commit ed2ff42

Browse files
committed
[LLVM 22] Loosen lit test.
On LLVM 22, InstCombine will split a getelementptr with multiple offsets into multiple separate getelementptr instructions. Adjust the test to allow this.
1 parent 0a68448 commit ed2ff42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/compiler/vecz/test/lit/llvm/packetize_struct_gep.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ declare i64 @__mux_get_global_id(i32)
4242
; Check if we can packetize GEPs on structs
4343
; Note that we only need to packetize the non-uniform operands..
4444
; CHECK: define spir_kernel void @__vecz_v4_test
45-
; CHECK: getelementptr %struct.T, ptr addrspace(1) %{{.+}}, <4 x i64> %{{.+}}, i32 2
46-
; CHECK: getelementptr %struct.T, ptr addrspace(1) %{{.+}}, <4 x i64> %{{.+}}, i32 2
45+
; CHECK: getelementptr %struct.T, ptr addrspace(1) %{{.+}}, <4 x i64> %{{.+}}
46+
; CHECK: getelementptr %struct.T, ptr addrspace(1) %{{.+}}, <4 x i64> %{{.+}}

0 commit comments

Comments
 (0)