Skip to content

Core.Intrinsics.fpext cannot extend Float16 to Float16 #57130

@eschnett

Description

@eschnett

With Julia nightly:

julia> Core.Intrinsics.fpext(Float16, Float16(3.3))
ERROR: fpext: output bitsize must be >= input bitsize
Stacktrace:
 [1] top-level scope
   @ REPL[3]:1
 [2] top-level scope
   @ ~/.julia/packages/Metal/N2ABH/src/initialization.jl:79

This works for other types (Float32, Float64), and should be working according to the error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorcompiler:codegenGeneration of LLVM IR and native codefloat16

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions