switch the flag for using NEON for SP floating point to a subtarget 'feature'.
[oota-llvm.git] / test / CodeGen / ARM / fsubs.ll
1 ; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s -check-prefix=VFP2
2 ; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s -check-prefix=NFP1
3 ; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s -check-prefix=NFP0
4
5 define float @test(float %a, float %b) {
6 entry:
7         %0 = fsub float %a, %b
8         ret float %0
9 }
10
11 ; VFP2: vsub.f32        s0, s1, s0
12 ; NFP1: vsub.f32        d0, d1, d0
13 ; NFP0: vsub.f32        s0, s1, s0