diff --git a/src/julia-syntax.scm b/src/julia-syntax.scm index 1cfd012a0ef853..b4cb4b580c61ba 100644 --- a/src/julia-syntax.scm +++ b/src/julia-syntax.scm @@ -2058,11 +2058,7 @@ ((and (eq? f '^) (length= e 4) (integer? (cadddr e))) (expand-forms `(call (top literal_pow) ^ ,(caddr e) (call (core apply_type) (top Val) ,(cadddr e))))) - ((and (equal? f `(|.| (|.| Base (inert FastMath)) (inert pow_fast))) - (length= e 4) (integer? (cadddr e))) - (expand-forms - `(call (top literal_pow) (|.| (|.| Base (inert FastMath)) (inert pow_fast)) - ,(caddr e) (call (core apply_type) (top Val) ,(cadddr e))))) + ((and (eq? f '*) (length= e 4)) (expand-transposed-op e diff --git a/test/fastmath.jl b/test/fastmath.jl index 932d0ab65fc9c9..754e84362c5e6c 100644 --- a/test/fastmath.jl +++ b/test/fastmath.jl @@ -201,10 +201,3 @@ let a = ones(2,2), b = ones(2,2) local c = 0 @test @fastmath(c |= 1) == 1 end - -struct LitPowTest end -Base.literal_pow{p}(::typeof(Base.FastMath.pow_fast), ::LitPowTest, ::Type{Val{p}}) = 1 -Base.literal_pow{p}(::typeof(^), ::LitPowTest, ::Type{Val{p}}) = 2 -LPT = LitPowTest() -@test (@fastmath LPT^2) == 1 -@test LPT^2 == 2