[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/fma.ll
Nate Begeman
natebegeman at mac.com
Wed Dec 14 14:51:24 PST 2005
Changes in directory llvm/test/Regression/CodeGen/PowerPC:
fma.ll updated: 1.4 -> 1.5
---
Log message:
Add a case for float just to make sure the patterns for both precisions
are matching
---
Diffs of the changes: (+7 -1)
fma.ll | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletion(-)
Index: llvm/test/Regression/CodeGen/PowerPC/fma.ll
diff -u llvm/test/Regression/CodeGen/PowerPC/fma.ll:1.4 llvm/test/Regression/CodeGen/PowerPC/fma.ll:1.5
--- llvm/test/Regression/CodeGen/PowerPC/fma.ll:1.4 Thu May 12 16:06:05 2005
+++ llvm/test/Regression/CodeGen/PowerPC/fma.ll Wed Dec 14 16:51:13 2005
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=ppc32 | egrep 'fn?madd|fn?msub' | wc -l | grep 7
+; RUN: llvm-as < %s | llc -march=ppc32 | egrep 'fn?madd|fn?msub' | wc -l | grep 8
double %test_FMADD1(double %A, double %B, double %C) {
%D = mul double %A, %B
@@ -38,3 +38,9 @@
%F = sub double -0.0, %E
ret double %F
}
+float %test_FNMSUBS(float %A, float %B, float %C) {
+ %D = mul float %A, %B
+ %E = sub float %D, %C
+ %F = sub float -0.0, %E
+ ret float %F
+}
More information about the llvm-commits
mailing list