mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
32b30a3c23
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
41 lines
1004 B
LLVM
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
|
|
}
|