1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck --check-prefix=MACHO %s 2*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck --check-prefix=ELF %s 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker;MACHO: .globl _offsetSym0 5*9880d681SAndroid Build Coastguard Worker;MACHO-NOT: .alt_entry 6*9880d681SAndroid Build Coastguard Worker;MACHO: _offsetSym0 = _s 7*9880d681SAndroid Build Coastguard Worker;MACHO: .globl _offsetSym1 8*9880d681SAndroid Build Coastguard Worker;MACHO: .alt_entry _offsetSym1 9*9880d681SAndroid Build Coastguard Worker;MACHO: _offsetSym1 = _s+8 10*9880d681SAndroid Build Coastguard Worker 11*9880d681SAndroid Build Coastguard Worker;ELF: .globl offsetSym0 12*9880d681SAndroid Build Coastguard Worker;ELF-NOT: .alt_entry 13*9880d681SAndroid Build Coastguard Worker;ELF: offsetSym0 = s 14*9880d681SAndroid Build Coastguard Worker;ELF: .globl offsetSym1 15*9880d681SAndroid Build Coastguard Worker;ELF-NOT: .alt_entry 16*9880d681SAndroid Build Coastguard Worker;ELF: offsetSym1 = s+8 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Worker%struct.S1 = type { i32, i32, i32 } 19*9880d681SAndroid Build Coastguard Worker 20*9880d681SAndroid Build Coastguard Worker@s = global %struct.S1 { i32 31, i32 32, i32 33 }, align 4 21*9880d681SAndroid Build Coastguard Worker@offsetSym0 = alias i32, i32* getelementptr inbounds (%struct.S1, %struct.S1* @s, i64 0, i32 0) 22*9880d681SAndroid Build Coastguard Worker@offsetSym1 = alias i32, i32* getelementptr inbounds (%struct.S1, %struct.S1* @s, i64 0, i32 2) 23