Remove neonfp attribute and instead set default based on CPU string. Add -arm-use...
[oota-llvm.git] / test / CodeGen / ARM / fabss.ll
1 ; RUN: llc < %s -march=arm -mattr=+vfp2 | grep -E {fabss\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
2 ; 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
4 ; 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
6
7 define float @test(float %a, float %b) {
8 entry:
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
15 declare float @fabsf(float)