23 lines · plain
1; RUN: llc -mtriple=hexagon-- -mcpu=hexagonv5 -relocation-model=pic < %s | FileCheck %s2 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)6 7@dst = external global i328@src = external global i329 10define i32 @foo() nounwind {11entry:12 %0 = load i32, ptr @src, align 4, !tbaa !013 store i32 %0, ptr @dst, align 4, !tbaa !014 %call = tail call i32 @baz(i32 %0) nounwind15 ret i32 016}17 18declare i32 @baz(i32)19 20!0 = !{!"int", !1}21!1 = !{!"omnipotent char", !2}22!2 = !{!"Simple C/C++ TBAA"}23