@@ -44,6 +44,19 @@ entry:
4444 ret void
4545}
4646
47+ ; CHECK-SPIRV: CompositeConstruct [[#MatrixTypeFloat]] [[#MatrixIn:]] [[#]] {{$}}
48+ ; CHECK-SPIRV: ConvertFToU [[#MatrixTypeInt32]] [[#]] [[#MatrixIn]]
49+
50+ ; CHECK-LLVM: %[[#Matrix:]] = call spir_func target("spirv.CooperativeMatrixKHR", float, 3, 12, 12, 2) @_Z26__spirv_CompositeConstructf(float 0.000000e+00)
51+ ; CHECK-LLVM: call spir_func target("spirv.CooperativeMatrixKHR", i32, 3, 12, 12, 2) @_Z73__spirv_ConvertFToU_RPU3AS144__spirv_CooperativeMatrixKHR__uint_3_12_12_2PU3AS145__spirv_CooperativeMatrixKHR__float_3_12_12_2(target("spirv.CooperativeMatrixKHR", float, 3, 12, 12, 2) %[[#Matrix]])
52+
53+ define void @convert_f_to_u_no_fproundingmode () {
54+ entry:
55+ %0 = tail call spir_func noundef target ("spirv.CooperativeMatrixKHR" , float , 3 , 12 , 12 , 2 ) @_Z26__spirv_CompositeConstructFloat (float 0 .000000e+00 )
56+ %call = call spir_func target ("spirv.CooperativeMatrixKHR" , i32 , 3 , 12 , 12 , 2 ) @_Z73__spirv_ConvertFToU_RPU3AS144__spirv_CooperativeMatrixKHR__uint_3_12_12_2PU3AS145__spirv_CooperativeMatrixKHR__float_3_12_12_2 (target ("spirv.CooperativeMatrixKHR" , float , 3 , 12 , 12 , 2 ) %0 )
57+ ret void
58+ }
59+
4760; CHECK-SPIRV: CompositeConstruct [[#MatrixTypeFloat]] [[#MatrixIn:]] [[#]] {{$}}
4861; CHECK-SPIRV: ConvertFToS [[#MatrixTypeInt32]] [[#]] [[#MatrixIn]]
4962
@@ -132,6 +145,8 @@ declare spir_func noundef target("spirv.CooperativeMatrixKHR", i16, 3, 12, 12, 2
132145
133146declare spir_func noundef target ("spirv.CooperativeMatrixKHR" , i8 , 3 , 12 , 12 , 2 ) @_Z26__spirv_CompositeConstructInt8 (i8 noundef)
134147
148+ declare spir_func noundef target ("spirv.CooperativeMatrixKHR" , i32 , 3 , 12 , 12 , 2 ) @_Z73__spirv_ConvertFToU_RPU3AS144__spirv_CooperativeMatrixKHR__uint_3_12_12_2PU3AS145__spirv_CooperativeMatrixKHR__float_3_12_12_2 (target ("spirv.CooperativeMatrixKHR" , float , 3 , 12 , 12 , 2 ) noundef)
149+
135150declare spir_func noundef target ("spirv.CooperativeMatrixKHR" , i32 , 3 , 12 , 12 , 2 ) @_Z77__spirv_ConvertFToU_RPU3AS144__spirv_CooperativeMatrixKHR__uint_3_12_12_2_rtpPU3AS145__spirv_CooperativeMatrixKHR__float_3_12_12_2 (target ("spirv.CooperativeMatrixKHR" , float , 3 , 12 , 12 , 2 ) noundef)
136151
137152declare spir_func noundef target ("spirv.CooperativeMatrixKHR" , i32 , 3 , 12 , 12 , 2 ) @_Z77__spirv_ConvertFToS_RPU3AS144__spirv_CooperativeMatrixKHR__uint_3_12_12_2_rtpPU3AS145__spirv_CooperativeMatrixKHR__float_3_12_12_2 (target ("spirv.CooperativeMatrixKHR" , float , 3 , 12 , 12 , 2 ) noundef)
0 commit comments