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 (%s.0*, i32, i32), void (%s.0*, i32, i32)* @f0
12 ; Function Attrs: nounwind
13 define void @f0(%s.0* %a0, i32 %a1, i32 %a2) unnamed_addr #0 align 2 {
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
31 define internal void @f1() {
33 call void @e0(%s.0* @g0, i32 3, i32 7)
37 ; Function Attrs: nounwind
40 %v0 = alloca i32, align 4
45 define internal void @f3() {
51 attributes #0 = { nounwind }