1; RUN: llc -march=hexagon < %s | FileCheck %s
2; CHECK-NOT: pcrelR0
3
4target triple = "hexagon"
5
6%s.0 = type { i32, i32 }
7
8@g0 = global %s.0 zeroinitializer, align 4
9
10@e0 = alias void (%s.0*, i32, i32), void (%s.0*, i32, i32)* @f0
11
12; Function Attrs: nounwind
13define void @f0(%s.0* %a0, i32 %a1, i32 %a2) unnamed_addr #0 align 2 {
14b0:
15  %v0 = alloca %s.0*, align 4
16  %v1 = alloca i32, align 4
17  %v2 = alloca i32, align 4
18  store %s.0* %a0, %s.0** %v0, align 4
19  store i32 %a1, i32* %v1, align 4
20  store i32 %a2, i32* %v2, align 4
21  %v3 = load %s.0*, %s.0** %v0
22  %v4 = getelementptr inbounds %s.0, %s.0* %v3, i32 0, i32 0
23  %v5 = load i32, i32* %v2, align 4
24  store i32 %v5, i32* %v4, align 4
25  %v6 = getelementptr inbounds %s.0, %s.0* %v3, i32 0, i32 1
26  %v7 = load i32, i32* %v1, align 4
27  store i32 %v7, i32* %v6, align 4
28  ret void
29}
30
31define internal void @f1() {
32b0:
33  call void @e0(%s.0* @g0, i32 3, i32 7)
34  ret void
35}
36
37; Function Attrs: nounwind
38define i32 @f2() #0 {
39b0:
40  %v0 = alloca i32, align 4
41  store i32 0, i32* %v0
42  ret i32 0
43}
44
45define internal void @f3() {
46b0:
47  call void @f1()
48  ret void
49}
50
51attributes #0 = { nounwind }
52