blob: 5c31ea641de49b0187333d1f3474079dc440b7b1 [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=arm -mattr=+vfp2 | grep -E {fmacs\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
Jim Grosbach8cd0a8c2009-10-31 22:57:36 +00002; RUN: llc < %s -march=arm -mattr=+neon -arm-use-neon-fp=1 | grep -E {vmul.f32\\W*d\[0-9\]+,\\W*d\[0-9\]+,\\W*d\[0-9\]+} | count 1
David Goodwin9843a932009-10-01 22:19:57 +00003; RUN: llc < %s -march=arm -mattr=+neon -arm-use-neon-fp=0 | grep -E {fmacs\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
Jim Grosbach8cd0a8c2009-10-31 22:57:36 +00004; RUN: llc < %s -march=arm -mcpu=cortex-a8 | grep -E {vmul.f32\\W*d\[0-9\]+,\\W*d\[0-9\]+,\\W*d\[0-9\]+} | count 1
Dan Gohmanfce288f2009-09-09 00:09:15 +00005; RUN: llc < %s -march=arm -mcpu=cortex-a9 | grep -E {fmacs\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
David Goodwin42a83f22009-08-04 17:53:06 +00006
7define float @test(float %acc, float %a, float %b) {
8entry:
9 %0 = fmul float %a, %b
10 %1 = fadd float %acc, %0
11 ret float %1
12}
13