diff options
author | Evan Cheng <evan.cheng@apple.com> | 2012-04-11 01:03:11 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2012-04-11 01:03:11 +0000 |
commit | a0908d0a44f05f0d48ed98be94358c4921e59aa0 (patch) | |
tree | 618167ef663406ad8461c14de42b47fc4cc4b1c5 /test/CodeGen | |
parent | a69da35c127dd7e35ae6216d965670643dc55bb6 (diff) | |
download | external_llvm-a0908d0a44f05f0d48ed98be94358c4921e59aa0.zip external_llvm-a0908d0a44f05f0d48ed98be94358c4921e59aa0.tar.gz external_llvm-a0908d0a44f05f0d48ed98be94358c4921e59aa0.tar.bz2 |
Merge fma.ll into fusedMAC.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154466 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/ARM/fma.ll | 30 | ||||
-rw-r--r-- | test/CodeGen/ARM/fusedMAC.ll | 28 |
2 files changed, 28 insertions, 30 deletions
diff --git a/test/CodeGen/ARM/fma.ll b/test/CodeGen/ARM/fma.ll deleted file mode 100644 index ff8aa34..0000000 --- a/test/CodeGen/ARM/fma.ll +++ /dev/null @@ -1,30 +0,0 @@ -; RUN: llc < %s -mtriple=thumbv7-apple-ios -mattr=+vfp4 | FileCheck %s - -define float @test_f32(float %a, float %b, float %c) nounwind readnone ssp { -entry: -; CHECK: test_f32 -; CHECK: vfma.f32 - %call = tail call float @llvm.fma.f32(float %a, float %b, float %c) nounwind readnone - ret float %call -} - -define double @test_f64(double %a, double %b, double %c) nounwind readnone ssp { -entry: -; CHECK: test_f64 -; CHECK: vfma.f64 - %call = tail call double @llvm.fma.f64(double %a, double %b, double %c) nounwind readnone - ret double %call -} - -define <2 x float> @test_v2f32(<2 x float> %a, <2 x float> %b, <2 x float> %c) nounwind readnone ssp { -entry: -; CHECK: test_v2f32 -; CHECK: vfma.f32 - %0 = tail call <2 x float> @llvm.fma.v2f32(<2 x float> %a, <2 x float> %b, <2 x float> %c) nounwind - ret <2 x float> %0 -} - -declare float @llvm.fma.f32(float, float, float) nounwind readnone -declare double @llvm.fma.f64(double, double, double) nounwind readnone - -declare <2 x float> @llvm.fma.v2f32(<2 x float>, <2 x float>, <2 x float>) nounwind readnone diff --git a/test/CodeGen/ARM/fusedMAC.ll b/test/CodeGen/ARM/fusedMAC.ll index 40e8bb2..381eb43 100644 --- a/test/CodeGen/ARM/fusedMAC.ll +++ b/test/CodeGen/ARM/fusedMAC.ll @@ -98,3 +98,31 @@ define <4 x float> @fusedMACTest12(<4 x float> %a, <4 x float> %b) { %sub = fsub <4 x float> %a, %mul ret <4 x float> %sub } + +define float @test_f32(float %a, float %b, float %c) nounwind readnone ssp { +entry: +; CHECK: test_f32 +; CHECK: vfma.f32 + %call = tail call float @llvm.fma.f32(float %a, float %b, float %c) nounwind readnone + ret float %call +} + +define double @test_f64(double %a, double %b, double %c) nounwind readnone ssp { +entry: +; CHECK: test_f64 +; CHECK: vfma.f64 + %call = tail call double @llvm.fma.f64(double %a, double %b, double %c) nounwind readnone + ret double %call +} + +define <2 x float> @test_v2f32(<2 x float> %a, <2 x float> %b, <2 x float> %c) nounwind readnone ssp { +entry: +; CHECK: test_v2f32 +; CHECK: vfma.f32 + %0 = tail call <2 x float> @llvm.fma.v2f32(<2 x float> %a, <2 x float> %b, <2 x float> %c) nounwind + ret <2 x float> %0 +} + +declare float @llvm.fma.f32(float, float, float) nounwind readnone +declare double @llvm.fma.f64(double, double, double) nounwind readnone +declare <2 x float> @llvm.fma.v2f32(<2 x float>, <2 x float>, <2 x float>) nounwind readnone |