[llvm-bugs] [Bug 44731] New: Instruction selection fails for @llvm.experimental.constrained.fcmps.f32

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 31 09:12:28 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=44731

            Bug ID: 44731
           Summary: Instruction selection fails for
                    @llvm.experimental.constrained.fcmps.f32
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedbugs at nondot.org
          Reporter: jjaoudi at waymo.com
                CC: llvm-bugs at lists.llvm.org, peter.smith at linaro.org,
                    Ties.Stuij at arm.com

Source:

```c++
void Foo(float a) {
  if (0.f < a) return;
}
```

MIR:

```text
target datalayout = "E-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "thumbebv7r-none-unknown-eabihf"

; Function Attrs: nounwind
define dso_local void @_Z3Foof(float %0) local_unnamed_addr #0 !dbg !8 {
  %2 = tail call i1 @llvm.experimental.constrained.fcmps.f32(float
0.000000e+00, float %0, metadata !"olt", metadata !"fpexcept.strict") #3, !dbg
!10
  ret void, !dbg !11
}
```

Results in a segmentation fault during the "ARM Instruction Selection" pass.

-- 
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/20200131/d0cd2d95/attachment.html>


More information about the llvm-bugs mailing list