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
3
4;MACHO: .globl _offsetSym0
5;MACHO-NOT: .alt_entry
6;MACHO: .set _offsetSym0, _s
7;MACHO: .globl _offsetSym1
8;MACHO: .alt_entry _offsetSym1
9;MACHO: .set _offsetSym1, _s+8
10
11;ELF: .globl offsetSym0
12;ELF-NOT: .alt_entry
13;ELF: .set offsetSym0, s
14;ELF: .globl offsetSym1
15;ELF-NOT: .alt_entry
16;ELF: .set offsetSym1, s+8
17
18%struct.S1 = type { i32, i32, i32 }
19
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)
23