https://bugs.llvm.org/show_bug.cgi?id=43209
Bug ID: 43209
Summary: [AArch64][StrctFP] constrained.fptrunc.f32.f64 crashes
on AArch64
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Common Code Generator Code
Assignee: unassignedb...@nondot.org
Reporter: craig.top...@gmail.com
CC: llvm-bugs@lists.llvm.org
The following test case crashes on AArch64. FP_ROUND is marked Custom rathern
than Legal this causes LegalizeDAG to try to expand STRICT_PF_ROUND to a
conversion using the stack. That conversion creates a truncating store from f64
to f32. But that truncating store isn't Legal on AArch64. So it tries to be
expanded, but there is no handling for expanding a truncating FP store. So it
asserts.
define float @f21() {
entry:
%result = call float @llvm.experimental.constrained.fptrunc.f32.f64(
double 42.1,
metadata !"round.dynamic",
metadata !"fpexcept.strict")
ret float %result
}
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs