Skip to content

Misleading example in WhyJulia/Type-Stability #56

@gltchr

Description

@gltchr

Text describes (and emphasizes) operation on Float64 but example provides operation on Int64:

...this output is saying that a floating point multiplication operation is performed and the answer is returned.

While example code is:

@code_llvm 25
; Function *
; Location: int.jl:54
define i64 @"julia_
_33751"(i64, i64) {
top:
%2 = mul i64 %1, %0
ret i64 %2
}

Expected example code (from my machine):

@code_llvm 2.05.0
; @ float.jl:405 within `
'
define double @"julia_*_7059"(double %0, double %1) {
top:
%2 = fmul double %0, %1
ret double %2
}

PS Huge thanks for all the work!! Loving the course!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions