23 lines · plain
1; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck --check-prefix=MACHO %s2; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck --check-prefix=ELF %s3 4;MACHO: .globl _offsetSym05;MACHO-NOT: .alt_entry6;MACHO: _offsetSym0 = _s7;MACHO: .globl _offsetSym18;MACHO: .alt_entry _offsetSym19;MACHO: _offsetSym1 = _s+810 11;ELF: .globl offsetSym012;ELF-NOT: .alt_entry13;ELF: offsetSym0 = s14;ELF: .globl offsetSym115;ELF-NOT: .alt_entry16;ELF: offsetSym1 = s+817 18%struct.S1 = type { i32, i32, i32 }19 20@s = global %struct.S1 { i32 31, i32 32, i32 33 }, align 421@offsetSym0 = alias i32, ptr @s22@offsetSym1 = alias i32, ptr getelementptr inbounds (%struct.S1, ptr @s, i64 0, i32 2)23