blob: 46f136ba1fefb250c52efa2b0bd689394a0a4aa6 [file] [log] [blame]
Jim Grosbache5165492009-11-09 00:11:35 +00001; RUN: llc < %s -march=arm -mattr=+vfp2 | grep -E {vabs.f32\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
David Goodwin9843a932009-10-01 22:19:57 +00002; RUN: llc < %s -march=arm -mattr=+neon -arm-use-neon-fp=1 | grep -E {vabs.f32\\W*d\[0-9\]+,\\W*d\[0-9\]+} | count 1
Jim Grosbache5165492009-11-09 00:11:35 +00003; RUN: llc < %s -march=arm -mattr=+neon -arm-use-neon-fp=0 | grep -E {vabs.f32\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
Dan Gohmanfce288f2009-09-09 00:09:15 +00004; RUN: llc < %s -march=arm -mcpu=cortex-a8 | grep -E {vabs.f32\\W*d\[0-9\]+,\\W*d\[0-9\]+} | count 1
Jim Grosbache5165492009-11-09 00:11:35 +00005; RUN: llc < %s -march=arm -mcpu=cortex-a9 | grep -E {vabs.f32\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
David Goodwin53e44712009-08-04 20:39:05 +00006
7define float @test(float %a, float %b) {
8entry:
9 %dum = fadd float %a, %b
10 %0 = tail call float @fabsf(float %dum)
11 %dum1 = fadd float %0, %b
12 ret float %dum1
13}
14
15declare float @fabsf(float)