12
12
; CHECK: %[[#int64_ty:]] = OpTypeInt 64 0
13
13
; CHECK: %[[#vec_ty:]] = OpTypeVector %[[#int64_ty]] 3
14
14
; CHECK: %[[#func2_ty:]] = OpTypeFunction %[[#vec_ty]]
15
+ ; CHECK: %[[#int32_ty:]] = OpTypeInt 32 0
16
+ ; CHECK: %[[#i32ptr_ty:]] = OpTypePointer CrossWorkgroup %[[#int32_ty]]
15
17
;; TODO: add 64-bit constant defs
16
18
; CHECK: %[[#f2_decl]] = OpFunction %[[#vec_ty]] Pure %[[#func2_ty]]
17
19
; CHECK: OpFunctionEnd
@@ -31,21 +33,21 @@ entry:
31
33
%0 = call spir_func <3 x i64 > @BuiltInGlobalOffset () #1
32
34
%call = extractelement <3 x i64 > %0 , i32 0
33
35
%conv = trunc i64 %call to i32
34
- ; CHECK: %[[#i1:]] = OpInBoundsPtrAccessChain %[[#iptr_ty ]] %[[#outOffsets]]
36
+ ; CHECK: %[[#i1:]] = OpInBoundsPtrAccessChain %[[#i32ptr_ty ]] %[[#outOffsets]]
35
37
; CHECK: OpStore %[[#i1:]] %[[#]] Aligned 4
36
38
%arrayidx = getelementptr inbounds i32 , i32 addrspace (1 )* %outOffsets , i64 0
37
39
store i32 %conv , i32 addrspace (1 )* %arrayidx , align 4
38
40
%1 = call spir_func <3 x i64 > @BuiltInGlobalOffset () #1
39
41
%call1 = extractelement <3 x i64 > %1 , i32 1
40
42
%conv2 = trunc i64 %call1 to i32
41
- ; CHECK: %[[#i2:]] = OpInBoundsPtrAccessChain %[[#iptr_ty ]] %[[#outOffsets]]
43
+ ; CHECK: %[[#i2:]] = OpInBoundsPtrAccessChain %[[#i32ptr_ty ]] %[[#outOffsets]]
42
44
; CHECK: OpStore %[[#i2:]] %[[#]] Aligned 4
43
45
%arrayidx3 = getelementptr inbounds i32 , i32 addrspace (1 )* %outOffsets , i64 1
44
46
store i32 %conv2 , i32 addrspace (1 )* %arrayidx3 , align 4
45
47
%2 = call spir_func <3 x i64 > @BuiltInGlobalOffset () #1
46
48
%call4 = extractelement <3 x i64 > %2 , i32 2
47
49
%conv5 = trunc i64 %call4 to i32
48
- ; CHECK: %[[#i3:]] = OpInBoundsPtrAccessChain %[[#iptr_ty ]] %[[#outOffsets]]
50
+ ; CHECK: %[[#i3:]] = OpInBoundsPtrAccessChain %[[#i32ptr_ty ]] %[[#outOffsets]]
49
51
; CHECK: OpStore %[[#i3:]] %[[#]] Aligned 4
50
52
%arrayidx6 = getelementptr inbounds i32 , i32 addrspace (1 )* %outOffsets , i64 2
51
53
store i32 %conv5 , i32 addrspace (1 )* %arrayidx6 , align 4
0 commit comments