llvm-6502/test/CodeGen/PowerPC/fma.ll
John Criswell 32b30a3c23 Fix this test on Solaris.
Solaris grep is more traditional and (AFAIK) does not support regexs.
Also, single quotes should disable all shell interpretation, so no
backslashes should be needed (and, in fact, keep Solaris from working).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21902 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-12 21:06:05 +00:00

41 lines
1004 B
LLVM

; RUN: llvm-as < %s | llc -march=ppc32 | egrep 'fn?madd|fn?msub' | wc -l | grep 7
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
}
double %test_FMSUB(double %A, double %B, double %C) {
%D = mul double %A, %B
%E = sub double %D, %C
ret double %E
}
double %test_FNMADD1(double %A, double %B, double %C) {
%D = mul double %A, %B
%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 %C, %D
%F = sub double -0.0, %E
ret double %F
}
double %test_FNMSUB1(double %A, double %B, double %C) {
%D = mul double %A, %B
%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
}