[llvm-bugs] [Bug 43209] New: [AArch64][StrctFP] constrained.fptrunc.f32.f64 crashes on AArch64

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 3 09:54:03 PDT 2019


            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: unassignedbugs at nondot.org
          Reporter: craig.topper at gmail.com
                CC: llvm-bugs at 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

define float @f21() {
  %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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190903/d14c3ddb/attachment.html>

More information about the llvm-bugs mailing list