1; RUN: llc -mcpu=bdver2 -mattr=-fma -mtriple=i686-apple-darwin < %s | FileCheck %s 2; RUN: llc -mcpu=bdver2 -mattr=-fma,-fma4 -mtriple=i686-apple-darwin < %s | FileCheck %s --check-prefix=CHECK-NOFMA 3 4; CHECK-LABEL: fmafunc 5define <3 x float> @fmafunc(<3 x float> %a, <3 x float> %b, <3 x float> %c) { 6 7; CHECK-NOT: vmulps 8; CHECK-NOT: vaddps 9; CHECK: vfmaddps 10; CHECK-NOT: vmulps 11; CHECK-NOT: vaddps 12 13; CHECK-NOFMA-NOT: calll 14; CHECK-NOFMA: vmulps 15; CHECK-NOFMA: vaddps 16; CHECK-NOFMA-NOT: calll 17 18 %ret = tail call <3 x float> @llvm.fmuladd.v3f32(<3 x float> %a, <3 x float> %b, <3 x float> %c) 19 ret <3 x float> %ret 20} 21 22declare <3 x float> @llvm.fmuladd.v3f32(<3 x float>, <3 x float>, <3 x float>) nounwind readnone 23