@@ -36,6 +36,19 @@ entry:
3636 ret void
3737}
3838
39+ ; CHECK-SPIRV: CompositeConstruct [[#MatrixTypeFloat]] [[#MatrixIn:]] [[#]] {{$}}
40+ ; CHECK-SPIRV: ConvertFToU [[#MatrixTypeInt32]] [[#]] [[#MatrixIn]]
41+
42+ ; CHECK-LLVM: %[[#Matrix:]] = call spir_func target("spirv.CooperativeMatrixKHR", float, 3, 12, 12, 3) @_Z26__spirv_CompositeConstructf(float 0.000000e+00)
43+ ; CHECK-LLVM: call spir_func target("spirv.CooperativeMatrixKHR", i32, 3, 12, 12, 3) @_Z73__spirv_ConvertFToU_RPU3AS144__spirv_CooperativeMatrixKHR__uint_3_12_12_3PU3AS145__spirv_CooperativeMatrixKHR__float_3_12_12_3(target("spirv.CooperativeMatrixKHR", float, 3, 12, 12, 3) %[[#Matrix]])
44+
45+ define void @convert_f_to_u_no_fproundingmode () {
46+ entry:
47+ %0 = tail call spir_func noundef target ("spirv.CooperativeMatrixKHR" , float , 3 , 12 , 12 , 3 ) @_Z26__spirv_CompositeConstructFloat (float 0 .000000e+00 )
48+ %call = call spir_func target ("spirv.CooperativeMatrixKHR" , i32 , 3 , 12 , 12 , 3 ) @_Z73__spirv_ConvertFToU_RPU3AS144__spirv_CooperativeMatrixKHR__uint_3_12_12_3PU3AS145__spirv_CooperativeMatrixKHR__float_3_12_12_3 (target ("spirv.CooperativeMatrixKHR" , float , 3 , 12 , 12 , 3 ) %0 )
49+ ret void
50+ }
51+
3952; CHECK-SPIRV: CompositeConstruct [[#MatrixTypeFloat]] [[#MatrixIn:]] [[#]] {{$}}
4053; CHECK-SPIRV: ConvertFToS [[#MatrixTypeInt32]] [[#]] [[#MatrixIn]]
4154
@@ -126,6 +139,8 @@ declare spir_func noundef target("spirv.CooperativeMatrixKHR", i8, 3, 12, 12, 3)
126139
127140declare spir_func noundef target ("spirv.CooperativeMatrixKHR" , i32 , 3 , 12 , 12 , 3 ) @_Z77__spirv_ConvertFToU_RPU3AS144__spirv_CooperativeMatrixKHR__uint_3_12_12_3_rtpPU3AS145__spirv_CooperativeMatrixKHR__float_3_12_12_3 (target ("spirv.CooperativeMatrixKHR" , float , 3 , 12 , 12 , 3 ) noundef)
128141
142+ declare spir_func noundef target ("spirv.CooperativeMatrixKHR" , i32 , 3 , 12 , 12 , 3 ) @_Z73__spirv_ConvertFToU_RPU3AS144__spirv_CooperativeMatrixKHR__uint_3_12_12_3PU3AS145__spirv_CooperativeMatrixKHR__float_3_12_12_3 (target ("spirv.CooperativeMatrixKHR" , float , 3 , 12 , 12 , 3 ) noundef)
143+
129144declare spir_func noundef target ("spirv.CooperativeMatrixKHR" , i32 , 3 , 12 , 12 , 3 ) @_Z77__spirv_ConvertFToS_RPU3AS144__spirv_CooperativeMatrixKHR__uint_3_12_12_3_rtpPU3AS145__spirv_CooperativeMatrixKHR__float_3_12_12_3 (target ("spirv.CooperativeMatrixKHR" , float , 3 , 12 , 12 , 3 ) noundef)
130145
131146declare spir_func noundef target ("spirv.CooperativeMatrixKHR" , half , 3 , 12 , 12 , 3 ) @_Z77__spirv_ConvertSToF_RPU3AS144__spirv_CooperativeMatrixKHR__half_3_12_12_3_rtpPU3AS145__spirv_CooperativeMatrixKHR__short_3_12_12_3 (target ("spirv.CooperativeMatrixKHR" , i16 , 3 , 12 , 12 , 3 ) noundef)
0 commit comments