1 # Check that references to local (unnamed) objects below are not
2 # treated as references relative to zero-sized A object.
4 # REQUIRES: system-linux
6 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown \
8 # RUN: %clang %cflags -no-pie %t.o -o %t.exe -Wl,-q
10 # RUN: llvm-bolt %t.exe --print-cfg \
11 # RUN: --print-only=main -o %t.out | FileCheck %s
29 .type inc_dup, @function
34 .cfi_def_cfa_offset 16
37 .cfi_def_cfa_register 6
45 movq
.L4(,%rax,8), %rax
102 .size inc_dup, .-inc_dup
108 .type main, @function
110 # CHECK: Binary Function "main" after building cfg
114 .cfi_def_cfa_offset 16
117 .cfi_def_cfa_register 6
119 # We should not reference a data object as an offset from A
120 # CHECK-NOT: movl A+{{.*}}(%rip), %eax
136 .ident "GCC: (GNU) 4.8.5 20150623 (Red Hat 4.8.5-44)"
137 .section .note.GNU-stack,"",@progbits