Skip to content

AArch64 fails with "Don't know how to custom expand this" with illegal f16 #74402

Closed
@arsenm

Description

@arsenm
; RUN: llc -mtriple=aarch64-none-linux-gnu -mattr=-fp-armv8 < %s

define half @f16_return(float %arg) {
  %fptrunc = fptrunc float %arg to half
  ret half %fptrunc
}

Don't know how to custom expand this
UNREACHABLE executed at /Users/matt/src/llvm-project/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:24529!

Metadata

Metadata

Assignees

Labels

backend:AArch64crashPrefer [crash-on-valid] or [crash-on-invalid]

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions