mirror of
https://github.com/JuliaLang/julia.git
synced 2026-05-28 03:10:33 +08:00
Add llvmpasses test
This commit is contained in:
@@ -14,5 +14,14 @@ include(joinpath("..", "testhelpers", "llvmpasses.jl"))
|
||||
|
||||
import Base.FastMath
|
||||
|
||||
# CHECK-LABEL: @julia_sqrt_fast
|
||||
# CHECK: call fast float @llvm.sqrt.f32(float %"x::Float32")
|
||||
emit(FastMath.sqrt_fast, Float32)
|
||||
|
||||
# CHECK-LABEL: @julia_inv_fast
|
||||
# CHECK: fdiv fast float 1.000000e+00, %"x::Float32"
|
||||
emit(FastMath.inv_fast, Float32)
|
||||
|
||||
# CHECK-LABEL: @julia_inv_fast
|
||||
# CHECK: fdiv fast double 1.000000e+00, %"x::Float64"
|
||||
emit(FastMath.inv_fast, Float64)
|
||||
|
||||
Reference in New Issue
Block a user