Home | History | Annotate | Download | only in ARM
      1 ; RUN: llc -mtriple=armv7-linux-gnueabihf %s -o - | FileCheck %s --check-prefix=CHECK-HARD
      2 ; RUN: llc -mtriple=armv7-linux-eabihf %s -o - | FileCheck %s --check-prefix=CHECK-HARD
      3 ; RUN: llc -mtriple=armv7-linux-gnueabihf -float-abi=soft %s -o - | FileCheck %s --check-prefix=CHECK-SOFT
      4 ; RUN: llc -mtriple=armv7-linux-gnueabi %s -o - | FileCheck %s --check-prefix=CHECK-SOFT
      5 ; RUN: llc -mtriple=armv7-linux-eabi -float-abi=hard %s -o - | FileCheck %s --check-prefix=CHECK-HARD
      6 ; RUN: llc -mtriple=thumbv7-apple-ios6.0 %s -o - | FileCheck %s --check-prefix=CHECK-SOFT
      7 
      8 define float @test_abi(float %lhs, float %rhs) {
      9   %sum = fadd float %lhs, %rhs
     10   ret float %sum
     11 
     12 ; CHECK-HARD-LABEL: test_abi:
     13 ; CHECK-HARD-NOT: vmov
     14 ; CHECK-HARD: vadd.f32 s0, s0, s1
     15 ; CHECK-HARD-NOT: vmov
     16 
     17 ; CHECK-SOFT-LABEL: test_abi:
     18 ; CHECK-SOFT-DAG: vmov [[LHS:s[0-9]+]], r0
     19 ; CHECK-SOFT-DAG: vmov [[RHS:s[0-9]+]], r1
     20 ; CHECK-SOFT: vadd.f32 [[DEST:s[0-9]+]], [[LHS]], [[RHS]]
     21 ; CHECK-SOFT: vmov r0, [[DEST]]
     22 }
     23