]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - test/CodeGen/ARM/2013-02-27-expand-vfma.ll
0e3bf2371061cde67df16e602869a31dcddebc71
[opencl/llvm.git] / test / CodeGen / ARM / 2013-02-27-expand-vfma.ll
1 ; RUN: llc < %s -mtriple=armv7-apple-darwin | FileCheck %s
2 ; RUN: llc < %s -mtriple=armv7s-apple-darwin | FileCheck %s -check-prefix=VFP4
4 define <4 x float> @muladd(<4 x float> %a, <4 x float> %b, <4 x float> %c) nounwind {
5 ; CHECK: muladd:
6 ; CHECK: fmaf
7 ; CHECK: fmaf
8 ; CHECK: fmaf
9 ; CHECK: fmaf
10 ; CHECK-NOT: fmaf
12 ; CHECK-VFP4: vfma.f32
13   %tmp = tail call <4 x float> @llvm.fma.v4f32(<4 x float> %b, <4 x float> %c, <4 x float> %a) #2
14   ret <4 x float> %tmp
15 }
17 declare <4 x float> @llvm.fma.v4f32(<4 x float>, <4 x float>, <4 x float>) #1
19 define <2 x float> @muladd2(<2 x float> %a, <2 x float> %b, <2 x float> %c) nounwind {
20 ; CHECK: muladd2:
21 ; CHECK: fmaf
22 ; CHECK: fmaf
23 ; CHECK-NOT: fmaf
25 ; CHECK-VFP4: vfma.f32
26   %tmp = tail call <2 x float> @llvm.fma.v2f32(<2 x float> %b, <2 x float> %c, <2 x float> %a) #2
27   ret <2 x float> %tmp
28 }
30 declare <2 x float> @llvm.fma.v2f32(<2 x float>, <2 x float>, <2 x float>) #1