blob: 4b5bd13481da3569235c1de48e47117641e6a299 [file] [log] [blame]
David Goodwin53e44712009-08-04 20:39:05 +00001; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | grep -E {fabss\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
2; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,+neonfp | grep -E {vabs.f32\\W*d\[0-9\]+,\\W*d\[0-9\]+} | count 1
3; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,-neonfp | grep -E {fabss\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
4
5define float @test(float %a, float %b) {
6entry:
7 %dum = fadd float %a, %b
8 %0 = tail call float @fabsf(float %dum)
9 %dum1 = fadd float %0, %b
10 ret float %dum1
11}
12
13declare float @fabsf(float)