5dd2aa9d2f1b0f92efe000351454c9a8fb9b3db0
[oota-llvm.git] / test / CodeGen / ARM / fnmuls.ll
1 ; XFAIL: *
2 ; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | grep -E {fnmuls\\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 {fnmuls\\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 {fnmuls\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 2
5 ; RUN: llvm-as < %s | llc -march=arm -mcpu=cortex-a8 | grep -E {fnmuls\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 2
6 ; RUN: llvm-as < %s | llc -march=arm -mcpu=cortex-a9 | grep -E {fnmuls\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 2
7
8 define float @test1(float %a, float %b) nounwind {
9 entry:
10         %0 = fmul float %a, %b
11         %1 = fsub float -0.0, %0
12         ret float %1
13 }
14
15 define float @test2(float %a, float %b) nounwind {
16 entry:
17         %0 = fmul float %a, %b
18         %1 = fmul float -1.0, %0
19         ret float %1
20 }
21