1 ; RUN: llc -march=hexagon < %s | FileCheck %s
3 @g0 = external global i32
4 @g1 = external global i32
5 @g2 = external global i32
7 ; CHECK: allocframe(r29,
8 ; CHECK: dealloc_return
11 ; Function Attrs: nounwind
14 %v0 = alloca i32, align 4
15 %v1 = load i32, ptr @g0, align 4
16 store i32 %v1, ptr %v0, align 4
17 %v2 = load i32, ptr %v0, align 4
18 %v3 = load i32, ptr @g1, align 4
19 %v4 = mul nsw i32 %v2, %v3
20 %v5 = load i32, ptr @g2, align 4
21 %v6 = add nsw i32 %v4, %v5
22 store i32 %v6, ptr %v0, align 4
23 %v7 = load i32, ptr %v0, align 4
27 attributes #0 = { nounwind "frame-pointer"="all" }