1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Add a case for float just to make sure the patterns for both precisions

are matching

llvm-svn: 24718
This commit is contained in:
Nate Begeman 2005-12-14 22:51:13 +00:00
parent 40e397521c
commit ff176f341e

View File

@ -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 @@ 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
}