1 ; RUN: llc -march=hexagon < %s | FileCheck %s
4 target triple = "hexagon-unknown-linux-gnu"
6 @g0 = common global [25000 x i32] zeroinitializer, align 8
7 @g1 = common global [25000 x i32] zeroinitializer, align 8
13 b1: ; preds = %b1, %b0
14 %v0 = phi i32 [ 0, %b0 ], [ %v3, %b1 ]
15 %v1 = getelementptr inbounds [25000 x i32], ptr @g0, i32 0, i32 %v0
16 store i32 %v0, ptr %v1, align 4
17 %v2 = getelementptr inbounds [25000 x i32], ptr @g1, i32 0, i32 %v0
18 store i32 %v0, ptr %v2, align 4
19 %v3 = add nsw i32 %v0, 1
20 %v4 = icmp eq i32 %v3, 25000
21 br i1 %v4, label %b2, label %b1
27 attributes #0 = { nounwind "target-cpu"="hexagonv5" }