Home | History | Annotate | Download | only in ARM
      1 ; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s
      2 
      3 define float @f1(float %a) {
      4 ; CHECK: f1:
      5 ; CHECK: mov r0, #0
      6         ret float 0.000000e+00
      7 }
      8 
      9 define float @f2(float* %v, float %u) {
     10 ; CHECK: f2:
     11 ; CHECK: vldr.32{{.*}}[
     12         %tmp = load float* %v           ; <float> [#uses=1]
     13         %tmp1 = fadd float %tmp, %u              ; <float> [#uses=1]
     14         ret float %tmp1
     15 }
     16 
     17 define void @f3(float %a, float %b, float* %v) {
     18 ; CHECK: f3:
     19 ; CHECK: vstr.32{{.*}}[
     20         %tmp = fadd float %a, %b         ; <float> [#uses=1]
     21         store float %tmp, float* %v
     22         ret void
     23 }
     24