summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/fnmuls.ll
blob: 7130aa6be65b335df2d6300b2fcb55410dae4bfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; XFAIL: *
; 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 1
; 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 1
; 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 1

define float @test(float %a, float %b) {
entry:
	%0 = fmul float %a, %b
        %1 = fsub float 0.0, %0
	ret float %1
}