[PowerPC] Recommit r314244 with refactoring and off by default
[llvm-core.git] / test / CodeGen / X86 / alias-gep.ll
blob5ecf20ba78ed58c1f3272ed9fb74ed33917a30e6
1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck --check-prefix=MACHO %s
2 ; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck --check-prefix=ELF %s
4 ;MACHO: .globl _offsetSym0
5 ;MACHO-NOT: .alt_entry
6 ;MACHO: _offsetSym0 = _s
7 ;MACHO: .globl _offsetSym1
8 ;MACHO: .alt_entry _offsetSym1
9 ;MACHO: _offsetSym1 = _s+8
11 ;ELF: .globl offsetSym0
12 ;ELF-NOT: .alt_entry
13 ;ELF: offsetSym0 = s
14 ;ELF: .globl offsetSym1
15 ;ELF-NOT: .alt_entry
16 ;ELF: offsetSym1 = s+8
18 %struct.S1 = type { i32, i32, i32 }
20 @s = global %struct.S1 { i32 31, i32 32, i32 33 }, align 4
21 @offsetSym0 = alias i32, i32* getelementptr inbounds (%struct.S1, %struct.S1* @s, i64 0, i32 0)
22 @offsetSym1 = alias i32, i32* getelementptr inbounds (%struct.S1, %struct.S1* @s, i64 0, i32 2)