match a reassociated form of fnmul

llvm-svn: 36659
This commit is contained in:
Chris Lattner 2007-05-03 00:31:40 +00:00
parent f65f18b2f9
commit 483dc2bf08
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6,+vfp2 | grep fnmuld
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6,+vfp2 -enable-sign-dependent-rounding-fp-math | grep fmul
define double @t1(double %a, double %b) {
entry:
%tmp2 = sub double -0.000000e+00, %a ; <double> [#uses=1]
%tmp4 = mul double %tmp2, %b ; <double> [#uses=1]
ret double %tmp4
}