1 ; RUN: llc -march=hexagon < %s | FileCheck %s
3 ; This test checks to see if, after lowering the two loads below, we set up the
4 ; memrefs of the resulting load MIs correctly, so that they are packetized
8 ; CHECK: r{{[0-9]*}} = memw(r1{{[678]}}+#0)
9 ; CHECK-NEXT: r{{[0-9]*}} = memw(r1{{[678]}}+#0)
11 ; Function Attrs: nounwind
12 define i64 @f0(ptr nocapture %a0, ptr nocapture %a1, ptr nocapture %a2) #0 {
14 %v0 = tail call i32 @f1() #0
15 store i32 %v0, ptr %a2, align 4, !tbaa !0
16 %v1 = load i32, ptr %a0, align 4, !tbaa !0
17 %v2 = sext i32 %v1 to i64
18 %v3 = load i32, ptr %a1, align 4, !tbaa !0
19 %v4 = sext i32 %v3 to i64
20 %v5 = mul nsw i64 %v4, %v2
26 attributes #0 = { nounwind }
30 !2 = !{!"omnipotent char", !3}
31 !3 = !{!"Simple C/C++ TBAA"}