17 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=arm64 -o - %s | FileCheck %s3 4 5; Make sure we don't try to fold an fneg into +0.0, creating an illegal constant6; -0.0. It's also good, though not essential, that we don't resort to a litpool.7define double @test_fms_fold(double %a, double %b) {8; CHECK-LABEL: test_fms_fold:9; CHECK: // %bb.0:10; CHECK-NEXT: movi d0, #000000000000000011; CHECK-NEXT: ret12 %mul = fmul fast double %a, 0.000000e+0013 %mul1 = fmul fast double %b, 0.000000e+0014 %sub = fsub double %mul, %mul115 ret double %sub16}17