diff options
Diffstat (limited to 'llvm/test/CodeGen/SPARC/pic.ll')
-rw-r--r-- | llvm/test/CodeGen/SPARC/pic.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/SPARC/pic.ll b/llvm/test/CodeGen/SPARC/pic.ll new file mode 100644 index 00000000000..4edbffcc12b --- /dev/null +++ b/llvm/test/CodeGen/SPARC/pic.ll @@ -0,0 +1,14 @@ +; RUN: llc < %s -relocation-model=pic -mtriple=sparc | FileCheck %s + +@value = external global i32 + +define i32 @test() nounwind { +; CHECK: ld [%i0+value], %i0 +entry: + %0 = load i32, i32* @value + ret i32 %0 +} + +!llvm.module.flags = !{!0} + +!0 = !{i32 7, !"PIC Level", i32 1} |