Krzysztof Parzyszek | 046090d | 2018-03-12 14:01:28 +0000 | [diff] [blame] | 1 | ; 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 | |
| 5 | target triple = "hexagon" |
| 6 | |
| 7 | %s.0 = type <{ i32, [2 x i8], [2 x i8] }> |
| 8 | |
| 9 | ; Function Attrs: nounwind optsize |
| 10 | define i32 @f0(i32 %a0) #0 { |
| 11 | b0: |
| 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 | |
| 18 | attributes #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"} |