[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / MachO / i386-large-relocations.s
blobe8805d37e4a1c1d4bcaec88f76259cb58da523bf
1 // RUN: llvm-mc -triple i386-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r | FileCheck %s
3 .space 0x1ed280
4 .section __DATA,__const
5 .align 4
6 .space 0x5181020
7 _foo:
8 .long _bar
9 .long 0
10 .long _bar+8
11 .long _bar+24
12 .long 0
13 .long _bar+16
15 .zerofill __DATA,__bss,__dummy,0x5d780
16 .zerofill __DATA,__bss,_bar,48,4
18 // Normally scattered relocations are used for sym+offset expressions. When
19 // the value exceeds 24-bits, however, it's outside what MachO can encode,
20 // so the assembler falls back to non-scattered relocations.
21 // rdar://12358909
23 // CHECK: Relocations [
24 // CHECK: Section __const {
25 // CHECK: 0x5181034 0 2 0 GENERIC_RELOC_VANILLA 0 __bss
26 // CHECK: 0x518102C 0 2 0 GENERIC_RELOC_VANILLA 0 __bss
27 // CHECK: 0x5181028 0 2 0 GENERIC_RELOC_VANILLA 0 __bss
28 // CHECK: 0x5181020 0 2 0 GENERIC_RELOC_VANILLA 0 __bss
29 // CHECK: }
30 // CHECK: ]