X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FThumb2%2Fcortex-fp.ll;h=5548492ed09810d05dc0f26d48be6aba00daee9f;hb=7e657c85c6360ca0adcbda29ed26347a2cd9ae55;hp=ba891d081eda6c971b5c82de3edaf70086271777;hpb=fcba5e6b645df89ae6b93911fe0f80b08fa6b44c;p=oota-llvm.git diff --git a/test/CodeGen/Thumb2/cortex-fp.ll b/test/CodeGen/Thumb2/cortex-fp.ll index ba891d081ed..5548492ed09 100644 --- a/test/CodeGen/Thumb2/cortex-fp.ll +++ b/test/CodeGen/Thumb2/cortex-fp.ll @@ -1,24 +1,27 @@ -; RUN: llc < %s -march=thumb -mcpu=cortex-m3 | FileCheck %s -check-prefix=CORTEXM3 -; RUN: llc < %s -march=thumb -mcpu=cortex-m4 | FileCheck %s -check-prefix=CORTEXM4 -; RUN: llc < %s -march=thumb -mcpu=cortex-a8 | FileCheck %s -check-prefix=CORTEXA8 +; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -march=thumb -mcpu=cortex-m3 | FileCheck %s -check-prefix=CHECK -check-prefix=CORTEXM3 +; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -march=thumb -mcpu=cortex-m4 | FileCheck %s -check-prefix=CHECK -check-prefix=CORTEXM4 +; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -march=thumb -mcpu=cortex-m7 | FileCheck %s -check-prefix=CHECK -check-prefix=CORTEXM7 +; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -march=thumb -mcpu=cortex-a8 | FileCheck %s -check-prefix=CHECK -check-prefix=CORTEXA8 define float @foo(float %a, float %b) { entry: -; CHECK: foo -; CORTEXM3: blx ___mulsf3 -; CORTEXM4: vmul.f32 s0, s1, s0 -; CORTEXA8: vmul.f32 d0, d1, d0 +; CHECK-LABEL: foo: +; CORTEXM3: bl ___mulsf3 +; CORTEXM4: vmul.f32 s +; CORTEXM7: vmul.f32 s +; CORTEXA8: vmul.f32 d %0 = fmul float %a, %b ret float %0 } define double @bar(double %a, double %b) { entry: -; CHECK: bar +; CHECK-LABEL: bar: %0 = fmul double %a, %b -; CORTEXM3: blx ___muldf3 -; CORTEXM4: blx ___muldf3 -; CORTEXA8: vmul.f64 d0, d1, d0 +; CORTEXM3: bl ___muldf3 +; CORTEXM4: {{bl|b.w}} ___muldf3 +; CORTEXM7: vmul.f64 d +; CORTEXA8: vmul.f64 d ret double %0 }