blob: b954584f57d9773dc0d8687aecacc8e10c425a52 [file] [log] [blame]
Krzysztof Parzyszek046090d2018-03-12 14:01:28 +00001; RUN: opt -Os -march=hexagon -S < %s | FileCheck %s
2; Don't reset the alignment on the struct to 1.
3; CHECK: align 4
4
5target triple = "hexagon"
6
7%s.0 = type <{ i32, [2 x i8], [2 x i8] }>
8
9; Function Attrs: nounwind optsize
10define i32 @f0(i32 %a0) #0 {
11b0:
12 %v0 = inttoptr i32 %a0 to %s.0*
13 %v1 = getelementptr inbounds %s.0, %s.0* %v0, i32 0, i32 0
14 %v2 = load volatile i32, i32* %v1, align 4, !tbaa !0
15 ret i32 %v2
16}
17
18attributes #0 = { nounwind optsize }
19
20!0 = !{!1, !1, i64 0}
21!1 = !{!"int", !2}
22!2 = !{!"omnipotent char", !3}
23!3 = !{!"Simple C/C++ TBAA"}