Skip to content

Commit

Permalink
Update LLVM (#1431)
Browse files Browse the repository at this point in the history
Update a test responding to different codegen.
  • Loading branch information
dneto0 authored Dec 20, 2024
1 parent 9cbb18f commit d0bb3b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"subrepo" : "llvm/llvm-project",
"branch" : "main",
"subdir" : "third_party/llvm",
"commit" : "af20aff35ec37ead88903bc3e44f6a81c5c9ca4e"
"commit" : "b5d02786be31f45ca5919b3b73e99d8958330f78"
},
{
"name" : "SPIRV-Headers",
Expand Down
6 changes: 4 additions & 2 deletions test/WorkItemBuiltins/get_local_size.ll
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@

; CHECK: define spir_func i32 @_Z14get_local_sizej(i32 [[p:%[0-9]+]])
; CHECK: [[cmp:%[0-9]+]] = icmp ult i32 [[p]], 3
; CHECK: [[sel:%[0-9]+]] = select i1 [[cmp]], i32 [[p]], i32 0
; CHECK: [[ld:%[0-9]+]] = load <3 x i32>, ptr addrspace(8) @__spirv_WorkgroupSize
; CHECK: [[ex:%[0-9]+]] = extractelement <3 x i32> [[ld]], i32 [[sel]]

; If p is out of bounds, then the extract element yields a poison value that
; is then thrown away by the select on the next line.
; CHECK: [[ex:%[0-9]+]] = extractelement <3 x i32> [[ld]], i32 [[p]]
; CHECK: [[sel:%[0-9]+]] = select i1 [[cmp]], i32 [[ex]], i32 1
; CHECK: ret i32 [[sel]]

Expand Down

0 comments on commit d0bb3b8

Please sign in to comment.