Skip to content

Commit b49a1b4

Browse files
Fix llvm powi intrinsic calls in fastmath.jl (#44580)
1 parent 24d5268 commit b49a1b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/fastmath.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ exp10_fast(x::Union{Float32,Float64}) = Base.Math.exp10_fast(x)
279279

280280
# builtins
281281

282-
pow_fast(x::Float32, y::Integer) = ccall("llvm.powi.f32", llvmcall, Float32, (Float32, Int32), x, y)
283-
pow_fast(x::Float64, y::Integer) = ccall("llvm.powi.f64", llvmcall, Float64, (Float64, Int32), x, y)
282+
pow_fast(x::Float32, y::Integer) = ccall("llvm.powi.f32.i32", llvmcall, Float32, (Float32, Int32), x, y)
283+
pow_fast(x::Float64, y::Integer) = ccall("llvm.powi.f64.i32", llvmcall, Float64, (Float64, Int32), x, y)
284284
pow_fast(x::FloatTypes, ::Val{p}) where {p} = pow_fast(x, p) # inlines already via llvm.powi
285285
@inline pow_fast(x, v::Val) = Base.literal_pow(^, x, v)
286286

0 commit comments

Comments
 (0)