• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc -mtriple=i686-unknown-unknown -mattr=+avx512f < %s | FileCheck %s
3
4define float @test_x86_fma_intersection_fmf(float %a, float %b) nounwind {
5; CHECK-LABEL: test_x86_fma_intersection_fmf:
6; CHECK:       # %bb.0:
7; CHECK-NEXT:    pushl %eax
8; CHECK-NEXT:    vmovss {{.*#+}} xmm0 = mem[0],zero,zero,zero
9; CHECK-NEXT:    vfmadd132ss {{.*#+}} xmm0 = (xmm0 * mem) + xmm0
10; CHECK-NEXT:    vmovss %xmm0, (%esp)
11; CHECK-NEXT:    flds (%esp)
12; CHECK-NEXT:    popl %eax
13; CHECK-NEXT:    retl
14     %tmp8 = fmul fast float %a, %b
15     %tmp9 = fadd fast float %tmp8, %b
16     %tmp10 = insertelement <4 x float> undef, float  %tmp9, i32 1
17     %tmp11 = extractelement <4 x float> %tmp10, i32 1
18     ret float %tmp11
19}
20