Improve tests.
[oota-llvm.git] / test / CodeGen / ARM / fnmscs.ll
1 ; XFAIL: *
2 ; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | grep -E {fnmscs\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 2
3 ; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,+neonfp | grep -E {fnmscs\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 2
4 ; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,-neonfp | grep -E {fnmscs\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 2
5
6 define float @test1(float %acc, float %a, float %b) {
7 entry:
8         %0 = fmul float %a, %b
9         %1 = fsub float 0.0, %0
10         %2 = fsub float %1, %acc
11         ret float %2
12 }
13
14 define float @test2(float %acc, float %a, float %b) {
15 entry:
16         %0 = fmul float %a, %b
17         %1 = fmul float -1.0, %0
18         %2 = fsub float %1, %acc
19         ret float %2
20 }
21