brintos

brintos / llvm-project-archived public Read only

0
0
Text · 623 B · 2196a56 Raw
26 lines · plain
1; RUN: llc -mtriple=hexagon -O2 -relocation-model=pic < %s | FileCheck %s2; CHECK: add({{pc|PC}},##_GLOBAL_OFFSET_TABLE_@PCREL)3; CHECK: call g1@GDPLT4; CHECK: call g0@GDPLT5 6@g0 = external thread_local global i327@g1 = external thread_local global i328 9; Function Attrs: nounwind10define i32 @f0() #0 {11b0:12  %v0 = load i32, ptr @g1, align 4, !tbaa !013  store i32 %v0, ptr @g0, align 4, !tbaa !014  tail call void @f1(i32 %v0) #015  ret i32 016}17 18declare void @f1(i32)19 20attributes #0 = { nounwind "target-cpu"="hexagonv5" }21 22!0 = !{!1, !1, i64 0}23!1 = !{!"int", !2}24!2 = !{!"omnipotent char", !3}25!3 = !{!"Simple C/C++ TBAA"}26