Home | History | Annotate | Download | only in Hexagon
      1 ; RUN: true
      2 ; DISABLED: llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s
      3 ; CHECK: __hexagon_addsf3
      4 ; CHECK: __hexagon_subsf3
      5 
      6 define void @foo(float* %acc, float %num, float %num2) nounwind {
      7 entry:
      8   %acc.addr = alloca float*, align 4
      9   %num.addr = alloca float, align 4
     10   %num2.addr = alloca float, align 4
     11   store float* %acc, float** %acc.addr, align 4
     12   store float %num, float* %num.addr, align 4
     13   store float %num2, float* %num2.addr, align 4
     14   %0 = load float** %acc.addr, align 4
     15   %1 = load float* %0
     16   %2 = load float* %num.addr, align 4
     17   %add = fadd float %1, %2
     18   %3 = load float* %num2.addr, align 4
     19   %sub = fsub float %add, %3
     20   %4 = load float** %acc.addr, align 4
     21   store float %sub, float* %4
     22   ret void
     23 }
     24