41 lines · plain
1; RUN: opt -relocation-model pic -mtriple=hexagon -mcpu=hexagonv60 -O2 -S < %s | llc -mcpu=hexagonv60 -relocation-model pic2 3; CHECK: jumpr4 5target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048"6target triple = "hexagon-unknown--elf"7 8; Function Attrs: nounwind9define void @hex_h.s0.__outermost(i32 %h.stride.114) #0 {10entry:11 br i1 undef, label %"for h.s0.y.preheader", label %call_destructor.exit, !prof !112 13call_destructor.exit: ; preds = %entry14 ret void15 16"for h.s0.y.preheader": ; preds = %entry17 %tmp22.us = mul i32 undef, %h.stride.11418 br label %"for h.s0.x.x.us"19 20"for h.s0.x.x.us": ; preds = %"for h.s0.x.x.us", %"for h.s0.y.preheader"21 %h.s0.x.x.us = phi i32 [ %5, %"for h.s0.x.x.us" ], [ 0, %"for h.s0.y.preheader" ]22 %0 = shl nsw i32 %h.s0.x.x.us, 523 %1 = add i32 %0, %tmp22.us24 %2 = add nsw i32 %1, 1625 %3 = getelementptr inbounds i32, ptr null, i32 %226 %4 = bitcast ptr %3 to ptr27 store <16 x i32> zeroinitializer, ptr %4, align 4, !tbaa !228 %5 = add nuw nsw i32 %h.s0.x.x.us, 129 br label %"for h.s0.x.x.us"30}31 32attributes #0 = { nounwind }33 34!llvm.ident = !{!0, !0, !0, !0, !0, !0, !0, !0, !0, !0, !0, !0, !0, !0, !0, !0}35 36!0 = !{!"Clang $LLVM_VERSION_MAJOR.$LLVM_VERSION_MINOR (based on LLVM 3.9.0)"}37!1 = !{!"branch_weights", i32 1073741824, i32 0}38!2 = !{!3, !3, i64 0}39!3 = !{!"h", !4}40!4 = !{!"Halide buffer"}41