Guard fabs to bfc convert with V6T2 flag
[oota-llvm.git] / test / CodeGen / ARM / unsafe-fsub.ll
1 ; RUN: llc -march=arm -mcpu=cortex-a9 < %s | FileCheck -check-prefix=SAFE %s
2 ; RUN: llc -march=arm -mcpu=cortex-a9 -enable-unsafe-fp-math < %s | FileCheck -check-prefix=FAST %s
3
4 target triple = "armv7-apple-ios"
5
6 ; SAFE: test
7 ; FAST: test
8 define float @test(float %x, float %y) {
9 entry:
10 ; SAFE: vmul.f32
11 ; SAFE: vsub.f32
12 ; FAST: mov r0, #0
13   %0 = fmul float %x, %y
14   %1 = fsub float %0, %0
15   ret float %1
16 }
17
18