xref: /llvm-project/llvm/test/CodeGen/SPARC/pic.ll (revision ff9af4c43ad71eeba2cabe99609cfaa0fd54c1d0)
1; RUN: llc < %s -relocation-model=pic -mtriple=sparc | FileCheck %s
2
3@value = external global i32
4
5define i32 @test() nounwind {
6; CHECK:    ld [%i0+value], %i0
7entry:
8  %0 = load i32, ptr @value
9  ret i32 %0
10}
11
12!llvm.module.flags = !{!0}
13
14!0 = !{i32 7, !"PIC Level", i32 1}
15