brintos

brintos / llvm-project-archived public Read only

0
0
Text · 997 B · da1aa4c Raw
26 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s | FileCheck %s3 4target triple = "aarch64-unknown-linux-gnu"5 6; Ensure we don't crash when trying to combine fp<->int conversions7define void @fp_convert_combine_crash(ptr %a, ptr %b) #0 {8; CHECK-LABEL: fp_convert_combine_crash:9; CHECK:       // %bb.0:10; CHECK-NEXT:    fmov z0.s, #8.0000000011; CHECK-NEXT:    ldr z1, [x0]12; CHECK-NEXT:    ptrue p0.s13; CHECK-NEXT:    fmul z0.s, z1.s, z0.s14; CHECK-NEXT:    fcvtzs z0.s, p0/m, z0.s15; CHECK-NEXT:    str z0, [x1]16; CHECK-NEXT:    ret17  %f = load <8 x float>, ptr %a18  %mul.i = fmul <8 x float> %f, <float 8.000000e+00, float 8.000000e+00, float 8.000000e+00, float 8.000000e+00,19                                 float 8.000000e+00, float 8.000000e+00, float 8.000000e+00, float 8.000000e+00>20  %vcvt.i = fptosi <8 x float> %mul.i to <8 x i32>21  store <8 x i32> %vcvt.i, ptr %b22  ret void23}24 25attributes #0 = { vscale_range(2,2) "target-features"="+sve" }26