Guard fabs to bfc convert with V6T2 flag
[oota-llvm.git] / test / CodeGen / ARM / fsubs.ll
index bea8d5f4f30bc3d79007693d3b6bcc9ef92f5ee2..baff34ab31fcf8056dfc567c8efbf83b538dd373 100644 (file)
@@ -1,6 +1,17 @@
-; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s -check-prefix=VFP2
-; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s -check-prefix=NFP1
-; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s -check-prefix=NFP0
+; RUN: llc -mtriple=arm-eabi -mattr=+vfp2 %s -o - \
+; RUN:  | FileCheck %s -check-prefix=VFP2
+
+; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 %s -o - \
+; RUN:  | FileCheck %s -check-prefix=NFP1
+
+; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 --enable-unsafe-fp-math %s -o - \
+; RUN:  | FileCheck %s -check-prefix=NFP1U
+
+; RUN: llc -mtriple=arm-darwin -mcpu=cortex-a8 %s -o - \
+; RUN:  | FileCheck %s -check-prefix=NFP1U
+
+; RUN: llc -mtriple=arm-eabi -mattr=+neon %s -o - \
+; RUN:  | FileCheck %s -check-prefix=NFP0
 
 define float @test(float %a, float %b) {
 entry:
@@ -8,6 +19,7 @@ entry:
        ret float %0
 }
 
-; VFP2: vsub.f32       s0, s1, s0
-; NFP1: vsub.f32       d0, d1, d0
-; NFP0: vsub.f32       s0, s1, s0
+; VFP2: vsub.f32       s
+; NFP1U: vsub.f32      d
+; NFP1: vsub.f32       s
+; NFP0: vsub.f32       s