1 ; RUN: llc -march=hexagon < %s | FileCheck %s
4 target triple = "hexagon"
6 %s.0 = type { i32, i32 }
8 @g0 = global %s.0 zeroinitializer, align 4
10 @e0 = alias void (ptr, i32, i32), ptr @f0
12 ; Function Attrs: nounwind
13 define void @f0(ptr %a0, i32 %a1, i32 %a2) unnamed_addr #0 align 2 {
15 %v0 = alloca ptr, align 4
16 %v1 = alloca i32, align 4
17 %v2 = alloca i32, align 4
18 store ptr %a0, ptr %v0, align 4
19 store i32 %a1, ptr %v1, align 4
20 store i32 %a2, ptr %v2, align 4
21 %v3 = load ptr, ptr %v0
22 %v5 = load i32, ptr %v2, align 4
23 store i32 %v5, ptr %v3, align 4
24 %v6 = getelementptr inbounds %s.0, ptr %v3, i32 0, i32 1
25 %v7 = load i32, ptr %v1, align 4
26 store i32 %v7, ptr %v6, align 4
30 define internal void @f1() {
32 call void @e0(ptr @g0, i32 3, i32 7)
36 ; Function Attrs: nounwind
39 %v0 = alloca i32, align 4
44 define internal void @f3() {
50 attributes #0 = { nounwind }