@@ -126,44 +126,44 @@ target triple = "spirv64-unknown-unknown"
126126; CHECK-LLVM: %OpFUnordLessThanEqual = fcmp ule bfloat [[DATA1]], [[DATA2]]
127127; CHECK-LLVM: %OpFOrdGreaterThanEqual = fcmp oge bfloat [[DATA1]], [[DATA2]]
128128; CHECK-LLVM: %OpFUnordGreaterThanEqual = fcmp uge bfloat [[DATA1]], [[DATA2]]
129- ; CHECK-LLVM: %fabs = call spir_func bfloat @_Z4fabsu6__bf16 (bfloat [[DATA1]])
130- ; CHECK-LLVM: %fclamp = call spir_func bfloat @_Z5clampu6__bf16u6__bf16u6__bf16 (bfloat [[DATA1]], bfloat [[DATA2]], bfloat [[DATA3]])
131- ; CHECK-LLVM: %fma = call spir_func bfloat @_Z3fmau6__bf16u6__bf16u6__bf16 (bfloat [[DATA1]], bfloat [[DATA2]], bfloat [[DATA3]])
132- ; CHECK-LLVM: %fmax = call spir_func bfloat @_Z4fmaxu6__bf16u6__bf16 (bfloat [[DATA1]], bfloat [[DATA2]])
133- ; CHECK-LLVM: %fmin = call spir_func bfloat @_Z4fminu6__bf16u6__bf16 (bfloat [[DATA1]], bfloat [[DATA2]])
134- ; CHECK-LLVM: %mad = call spir_func bfloat @_Z3madu6__bf16u6__bf16u6__bf16 (bfloat [[DATA1]], bfloat [[DATA2]], bfloat [[DATA3]])
135- ; CHECK-LLVM: %nan = call spir_func bfloat @_Z3nanu6__bf16 (bfloat [[DATA1]])
136- ; CHECK-LLVM: %native_cos = call spir_func bfloat @_Z10native_cosu6__bf16 (bfloat [[DATA1]])
137- ; CHECK-LLVM: %native_divide = call spir_func bfloat @_Z13native_divideu6__bf16u6__bf16 (bfloat [[DATA1]], bfloat [[DATA2]])
138- ; CHECK-LLVM: %native_exp = call spir_func bfloat @_Z10native_expu6__bf16 (bfloat [[DATA1]])
139- ; CHECK-LLVM: %native_exp10 = call spir_func bfloat @_Z12native_exp10u6__bf16 (bfloat [[DATA1]])
140- ; CHECK-LLVM: %native_exp2 = call spir_func bfloat @_Z11native_exp2u6__bf16 (bfloat [[DATA1]])
141- ; CHECK-LLVM: %native_log = call spir_func bfloat @_Z10native_logu6__bf16 (bfloat [[DATA1]])
142- ; CHECK-LLVM: %native_log10 = call spir_func bfloat @_Z12native_log10u6__bf16 (bfloat [[DATA1]])
143- ; CHECK-LLVM: %native_log2 = call spir_func bfloat @_Z11native_log2u6__bf16 (bfloat [[DATA1]])
144- ; CHECK-LLVM: %native_powr = call spir_func bfloat @_Z11native_powru6__bf16u6__bf16 (bfloat [[DATA1]], bfloat [[DATA2]])
145- ; CHECK-LLVM: %native_recip = call spir_func bfloat @_Z12native_recipu6__bf16 (bfloat [[DATA1]])
146- ; CHECK-LLVM: %native_rsqrt = call spir_func bfloat @_Z12native_rsqrtu6__bf16 (bfloat [[DATA1]])
147- ; CHECK-LLVM: %native_sin = call spir_func bfloat @_Z10native_sinu6__bf16 (bfloat [[DATA1]])
148- ; CHECK-LLVM: %native_sqrt = call spir_func bfloat @_Z11native_sqrtu6__bf16 (bfloat [[DATA1]])
149- ; CHECK-LLVM: %native_tan = call spir_func bfloat @_Z10native_tanu6__bf16 (bfloat [[DATA1]])
129+ ; CHECK-LLVM: %fabs = call spir_func bfloat @_Z4fabsDF16b (bfloat [[DATA1]])
130+ ; CHECK-LLVM: %fclamp = call spir_func bfloat @_Z5clampDF16bDF16bDF16b (bfloat [[DATA1]], bfloat [[DATA2]], bfloat [[DATA3]])
131+ ; CHECK-LLVM: %fma = call spir_func bfloat @_Z3fmaDF16bDF16bDF16b (bfloat [[DATA1]], bfloat [[DATA2]], bfloat [[DATA3]])
132+ ; CHECK-LLVM: %fmax = call spir_func bfloat @_Z4fmaxDF16bDF16b (bfloat [[DATA1]], bfloat [[DATA2]])
133+ ; CHECK-LLVM: %fmin = call spir_func bfloat @_Z4fminDF16bDF16b (bfloat [[DATA1]], bfloat [[DATA2]])
134+ ; CHECK-LLVM: %mad = call spir_func bfloat @_Z3madDF16bDF16bDF16b (bfloat [[DATA1]], bfloat [[DATA2]], bfloat [[DATA3]])
135+ ; CHECK-LLVM: %nan = call spir_func bfloat @_Z3nanDF16b (bfloat [[DATA1]])
136+ ; CHECK-LLVM: %native_cos = call spir_func bfloat @_Z10native_cosDF16b (bfloat [[DATA1]])
137+ ; CHECK-LLVM: %native_divide = call spir_func bfloat @_Z13native_divideDF16bDF16b (bfloat [[DATA1]], bfloat [[DATA2]])
138+ ; CHECK-LLVM: %native_exp = call spir_func bfloat @_Z10native_expDF16b (bfloat [[DATA1]])
139+ ; CHECK-LLVM: %native_exp10 = call spir_func bfloat @_Z12native_exp10DF16b (bfloat [[DATA1]])
140+ ; CHECK-LLVM: %native_exp2 = call spir_func bfloat @_Z11native_exp2DF16b (bfloat [[DATA1]])
141+ ; CHECK-LLVM: %native_log = call spir_func bfloat @_Z10native_logDF16b (bfloat [[DATA1]])
142+ ; CHECK-LLVM: %native_log10 = call spir_func bfloat @_Z12native_log10DF16b (bfloat [[DATA1]])
143+ ; CHECK-LLVM: %native_log2 = call spir_func bfloat @_Z11native_log2DF16b (bfloat [[DATA1]])
144+ ; CHECK-LLVM: %native_powr = call spir_func bfloat @_Z11native_powrDF16bDF16b (bfloat [[DATA1]], bfloat [[DATA2]])
145+ ; CHECK-LLVM: %native_recip = call spir_func bfloat @_Z12native_recipDF16b (bfloat [[DATA1]])
146+ ; CHECK-LLVM: %native_rsqrt = call spir_func bfloat @_Z12native_rsqrtDF16b (bfloat [[DATA1]])
147+ ; CHECK-LLVM: %native_sin = call spir_func bfloat @_Z10native_sinDF16b (bfloat [[DATA1]])
148+ ; CHECK-LLVM: %native_sqrt = call spir_func bfloat @_Z11native_sqrtDF16b (bfloat [[DATA1]])
149+ ; CHECK-LLVM: %native_tan = call spir_func bfloat @_Z10native_tanDF16b (bfloat [[DATA1]])
150150
151- declare spir_func bfloat @_Z5clampu6__bf16u6__bf16u6__bf16 (bfloat, bfloat, bfloat)
152- declare spir_func bfloat @_Z3nanu6__bf16 (bfloat)
153- declare spir_func bfloat @_Z10native_cosu6__bf16 (bfloat)
154- declare spir_func bfloat @_Z13native_divideu6__bf16u6__bf16 (bfloat, bfloat)
155- declare spir_func bfloat @_Z10native_expu6__bf16 (bfloat)
156- declare spir_func bfloat @_Z12native_exp10u6__bf16 (bfloat)
157- declare spir_func bfloat @_Z11native_exp2u6__bf16 (bfloat)
158- declare spir_func bfloat @_Z10native_logu6__bf16 (bfloat)
159- declare spir_func bfloat @_Z12native_log10u6__bf16 (bfloat)
160- declare spir_func bfloat @_Z11native_log2u6__bf16 (bfloat)
161- declare spir_func bfloat @_Z11native_powru6__bf16u6__bf16 (bfloat, bfloat)
162- declare spir_func bfloat @_Z12native_recipu6__bf16 (bfloat)
163- declare spir_func bfloat @_Z12native_rsqrtu6__bf16 (bfloat)
164- declare spir_func bfloat @_Z10native_sinu6__bf16 (bfloat)
165- declare spir_func bfloat @_Z11native_sqrtu6__bf16 (bfloat)
166- declare spir_func bfloat @_Z10native_tanu6__bf16 (bfloat)
151+ declare spir_func bfloat @_Z5clampDF16bDF16bDF16b (bfloat, bfloat, bfloat)
152+ declare spir_func bfloat @_Z3nanDF16b (bfloat)
153+ declare spir_func bfloat @_Z10native_cosDF16b (bfloat)
154+ declare spir_func bfloat @_Z13native_divideDF16bDF16b (bfloat, bfloat)
155+ declare spir_func bfloat @_Z10native_expDF16b (bfloat)
156+ declare spir_func bfloat @_Z12native_exp10DF16b (bfloat)
157+ declare spir_func bfloat @_Z11native_exp2DF16b (bfloat)
158+ declare spir_func bfloat @_Z10native_logDF16b (bfloat)
159+ declare spir_func bfloat @_Z12native_log10DF16b (bfloat)
160+ declare spir_func bfloat @_Z11native_log2DF16b (bfloat)
161+ declare spir_func bfloat @_Z11native_powrDF16bDF16b (bfloat, bfloat)
162+ declare spir_func bfloat @_Z12native_recipDF16b (bfloat)
163+ declare spir_func bfloat @_Z12native_rsqrtDF16b (bfloat)
164+ declare spir_func bfloat @_Z10native_sinDF16b (bfloat)
165+ declare spir_func bfloat @_Z11native_sqrtDF16b (bfloat)
166+ declare spir_func bfloat @_Z10native_tanDF16b (bfloat)
167167
168168define spir_func void @OpPhi (bfloat %data1 , bfloat %data2 ) {
169169 br label %blockA
@@ -223,26 +223,26 @@ entry:
223223 %OpFOrdGreaterThanEqual = fcmp oge bfloat %data1 , %data2
224224 %OpFUnordGreaterThanEqual = fcmp uge bfloat %data1 , %data2
225225 %fabs = call bfloat @llvm.fabs.bfloat (bfloat %data1 )
226- %fclamp = call spir_func bfloat @_Z5clampu6__bf16u6__bf16u6__bf16 (bfloat %data1 , bfloat %data2 , bfloat %data3 )
226+ %fclamp = call spir_func bfloat @_Z5clampDF16bDF16bDF16b (bfloat %data1 , bfloat %data2 , bfloat %data3 )
227227 %fma = call bfloat @llvm.fma.bfloat (bfloat %data1 , bfloat %data2 , bfloat %data3 )
228228 %fmax = call bfloat @llvm.maxnum.bfloat (bfloat %data1 , bfloat %data2 )
229229 %fmin = call bfloat @llvm.minnum.bfloat (bfloat %data1 , bfloat %data2 )
230230 %mad = call bfloat @llvm.fmuladd.bfloat (bfloat %data1 , bfloat %data2 , bfloat %data3 )
231- %nan = call spir_func bfloat @_Z3nanu6__bf16 (bfloat %data1 )
232- %native_cos = call spir_func bfloat @_Z10native_cosu6__bf16 (bfloat %data1 )
233- %native_divide = call spir_func bfloat @_Z13native_divideu6__bf16u6__bf16 (bfloat %data1 , bfloat %data2 )
234- %native_exp = call spir_func bfloat @_Z10native_expu6__bf16 (bfloat %data1 )
235- %native_exp10 = call spir_func bfloat @_Z12native_exp10u6__bf16 (bfloat %data1 )
236- %native_exp2 = call spir_func bfloat @_Z11native_exp2u6__bf16 (bfloat %data1 )
237- %native_log = call spir_func bfloat @_Z10native_logu6__bf16 (bfloat %data1 )
238- %native_log10 = call spir_func bfloat @_Z12native_log10u6__bf16 (bfloat %data1 )
239- %native_log2 = call spir_func bfloat @_Z11native_log2u6__bf16 (bfloat %data1 )
240- %native_powr = call spir_func bfloat @_Z11native_powru6__bf16u6__bf16 (bfloat %data1 , bfloat %data2 )
241- %native_recip = call spir_func bfloat @_Z12native_recipu6__bf16 (bfloat %data1 )
242- %native_rsqrt = call spir_func bfloat @_Z12native_rsqrtu6__bf16 (bfloat %data1 )
243- %native_sin = call spir_func bfloat @_Z10native_sinu6__bf16 (bfloat %data1 )
244- %native_sqrt = call spir_func bfloat @_Z11native_sqrtu6__bf16 (bfloat %data1 )
245- %native_tan = call spir_func bfloat @_Z10native_tanu6__bf16 (bfloat %data1 )
231+ %nan = call spir_func bfloat @_Z3nanDF16b (bfloat %data1 )
232+ %native_cos = call spir_func bfloat @_Z10native_cosDF16b (bfloat %data1 )
233+ %native_divide = call spir_func bfloat @_Z13native_divideDF16bDF16b (bfloat %data1 , bfloat %data2 )
234+ %native_exp = call spir_func bfloat @_Z10native_expDF16b (bfloat %data1 )
235+ %native_exp10 = call spir_func bfloat @_Z12native_exp10DF16b (bfloat %data1 )
236+ %native_exp2 = call spir_func bfloat @_Z11native_exp2DF16b (bfloat %data1 )
237+ %native_log = call spir_func bfloat @_Z10native_logDF16b (bfloat %data1 )
238+ %native_log10 = call spir_func bfloat @_Z12native_log10DF16b (bfloat %data1 )
239+ %native_log2 = call spir_func bfloat @_Z11native_log2DF16b (bfloat %data1 )
240+ %native_powr = call spir_func bfloat @_Z11native_powrDF16bDF16b (bfloat %data1 , bfloat %data2 )
241+ %native_recip = call spir_func bfloat @_Z12native_recipDF16b (bfloat %data1 )
242+ %native_rsqrt = call spir_func bfloat @_Z12native_rsqrtDF16b (bfloat %data1 )
243+ %native_sin = call spir_func bfloat @_Z10native_sinDF16b (bfloat %data1 )
244+ %native_sqrt = call spir_func bfloat @_Z11native_sqrtDF16b (bfloat %data1 )
245+ %native_tan = call spir_func bfloat @_Z10native_tanDF16b (bfloat %data1 )
246246 ret void
247247}
248248
0 commit comments