1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mcpu=bdver2 -mattr=-fma -mtriple=i686-apple-darwin < %s | FileCheck %s
3 ; RUN: llc -mcpu=bdver2 -mattr=-fma,-fma4 -mtriple=i686-apple-darwin < %s | FileCheck %s --check-prefix=CHECK-NOFMA
5 define <3 x float> @fmafunc(<3 x float> %a, <3 x float> %b, <3 x float> %c) {
6 ; CHECK-LABEL: fmafunc:
8 ; CHECK-NEXT: vfmaddps {{.*#+}} xmm0 = (xmm0 * xmm1) + xmm2
11 ; CHECK-NOFMA-LABEL: fmafunc:
12 ; CHECK-NOFMA: ## %bb.0:
13 ; CHECK-NOFMA-NEXT: vmulps %xmm1, %xmm0, %xmm0
14 ; CHECK-NOFMA-NEXT: vaddps %xmm2, %xmm0, %xmm0
15 ; CHECK-NOFMA-NEXT: retl
16 %ret = tail call <3 x float> @llvm.fmuladd.v3f32(<3 x float> %a, <3 x float> %b, <3 x float> %c)
20 declare <3 x float> @llvm.fmuladd.v3f32(<3 x float>, <3 x float>, <3 x float>) nounwind readnone