@@ -115,10 +115,10 @@ target triple = "spirv64-unknown-unknown"
115115; CHECK-LLVM: %OpFRem = frem bfloat [[DATA1]], [[DATA2]]
116116; %OpFMod
117117; %OpVectorTimesScalar
118- ; CHECK-LLVM: %[[#]] = call spir_func i32 @_Z5isnanu6__bf16 (bfloat [[DATA1]])
119- ; CHECK-LLVM: %[[#]] = call spir_func i32 @_Z5isinfu6__bf16 (bfloat [[DATA1]])
118+ ; CHECK-LLVM: %[[#]] = call spir_func i32 @_Z5isnanDF16b (bfloat [[DATA1]])
119+ ; CHECK-LLVM: %[[#]] = call spir_func i32 @_Z5isinfDF16b (bfloat [[DATA1]])
120120; %OpIsFinite
121- ; CHECK-LLVM: %[[#]] = call spir_func i32 @_Z8isnormalu6__bf16 (bfloat [[DATA1]])
121+ ; CHECK-LLVM: %[[#]] = call spir_func i32 @_Z8isnormalDF16b (bfloat [[DATA1]])
122122; CHECK-LLVM: %OpOrdered = fcmp ord bfloat [[DATA1]], [[DATA2]]
123123; CHECK-LLVM: %OpUnordered = fcmp uno bfloat [[DATA1]], [[DATA2]]
124124; CHECK-LLVM: %OpSelect = select i1 true, bfloat [[DATA1]], bfloat [[DATA2]]
@@ -134,44 +134,44 @@ target triple = "spirv64-unknown-unknown"
134134; CHECK-LLVM: %OpFUnordLessThanEqual = fcmp ule bfloat [[DATA1]], [[DATA2]]
135135; CHECK-LLVM: %OpFOrdGreaterThanEqual = fcmp oge bfloat [[DATA1]], [[DATA2]]
136136; CHECK-LLVM: %OpFUnordGreaterThanEqual = fcmp uge bfloat [[DATA1]], [[DATA2]]
137- ; CHECK-LLVM: %fabs = call spir_func bfloat @_Z4fabsu6__bf16 (bfloat [[DATA1]])
138- ; CHECK-LLVM: %fclamp = call spir_func bfloat @_Z5clampu6__bf16u6__bf16u6__bf16 (bfloat [[DATA1]], bfloat [[DATA2]], bfloat [[DATA3]])
139- ; CHECK-LLVM: %fma = call spir_func bfloat @_Z3fmau6__bf16u6__bf16u6__bf16 (bfloat [[DATA1]], bfloat [[DATA2]], bfloat [[DATA3]])
140- ; CHECK-LLVM: %fmax = call spir_func bfloat @_Z4fmaxu6__bf16u6__bf16 (bfloat [[DATA1]], bfloat [[DATA2]])
141- ; CHECK-LLVM: %fmin = call spir_func bfloat @_Z4fminu6__bf16u6__bf16 (bfloat [[DATA1]], bfloat [[DATA2]])
142- ; CHECK-LLVM: %mad = call spir_func bfloat @_Z3madu6__bf16u6__bf16u6__bf16 (bfloat [[DATA1]], bfloat [[DATA2]], bfloat [[DATA3]])
143- ; CHECK-LLVM: %nan = call spir_func bfloat @_Z3nanu6__bf16 (bfloat [[DATA1]])
144- ; CHECK-LLVM: %native_cos = call spir_func bfloat @_Z10native_cosu6__bf16 (bfloat [[DATA1]])
145- ; CHECK-LLVM: %native_divide = call spir_func bfloat @_Z13native_divideu6__bf16u6__bf16 (bfloat [[DATA1]], bfloat [[DATA2]])
146- ; CHECK-LLVM: %native_exp = call spir_func bfloat @_Z10native_expu6__bf16 (bfloat [[DATA1]])
147- ; CHECK-LLVM: %native_exp10 = call spir_func bfloat @_Z12native_exp10u6__bf16 (bfloat [[DATA1]])
148- ; CHECK-LLVM: %native_exp2 = call spir_func bfloat @_Z11native_exp2u6__bf16 (bfloat [[DATA1]])
149- ; CHECK-LLVM: %native_log = call spir_func bfloat @_Z10native_logu6__bf16 (bfloat [[DATA1]])
150- ; CHECK-LLVM: %native_log10 = call spir_func bfloat @_Z12native_log10u6__bf16 (bfloat [[DATA1]])
151- ; CHECK-LLVM: %native_log2 = call spir_func bfloat @_Z11native_log2u6__bf16 (bfloat [[DATA1]])
152- ; CHECK-LLVM: %native_powr = call spir_func bfloat @_Z11native_powru6__bf16u6__bf16 (bfloat [[DATA1]], bfloat [[DATA2]])
153- ; CHECK-LLVM: %native_recip = call spir_func bfloat @_Z12native_recipu6__bf16 (bfloat [[DATA1]])
154- ; CHECK-LLVM: %native_rsqrt = call spir_func bfloat @_Z12native_rsqrtu6__bf16 (bfloat [[DATA1]])
155- ; CHECK-LLVM: %native_sin = call spir_func bfloat @_Z10native_sinu6__bf16 (bfloat [[DATA1]])
156- ; CHECK-LLVM: %native_sqrt = call spir_func bfloat @_Z11native_sqrtu6__bf16 (bfloat [[DATA1]])
157- ; CHECK-LLVM: %native_tan = call spir_func bfloat @_Z10native_tanu6__bf16 (bfloat [[DATA1]])
137+ ; CHECK-LLVM: %fabs = call spir_func bfloat @_Z4fabsDF16b (bfloat [[DATA1]])
138+ ; CHECK-LLVM: %fclamp = call spir_func bfloat @_Z5clampDF16bDF16bDF16b (bfloat [[DATA1]], bfloat [[DATA2]], bfloat [[DATA3]])
139+ ; CHECK-LLVM: %fma = call spir_func bfloat @_Z3fmaDF16bDF16bDF16b (bfloat [[DATA1]], bfloat [[DATA2]], bfloat [[DATA3]])
140+ ; CHECK-LLVM: %fmax = call spir_func bfloat @_Z4fmaxDF16bDF16b (bfloat [[DATA1]], bfloat [[DATA2]])
141+ ; CHECK-LLVM: %fmin = call spir_func bfloat @_Z4fminDF16bDF16b (bfloat [[DATA1]], bfloat [[DATA2]])
142+ ; CHECK-LLVM: %mad = call spir_func bfloat @_Z3madDF16bDF16bDF16b (bfloat [[DATA1]], bfloat [[DATA2]], bfloat [[DATA3]])
143+ ; CHECK-LLVM: %nan = call spir_func bfloat @_Z3nanDF16b (bfloat [[DATA1]])
144+ ; CHECK-LLVM: %native_cos = call spir_func bfloat @_Z10native_cosDF16b (bfloat [[DATA1]])
145+ ; CHECK-LLVM: %native_divide = call spir_func bfloat @_Z13native_divideDF16bDF16b (bfloat [[DATA1]], bfloat [[DATA2]])
146+ ; CHECK-LLVM: %native_exp = call spir_func bfloat @_Z10native_expDF16b (bfloat [[DATA1]])
147+ ; CHECK-LLVM: %native_exp10 = call spir_func bfloat @_Z12native_exp10DF16b (bfloat [[DATA1]])
148+ ; CHECK-LLVM: %native_exp2 = call spir_func bfloat @_Z11native_exp2DF16b (bfloat [[DATA1]])
149+ ; CHECK-LLVM: %native_log = call spir_func bfloat @_Z10native_logDF16b (bfloat [[DATA1]])
150+ ; CHECK-LLVM: %native_log10 = call spir_func bfloat @_Z12native_log10DF16b (bfloat [[DATA1]])
151+ ; CHECK-LLVM: %native_log2 = call spir_func bfloat @_Z11native_log2DF16b (bfloat [[DATA1]])
152+ ; CHECK-LLVM: %native_powr = call spir_func bfloat @_Z11native_powrDF16bDF16b (bfloat [[DATA1]], bfloat [[DATA2]])
153+ ; CHECK-LLVM: %native_recip = call spir_func bfloat @_Z12native_recipDF16b (bfloat [[DATA1]])
154+ ; CHECK-LLVM: %native_rsqrt = call spir_func bfloat @_Z12native_rsqrtDF16b (bfloat [[DATA1]])
155+ ; CHECK-LLVM: %native_sin = call spir_func bfloat @_Z10native_sinDF16b (bfloat [[DATA1]])
156+ ; CHECK-LLVM: %native_sqrt = call spir_func bfloat @_Z11native_sqrtDF16b (bfloat [[DATA1]])
157+ ; CHECK-LLVM: %native_tan = call spir_func bfloat @_Z10native_tanDF16b (bfloat [[DATA1]])
158158
159- declare spir_func bfloat @_Z5clampu6__bf16u6__bf16u6__bf16 (bfloat, bfloat, bfloat)
160- declare spir_func bfloat @_Z3nanu6__bf16 (bfloat)
161- declare spir_func bfloat @_Z10native_cosu6__bf16 (bfloat)
162- declare spir_func bfloat @_Z13native_divideu6__bf16u6__bf16 (bfloat, bfloat)
163- declare spir_func bfloat @_Z10native_expu6__bf16 (bfloat)
164- declare spir_func bfloat @_Z12native_exp10u6__bf16 (bfloat)
165- declare spir_func bfloat @_Z11native_exp2u6__bf16 (bfloat)
166- declare spir_func bfloat @_Z10native_logu6__bf16 (bfloat)
167- declare spir_func bfloat @_Z12native_log10u6__bf16 (bfloat)
168- declare spir_func bfloat @_Z11native_log2u6__bf16 (bfloat)
169- declare spir_func bfloat @_Z11native_powru6__bf16u6__bf16 (bfloat, bfloat)
170- declare spir_func bfloat @_Z12native_recipu6__bf16 (bfloat)
171- declare spir_func bfloat @_Z12native_rsqrtu6__bf16 (bfloat)
172- declare spir_func bfloat @_Z10native_sinu6__bf16 (bfloat)
173- declare spir_func bfloat @_Z11native_sqrtu6__bf16 (bfloat)
174- declare spir_func bfloat @_Z10native_tanu6__bf16 (bfloat)
159+ declare spir_func bfloat @_Z5clampDF16bDF16bDF16b (bfloat, bfloat, bfloat)
160+ declare spir_func bfloat @_Z3nanDF16b (bfloat)
161+ declare spir_func bfloat @_Z10native_cosDF16b (bfloat)
162+ declare spir_func bfloat @_Z13native_divideDF16bDF16b (bfloat, bfloat)
163+ declare spir_func bfloat @_Z10native_expDF16b (bfloat)
164+ declare spir_func bfloat @_Z12native_exp10DF16b (bfloat)
165+ declare spir_func bfloat @_Z11native_exp2DF16b (bfloat)
166+ declare spir_func bfloat @_Z10native_logDF16b (bfloat)
167+ declare spir_func bfloat @_Z12native_log10DF16b (bfloat)
168+ declare spir_func bfloat @_Z11native_log2DF16b (bfloat)
169+ declare spir_func bfloat @_Z11native_powrDF16bDF16b (bfloat, bfloat)
170+ declare spir_func bfloat @_Z12native_recipDF16b (bfloat)
171+ declare spir_func bfloat @_Z12native_rsqrtDF16b (bfloat)
172+ declare spir_func bfloat @_Z10native_sinDF16b (bfloat)
173+ declare spir_func bfloat @_Z11native_sqrtDF16b (bfloat)
174+ declare spir_func bfloat @_Z10native_tanDF16b (bfloat)
175175
176176define spir_func void @OpPhi (bfloat %data1 , bfloat %data2 ) {
177177 br label %blockA
@@ -235,26 +235,26 @@ entry:
235235 %OpFOrdGreaterThanEqual = fcmp oge bfloat %data1 , %data2
236236 %OpFUnordGreaterThanEqual = fcmp uge bfloat %data1 , %data2
237237 %fabs = call bfloat @llvm.fabs.bfloat (bfloat %data1 )
238- %fclamp = call spir_func bfloat @_Z5clampu6__bf16u6__bf16u6__bf16 (bfloat %data1 , bfloat %data2 , bfloat %data3 )
238+ %fclamp = call spir_func bfloat @_Z5clampDF16bDF16bDF16b (bfloat %data1 , bfloat %data2 , bfloat %data3 )
239239 %fma = call bfloat @llvm.fma.bfloat (bfloat %data1 , bfloat %data2 , bfloat %data3 )
240240 %fmax = call bfloat @llvm.maxnum.bfloat (bfloat %data1 , bfloat %data2 )
241241 %fmin = call bfloat @llvm.minnum.bfloat (bfloat %data1 , bfloat %data2 )
242242 %mad = call bfloat @llvm.fmuladd.bfloat (bfloat %data1 , bfloat %data2 , bfloat %data3 )
243- %nan = call spir_func bfloat @_Z3nanu6__bf16 (bfloat %data1 )
244- %native_cos = call spir_func bfloat @_Z10native_cosu6__bf16 (bfloat %data1 )
245- %native_divide = call spir_func bfloat @_Z13native_divideu6__bf16u6__bf16 (bfloat %data1 , bfloat %data2 )
246- %native_exp = call spir_func bfloat @_Z10native_expu6__bf16 (bfloat %data1 )
247- %native_exp10 = call spir_func bfloat @_Z12native_exp10u6__bf16 (bfloat %data1 )
248- %native_exp2 = call spir_func bfloat @_Z11native_exp2u6__bf16 (bfloat %data1 )
249- %native_log = call spir_func bfloat @_Z10native_logu6__bf16 (bfloat %data1 )
250- %native_log10 = call spir_func bfloat @_Z12native_log10u6__bf16 (bfloat %data1 )
251- %native_log2 = call spir_func bfloat @_Z11native_log2u6__bf16 (bfloat %data1 )
252- %native_powr = call spir_func bfloat @_Z11native_powru6__bf16u6__bf16 (bfloat %data1 , bfloat %data2 )
253- %native_recip = call spir_func bfloat @_Z12native_recipu6__bf16 (bfloat %data1 )
254- %native_rsqrt = call spir_func bfloat @_Z12native_rsqrtu6__bf16 (bfloat %data1 )
255- %native_sin = call spir_func bfloat @_Z10native_sinu6__bf16 (bfloat %data1 )
256- %native_sqrt = call spir_func bfloat @_Z11native_sqrtu6__bf16 (bfloat %data1 )
257- %native_tan = call spir_func bfloat @_Z10native_tanu6__bf16 (bfloat %data1 )
243+ %nan = call spir_func bfloat @_Z3nanDF16b (bfloat %data1 )
244+ %native_cos = call spir_func bfloat @_Z10native_cosDF16b (bfloat %data1 )
245+ %native_divide = call spir_func bfloat @_Z13native_divideDF16bDF16b (bfloat %data1 , bfloat %data2 )
246+ %native_exp = call spir_func bfloat @_Z10native_expDF16b (bfloat %data1 )
247+ %native_exp10 = call spir_func bfloat @_Z12native_exp10DF16b (bfloat %data1 )
248+ %native_exp2 = call spir_func bfloat @_Z11native_exp2DF16b (bfloat %data1 )
249+ %native_log = call spir_func bfloat @_Z10native_logDF16b (bfloat %data1 )
250+ %native_log10 = call spir_func bfloat @_Z12native_log10DF16b (bfloat %data1 )
251+ %native_log2 = call spir_func bfloat @_Z11native_log2DF16b (bfloat %data1 )
252+ %native_powr = call spir_func bfloat @_Z11native_powrDF16bDF16b (bfloat %data1 , bfloat %data2 )
253+ %native_recip = call spir_func bfloat @_Z12native_recipDF16b (bfloat %data1 )
254+ %native_rsqrt = call spir_func bfloat @_Z12native_rsqrtDF16b (bfloat %data1 )
255+ %native_sin = call spir_func bfloat @_Z10native_sinDF16b (bfloat %data1 )
256+ %native_sqrt = call spir_func bfloat @_Z11native_sqrtDF16b (bfloat %data1 )
257+ %native_tan = call spir_func bfloat @_Z10native_tanDF16b (bfloat %data1 )
258258 ret void
259259}
260260
0 commit comments