[llvm-commits] [llvm] r154466 - in /llvm/trunk/test/CodeGen/ARM: fma.ll fusedMAC.ll

Evan Cheng evan.cheng at apple.com
Tue Apr 10 18:03:11 PDT 2012


Author: evancheng
Date: Tue Apr 10 20:03:11 2012
New Revision: 154466

URL: http://llvm.org/viewvc/llvm-project?rev=154466&view=rev
Log:
Merge fma.ll into fusedMAC.ll

Removed:
    llvm/trunk/test/CodeGen/ARM/fma.ll
Modified:
    llvm/trunk/test/CodeGen/ARM/fusedMAC.ll

Removed: llvm/trunk/test/CodeGen/ARM/fma.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/fma.ll?rev=154465&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/fma.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/fma.ll (removed)
@@ -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

Modified: llvm/trunk/test/CodeGen/ARM/fusedMAC.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/fusedMAC.ll?rev=154466&r1=154465&r2=154466&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/fusedMAC.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/fusedMAC.ll Tue Apr 10 20:03:11 2012
@@ -98,3 +98,31 @@
   %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





More information about the llvm-commits mailing list