[ARM] Use symbolic register names in .cfi directives only with IAS (PR19110)
[oota-llvm.git] / test / CodeGen / ARM / fnmuls.ll
index 335153f0db65b925b4bf34e7d5c7612d52d43c91..3223885feda9020b0c5167a9432d329db9c51562 100644 (file)
@@ -1,16 +1,18 @@
-; XFAIL: *
-; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | grep -E {fnmuls\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 2
-; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,+neonfp | grep -E {fnmuls\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 2
-; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,-neonfp | grep -E {fnmuls\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 2
+; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s
+; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s
+; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s
+; RUN: llc < %s -march=arm -mcpu=cortex-a9 | FileCheck %s
 
-define float @test1(float %a, float %b) nounwind {
+define arm_aapcs_vfpcc float @test1(float %a, float %b) nounwind {
+; CHECK: vnmul.f32 s0, s0, s1 
 entry:
        %0 = fmul float %a, %b
-        %1 = fsub float 0.0, %0
+        %1 = fsub float -0.0, %0
        ret float %1
 }
 
-define float @test2(float %a, float %b) nounwind {
+define arm_aapcs_vfpcc float @test2(float %a, float %b) nounwind {
+; CHECK: vnmul.f32 s0, s0, s1 
 entry:
        %0 = fmul float %a, %b
         %1 = fmul float -1.0, %0