[BOLT][TEST] Adjust tests for BOLT_CLANG_EXE=clang-{6..9}

Fix tests to pass with clang-6..9 on Ubuntu 20.04.

Reviewed By: yota9

Differential Revision: https://reviews.llvm.org/D118282
This commit is contained in:
Amir Ayupov 2022-01-26 17:08:13 -08:00
parent 11fb049954
commit 5c238be04b
2 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,7 @@ CHECK-NEXT: DW_AT_low_pc (0x0000000000000000)
CHECK-NEXT: DW_AT_ranges
CHECK-NEXT: [0x0000000000[[#%x,ADDR:]],
CHECK-SAME: 0x0000000000[[#ADDR+1]]))
CHECK-NEXT: DW_AT_name ("{{.*}}/asm_foo.s")
CHECK-NEXT: DW_AT_name ("{{.*}}asm_foo.s")
# Check .debug_aranges was updated for asm module
CHECK: .debug_aranges contents:

View File

@ -1,6 +1,8 @@
# Check that secondary entry points are updated correctly in the ELF symtab
RUN: %clang %p/Inputs/user-order.S -Wl,-q -o %t.exe -nostdlib
RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown \
RUN: %p/Inputs/user-order.S -o %t.o
RUN: ld.lld %t.o --emit-relocs --nostdlib -o %t.exe
RUN: llvm-bolt %t.exe -o %t -reorder-functions=user \
RUN: -function-order=%p/Inputs/order.txt