xref: /llvm-project/llvm/test/CodeGen/X86/x86-64-pic.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic | FileCheck %s
2
3@g1 = private global i8 1
4define ptr @get_g1() {
5; CHECK: get_g1:
6; CHECK: leaq .Lg1(%rip), %rax
7  ret ptr @g1
8}
9