]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/X86/ga-offset2.ll
Vendor import of llvm trunk r291274:
[FreeBSD/FreeBSD.git] / test / CodeGen / X86 / ga-offset2.ll
1 ; RUN: llc < %s -mtriple=i686-apple-darwin -relocation-model=dynamic-no-pic | FileCheck %s
2
3 @var = external hidden global i32
4 @p = external hidden global i32*
5
6 define void @f() {
7 ; CHECK:  movl    $_var+40, _p
8   store i32* getelementptr (i32, i32* @var, i64 10), i32** @p
9   ret void
10 }