Convert tests using "| wc -l | grep ..." to use the count script.
[oota-llvm.git] / test / CodeGen / PowerPC / fma.ll
index ed93633f7f61723f94a39a391b0e7eeb7f255f1b..da571f667269bc72af0f16d9b8326fdaa5898738 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-as < %s | llc -march=ppc32 | grep 'fn\?madd\|fn\?msub' | wc -l | grep 7
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
+; RUN:   egrep {fn?madd|fn?msub} | count 8
 
 double %test_FMADD1(double %A, double %B, double %C) {
        %D = mul double %A, %B
@@ -38,3 +39,9 @@ double %test_FNMSUB2(double %A, double %B, double %C) {
        %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
+}