1 ; RUN: llc -mtriple=hexagon-- -mcpu=hexagonv5 -relocation-model=pic < %s | FileCheck %s
3 ; CHECK: r{{[0-9]+}} = add({{pc|PC}},##_GLOBAL_OFFSET_TABLE_@PCREL)
4 ; CHECK: r{{[0-9]+}} = memw(r{{[0-9]+}}+##src@GOT)
5 ; CHECK: r{{[0-9]+}} = memw(r{{[0-9]+}}+##dst@GOT)
7 @dst = external global i32
8 @src = external global i32
10 define i32 @foo() nounwind {
12 %0 = load i32, i32* @src, align 4, !tbaa !0
13 store i32 %0, i32* @dst, align 4, !tbaa !0
14 %call = tail call i32 @baz(i32 %0) nounwind
21 !1 = !{!"omnipotent char", !2}
22 !2 = !{!"Simple C/C++ TBAA"}