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
6 ;MACHO: .set _offsetSym0, _s
7 ;MACHO: .globl _offsetSym1
8 ;MACHO: .alt_entry _offsetSym1
9 ;MACHO: .set _offsetSym1, _s+8
11 ;ELF: .globl offsetSym0
13 ;ELF: .set offsetSym0, s
14 ;ELF: .globl offsetSym1
16 ;ELF: .set 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, ptr @s
22 @offsetSym1 = alias i32, ptr getelementptr inbounds (%struct.S1, ptr @s, i64 0, i32 2)