26 lines · plain
1## Check that we don't accidentally strip addr32 prefix2 3# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o4# RUN: ld.lld %t.o -o %t.exe -nostdlib5# RUN: llvm-objdump -d %t.exe | FileCheck %s6# RUN: llvm-bolt %t.exe -o %t.out --lite=0 --x86-strip-redundant-address-size=false7# RUN: llvm-objdump -d %t.out | FileCheck %s8# CHECK: 67 e8 {{.*}} addr32 callq {{.*}} <foo>9# RUN: llvm-bolt %t.exe -o %t.out --lite=0 --x86-strip-redundant-address-size=true10# remove test name from objdump output, to only search for addr32 in disassembly11# RUN: llvm-objdump -d %t.out | grep -v addr32.s | FileCheck %s --check-prefix=CHECK-STRIP12# CHECK-STRIP-NOT: addr3213 14.globl _start15.type _start, @function16_start:17.code6418 addr32 callq foo19 ret20 .size _start, .-_start21 22.globl foo23.type foo, @function24foo:25 ud226