mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-12 15:30:56 +00:00
36f6df78ad
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185958 91177308-0d34-0410-b5e6-96231b3b80d8
29 lines
855 B
LLVM
29 lines
855 B
LLVM
; RUN: llc -march=x86 -mattr=+fma4 -mtriple=x86_64-apple-darwin < %s | FileCheck %s
|
|
; RUN: llc -march=x86 -mattr=-fma,-fma4 -mtriple=x86_64-apple-darwin < %s | FileCheck %s --check-prefix=CHECK-NOFMA
|
|
|
|
; CHECK: fmafunc
|
|
define <16 x float> @fmafunc(<16 x float> %a, <16 x float> %b, <16 x float> %c) {
|
|
|
|
; CHECK-NOT: vmulps
|
|
; CHECK-NOT: vaddps
|
|
; CHECK: vfmaddps
|
|
; 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
|
|
; CHECK-NOFMA: vmulps
|
|
; CHECK-NOFMA: vaddps
|
|
; CHECK-NOFMA-NOT: calll
|
|
|
|
%ret = tail call <16 x float> @llvm.fmuladd.v16f32(<16 x float> %a, <16 x float> %b, <16 x float> %c)
|
|
ret <16 x float> %ret
|
|
}
|
|
|
|
declare <16 x float> @llvm.fmuladd.v16f32(<16 x float>, <16 x float>, <16 x float>) nounwind readnone
|