mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-10 01:10:48 +00:00
55ec2218c4
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186163 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
744 B
LLVM
23 lines
744 B
LLVM
; RUN: llc -march=x86 -mcpu=bdver2 -mattr=-fma -mtriple=x86_64-apple-darwin < %s | FileCheck %s
|
|
; RUN: llc -march=x86 -mcpu=bdver2 -mattr=-fma,-fma4 -mtriple=x86_64-apple-darwin < %s | FileCheck %s --check-prefix=CHECK-NOFMA
|
|
|
|
; CHECK-LABEL: fmafunc
|
|
define <3 x float> @fmafunc(<3 x float> %a, <3 x float> %b, <3 x float> %c) {
|
|
|
|
; CHECK-NOT: vmulps
|
|
; CHECK-NOT: vaddps
|
|
; CHECK: vfmaddps
|
|
; CHECK-NOT: vmulps
|
|
; CHECK-NOT: vaddps
|
|
|
|
; CHECK-NOFMA-NOT: calll
|
|
; CHECK-NOFMA: vmulps
|
|
; CHECK-NOFMA: vaddps
|
|
; CHECK-NOFMA-NOT: calll
|
|
|
|
%ret = tail call <3 x float> @llvm.fmuladd.v3f32(<3 x float> %a, <3 x float> %b, <3 x float> %c)
|
|
ret <3 x float> %ret
|
|
}
|
|
|
|
declare <3 x float> @llvm.fmuladd.v3f32(<3 x float>, <3 x float>, <3 x float>) nounwind readnone
|