File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
llvm-spirv/test/transcoding/OpenCL Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -53,11 +53,15 @@ entry:
53
53
%x.addr = alloca i32 , align 4
54
54
store i32 %x , ptr %x.addr , align 4
55
55
%0 = load i32 , ptr %x.addr , align 4
56
+ ; We don't get the convert_char_rtei back, but that's fine because they are
57
+ ; functionally equivalent anyway. The rounding information is lost when
58
+ ; translating to SPIR-V.
59
+ ; CHECK-LLVM: call spir_func i8 @_Z12convert_chari(i32 %[[#]])
60
+ call spir_func signext i8 @_Z16convert_char_rtei (i32 noundef %0 ) #1
56
61
; CHECK-LLVM: %[[Call:[a-z]+]] = sitofp i32 %[[#]] to float
57
62
; CHECK-LLVM: call spir_func void @_Z18convert_float_func(float %[[Call]])
58
63
; CHECK-LLVM: call spir_func void @_Z20convert_uint_satfunc(i32 %[[#]])
59
64
; CHECK-LLVM: call spir_func void @_Z21convert_float_rtzfunc(float %[[Call]])
60
- call spir_func signext i8 @_Z16convert_char_rtei (i32 noundef %0 ) #1
61
65
%call = call spir_func float @_Z13convert_floati (i32 noundef %0 ) #1
62
66
call spir_func void @_Z18convert_float_func (float noundef %call ) #0
63
67
call spir_func void @_Z20convert_uint_satfunc (i32 noundef %0 ) #0
You can’t perform that action at this time.
0 commit comments