Author: Fangrui Song Date: 2020-07-21T10:20:56-07:00 New Revision: 8f8ec9927623eb54f003993b3d8411fc0130ca90
URL: https://github.com/llvm/llvm-project/commit/8f8ec9927623eb54f003993b3d8411fc0130ca90 DIFF: https://github.com/llvm/llvm-project/commit/8f8ec9927623eb54f003993b3d8411fc0130ca90.diff LOG: [LLVMgold.so][test] Fix tests after D84132/55fa315b0352 (cherry picked from commit aa830e9768303ff8d27c015759294c4ce704d50c) Added: Modified: llvm/test/tools/gold/X86/cache.ll llvm/test/tools/gold/X86/emit-llvm.ll llvm/test/tools/gold/X86/relax-relocs.ll Removed: ################################################################################ diff --git a/llvm/test/tools/gold/X86/cache.ll b/llvm/test/tools/gold/X86/cache.ll index 4446aa6d8878..5ab556302558 100644 --- a/llvm/test/tools/gold/X86/cache.ll +++ b/llvm/test/tools/gold/X86/cache.ll @@ -67,8 +67,7 @@ ; With save-temps we can confirm that the cached files were copied into temp ; files to avoid a race condition with the cached files being pruned, since the ; gold plugin-api only accepts native objects passed back as files. -; RUN: ls %t4.o.o1 -; RUN: ls %t4.o.o2 +; RUN: ls %t4.o.lto.o1 %t4.o.lto.o2 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/tools/gold/X86/emit-llvm.ll b/llvm/test/tools/gold/X86/emit-llvm.ll index 8bab561889ae..f1f6b22a9c3c 100644 --- a/llvm/test/tools/gold/X86/emit-llvm.ll +++ b/llvm/test/tools/gold/X86/emit-llvm.ll @@ -12,7 +12,7 @@ ; RUN: llvm-dis %t3.o.0.2.internalize.bc -o - | FileCheck %s ; RUN: llvm-dis %t3.o.0.4.opt.bc -o - | FileCheck --check-prefix=OPT %s ; RUN: llvm-dis %t3.o.0.4.opt.bc -o - | FileCheck --check-prefix=OPT2 %s -; RUN: llvm-nm %t3.o.o | FileCheck --check-prefix=NM %s +; RUN: llvm-nm %t3.o.lto.o | FileCheck --check-prefix=NM %s ; RUN: rm -f %t4.o ; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \ diff --git a/llvm/test/tools/gold/X86/relax-relocs.ll b/llvm/test/tools/gold/X86/relax-relocs.ll index f62125c48d1f..3ad79f73cb84 100644 --- a/llvm/test/tools/gold/X86/relax-relocs.ll +++ b/llvm/test/tools/gold/X86/relax-relocs.ll @@ -2,7 +2,7 @@ ; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \ ; RUN: --plugin-opt=save-temps \ ; RUN: -shared %t.o -o %t.so -; RUN: llvm-readobj -r %t.so.o | FileCheck %s +; RUN: llvm-readobj -r %t.so.lto.o | FileCheck %s ; Test that we produce R_X86_64_GOTPCREL instead of R_X86_64_GOTPCRELX ; CHECK: R_X86_64_GOTPCREL foo _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits