1 ; RUN: llc -march=hexagon < %s | FileCheck %s
3 target triple = "hexagon"
5 @g0 = common global [16 x i32] zeroinitializer, align 8
6 @g1 = internal global [16 x i32] zeroinitializer, align 8
10 ; Function Attrs: nounwind
11 define i32 @f0(i32 %a0) #0 {
13 call void @f1(ptr @g0, ptr @g1)
14 %v0 = getelementptr inbounds [16 x i32], ptr @g0, i32 0, i32 %a0
15 %v1 = load i32, ptr %v0, align 4
16 %v2 = getelementptr inbounds [16 x i32], ptr @g1, i32 0, i32 %a0
17 %v3 = load i32, ptr %v2, align 4
18 %v4 = add nsw i32 %v1, %v3
22 declare void @f1(ptr, ptr)
24 attributes #0 = { nounwind "target-cpu"="hexagonv55" }