@@ -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, 2) @_Z26__spirv_CompositeConstructf(float 0.000000e+00)
43+ ; 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]])
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 , 2 ) @_Z26__spirv_CompositeConstructFloat (float 0 .000000e+00 )
48+ %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 )
49+ ret void
50+ }
51+
3952; CHECK-SPIRV: CompositeConstruct [[#MatrixTypeFloat]] [[#MatrixIn:]] [[#]] {{$}}
4053; CHECK-SPIRV: ConvertFToS [[#MatrixTypeInt32]] [[#]] [[#MatrixIn]]
4154
@@ -124,6 +137,8 @@ declare spir_func noundef target("spirv.CooperativeMatrixKHR", i16, 3, 12, 12, 2
124137
125138declare spir_func noundef target ("spirv.CooperativeMatrixKHR" , i8 , 3 , 12 , 12 , 2 ) @_Z26__spirv_CompositeConstructInt8 (i8 noundef)
126139
140+ 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)
141+
127142declare 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)
128143
129144declare 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