blob: 5338f44e979fbdf7b6cf92dc2f24992f47cccf54 [file] [log] [blame]
David Goodwin42a83f22009-08-04 17:53:06 +00001; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | grep -E {fmscs\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
2; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,+neonfp | grep -E {fmscs\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
3; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,-neonfp | grep -E {fmscs\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
4
5define float @test(float %acc, float %a, float %b) {
6entry:
7 %0 = fmul float %a, %b
8 %1 = fsub float %0, %acc
9 ret float %1
10}
11