]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/AArch64/csel-zero-float.ll
Vendor import of llvm release_40 branch r293443:
[FreeBSD/FreeBSD.git] / test / CodeGen / AArch64 / csel-zero-float.ll
1 ; RUN: llc -mtriple=aarch64-none-linux-gnu -enable-unsafe-fp-math < %s
2 ; There is no invocation to FileCheck as this
3 ; caused a crash in "Post-RA pseudo instruction expansion"
4
5 define double @foo(float *%user, float %t17) {
6   %t16 = load float, float* %user, align 8
7   %conv = fpext float %t16 to double
8   %cmp26 = fcmp fast oeq float %t17, 0.000000e+00
9   %div = fdiv fast float %t16, %t17
10   %div.op = fmul fast float %div, 1.000000e+02
11   %t18 = fpext float %div.op to double
12   %conv31 = select i1 %cmp26, double 0.000000e+00, double %t18
13   ret double %conv31
14 }
15