blob: 5690a01d750b473ded9c030a4bc4789ce9d9739b [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=arm -mattr=+vfp2 | grep -E {fabss\\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
3; RUN: llc < %s -march=arm -mattr=+neon -arm-use-neon-fp=0 | grep -E {fabss\\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
5; RUN: llc < %s -march=arm -mcpu=cortex-a9 | grep -E {fabss\\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)