[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/fma.ll
Nate Begeman
natebegeman at mac.com
Sat Apr 9 01:30:10 PDT 2005
Changes in directory llvm/test/Regression/CodeGen/PowerPC:
fma.ll updated: 1.1 -> 1.2
---
Log message:
Add cases to cover the rest of the patterns we should be matching
---
Diffs of the changes: (+16 -6)
fma.ll | 22 ++++++++++++++++------
1 files changed, 16 insertions(+), 6 deletions(-)
Index: llvm/test/Regression/CodeGen/PowerPC/fma.ll
diff -u llvm/test/Regression/CodeGen/PowerPC/fma.ll:1.1 llvm/test/Regression/CodeGen/PowerPC/fma.ll:1.2
--- llvm/test/Regression/CodeGen/PowerPC/fma.ll:1.1 Fri Apr 8 23:01:32 2005
+++ llvm/test/Regression/CodeGen/PowerPC/fma.ll Sat Apr 9 03:29:59 2005
@@ -1,6 +1,11 @@
-; RUN: llvm-as < %s | llc -march=ppc32 -enable-ppc-pattern-isel | grep 'fn\?madd\|fn\?msub' | wc -l | grep 5
+; RUN: llvm-as < %s | llc -march=ppc32 -enable-ppc-pattern-isel | grep 'fn\?madd\|fn\?msub' | wc -l | grep 7
-double %test_FMADD(double %A, double %B, double %C) {
+double %test_FMADD1(double %A, double %B, double %C) {
+ %D = mul double %A, %B
+ %E = add double %D, %C
+ ret double %E
+}
+double %test_FMADD2(double %A, double %B, double %C) {
%D = mul double %A, %B
%E = add double %D, %C
ret double %E
@@ -12,19 +17,24 @@
}
double %test_FNMADD1(double %A, double %B, double %C) {
%D = mul double %A, %B
- %E = sub double %D, %C
+ %E = add double %D, %C
%F = sub double -0.0, %E
ret double %F
}
double %test_FNMADD2(double %A, double %B, double %C) {
%D = mul double %A, %B
- %E = add double %D, %C
+ %E = add double %C, %D
%F = sub double -0.0, %E
ret double %F
}
-double %test_FNMADD3(double %A, double %B, double %C) {
+double %test_FNMSUB1(double %A, double %B, double %C) {
%D = mul double %A, %B
- %E = add double %C, %D
+ %E = sub double %C, %D
+ ret double %E
+}
+double %test_FNMSUB2(double %A, double %B, double %C) {
+ %D = mul double %A, %B
+ %E = sub double %D, %C
%F = sub double -0.0, %E
ret double %F
}
More information about the llvm-commits
mailing list