Home | History | Annotate | Download | only in Hexagon
      1 ; RUN: llc -march=hexagon < %s | FileCheck %s
      2 ; CHECK-NOT: ={{.*}}add
      3 ; CHECK-NOT: mem{{[bdhwu]}}
      4 
      5 define void @main() #0 {
      6 entry:
      7   br label %body
      8 
      9 body:
     10   %ip_vec30 = phi <2 x i32> [ %ip_vec, %body ], [ zeroinitializer, %entry ]
     11   %scevgep.phi = phi i32* [ %scevgep.inc, %body ], [ undef, %entry ]
     12   %polly.indvar = phi i32 [ %polly.indvar_next, %body ], [ 0, %entry ]
     13   %vector_ptr = bitcast i32* %scevgep.phi to <2 x i32>*
     14   %_p_vec_full = load <2 x i32>, <2 x i32>* %vector_ptr, align 8
     15   %ip_vec = add <2 x i32> %_p_vec_full, %ip_vec30
     16   %polly.indvar_next = add nsw i32 %polly.indvar, 2
     17   %polly.loop_cond = icmp slt i32 %polly.indvar, 4
     18   %scevgep.inc = getelementptr i32, i32* %scevgep.phi, i32 2
     19   br i1 %polly.loop_cond, label %body, label %exit
     20 
     21 exit:
     22   %0 = extractelement <2 x i32> %ip_vec, i32 1
     23   ret void
     24 
     25 }
     26 
     27 attributes #0 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" }
     28 
     29 !0 = !{!"int", !1}
     30 !1 = !{!"omnipotent char", !2}
     31 !2 = !{!"Simple C/C++ TBAA"}
     32