brintos

brintos / llvm-project-archived public Read only

0
0
Text · 707 B · b61ec81 Raw
21 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-apple-darwin10 | FileCheck %s3 4; Make sure we don't crash because we negated an fma when we didn't have any fma instructions.5 6define float @pr36553(float %a, float %b, float %c) nounwind {7; CHECK-LABEL: pr36553:8; CHECK:       ## %bb.0: ## %entry9; CHECK-NEXT:    pushq %rax10; CHECK-NEXT:    callq _fmaf11; CHECK-NEXT:    xorps {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm012; CHECK-NEXT:    popq %rax13; CHECK-NEXT:    retq14entry:15  %0 = tail call float @llvm.fma.f32(float %a, float %b, float %c)16  %sub = fsub float -0.000000e+00, %017  ret float %sub18}19 20declare float @llvm.fma.f32(float, float, float)21