brintos

brintos / llvm-project-archived public Read only

0
0
Text · 751 B · ae0360f Raw
26 lines · plain
1// RUN: llvm-mc -triple x86_64-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r - | FileCheck %s2 3// Test case for rdar://107432654 5// This tests that this expression does not cause a crash and produces two6// relocation entries:7// Relocation information (__TEXT,__text) 2 entries8// address  pcrel length extern type    scattered symbolnum/value9// 00000000 False long   True   SUB     False     _base10// 00000000 False long   True   UNSIGND False     _start_ap_211 12_base = .13 14.long (0x2000) + _start_ap_2 - _base 15.word 016 17_start_ap_2:18        cli19 20// CHECK: Relocations [21// CHECK:   Section __text {22// CHECK:     0x0 0 2 1 X86_64_RELOC_SUBTRACTOR 0 _base23// CHECK:     0x0 0 2 1 X86_64_RELOC_UNSIGNED 0 _start_ap_224// CHECK:   }25// CHECK: ]26