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(i32* getelementptr inbounds ([16 x i32], [16 x i32]* @g0, i32 0, i32 0), i32* getelementptr inbounds ([16 x i32], [16 x i32]* @g1, i32 0, i32 0))
14 %v0 = getelementptr inbounds [16 x i32], [16 x i32]* @g0, i32 0, i32 %a0
15 %v1 = load i32, i32* %v0, align 4
16 %v2 = getelementptr inbounds [16 x i32], [16 x i32]* @g1, i32 0, i32 %a0
17 %v3 = load i32, i32* %v2, align 4
18 %v4 = add nsw i32 %v1, %v3
22 declare void @f1(i32*, i32*)
24 attributes #0 = { nounwind "target-cpu"="hexagonv55" }