File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 77; CHECK: %[[#Composite:]] = OpConstantComposite %[[#VecTy]] %[[#False]] %[[#False]] %[[#False]] %[[#False]]
88; CHECK: OpReturnValue %[[#Composite]]
99
10- define spir_func <4 x i1 > @f (<4 x float > %0 ) {
11- %2 = fcmp false <4 x float > %0 , %0
12- ret <4 x i1 > %2
10+ define spir_func <4 x i1 > @test (<4 x float > %a ) {
11+ %compare = fcmp false <4 x float > %a , %a
12+ ret <4 x i1 > %compare
1313}
Original file line number Diff line number Diff line change 1313
1414declare spir_func i64 @_Z12get_local_idj (i32 ) local_unnamed_addr
1515
16- define spir_kernel void @test_fn (i32 %a ) {
16+ define spir_kernel void @test (i32 %a ) {
1717entry:
18- %3 = tail call i64 @_Z12get_local_idj (i32 0 )
18+ %builtin_call = tail call i64 @_Z12get_local_idj (i32 0 )
1919 ret void
2020}
Original file line number Diff line number Diff line change 33
44@.str.1 = private unnamed_addr addrspace (1 ) constant [1 x i8 ] zeroinitializer , align 1
55
6- define linkonce_odr hidden spir_func void @foo () {
6+ define linkonce_odr hidden spir_func void @test () {
77entry:
88; CHECK: %[[#MinusOne:]] = OpConstant %[[#]] 18446744073709551615
99; CHECK: %[[#Ptr:]] = OpConvertUToPtr %[[#]] %[[#MinusOne]]
1010; CHECK: %[[#PtrCast:]] = OpPtrCastToGeneric %[[#]] %[[#]]
1111; CHECK: %[[#]] = OpFunctionCall %[[#]] %[[#]] %[[#PtrCast]] %[[#Ptr]]
1212
13- %0 = bitcast ptr addrspace (4 ) inttoptr (i64 -1 to ptr addrspace (4 )) to ptr addrspace (4 )
14- call spir_func void @bar (ptr addrspace (4 ) addrspacecast (ptr addrspace (1 ) @.str.1 to ptr addrspace (4 )), ptr addrspace (4 ) %0 )
13+ %cast = bitcast ptr addrspace (4 ) inttoptr (i64 -1 to ptr addrspace (4 )) to ptr addrspace (4 )
14+ call spir_func void @bar (ptr addrspace (4 ) addrspacecast (ptr addrspace (1 ) @.str.1 to ptr addrspace (4 )), ptr addrspace (4 ) %cast )
1515 ret void
1616}
1717
18- define linkonce_odr hidden spir_func void @bar (ptr addrspace (4 ) %__beg , ptr addrspace (4 ) %__end ) {
18+ define linkonce_odr hidden spir_func void @bar (ptr addrspace (4 ) %begin , ptr addrspace (4 ) %end ) {
1919entry:
2020 ret void
2121}
You can’t perform that action at this time.
0 commit comments