diff options
author | Robert Lougher <rob.lougher@gmail.com> | 2019-03-20 19:05:05 +0000 |
---|---|---|
committer | Robert Lougher <rob.lougher@gmail.com> | 2019-03-20 19:05:05 +0000 |
commit | 364cb6b5d70ab8aadb564b7385d500c519aa4dfa (patch) | |
tree | 3c73d5f114fdae50006a10a71ac9c427cf9f8e97 | |
parent | 5e3a7698e80f8295b07a7a9f83f1ad701b2f7a3b (diff) | |
download | bcm5719-llvm-364cb6b5d70ab8aadb564b7385d500c519aa4dfa.tar.gz bcm5719-llvm-364cb6b5d70ab8aadb564b7385d500c519aa4dfa.zip |
[TailCallElim] Update tests for LTO pipeline change
D58391 changed the LTO pipelines to add the tailcall elimination pass.
This caused three LLD tests to fail.
Differential Revision: https://reviews.llvm.org/D59604
llvm-svn: 356593
-rw-r--r-- | lld/test/ELF/lto/defsym.ll | 14 | ||||
-rw-r--r-- | lld/test/ELF/lto/opt-remarks.ll | 2 | ||||
-rw-r--r-- | lld/test/ELF/lto/wrap-2.ll | 11 |
3 files changed, 8 insertions, 19 deletions
diff --git a/lld/test/ELF/lto/defsym.ll b/lld/test/ELF/lto/defsym.ll index 671f589da18..1073ab8820f 100644 --- a/lld/test/ELF/lto/defsym.ll +++ b/lld/test/ELF/lto/defsym.ll @@ -11,7 +11,7 @@ ; RUN: opt -module-summary %S/Inputs/defsym-bar.ll -o %t1.o ; RUN: ld.lld %t.o %t1.o -shared -o %t2.so -defsym=bar2=bar3 -save-temps ; RUN: llvm-readelf --symbols %t2.so1.lto.o | FileCheck --check-prefix=OBJ %s -; RUN: llvm-objdump -d %t2.so | FileCheck %s --check-prefix=THIN +; RUN: llvm-objdump -d %t2.so | FileCheck %s ; OBJ: UND bar2 @@ -19,17 +19,11 @@ ; Symbol bar3 should not be eliminated ; CHECK: foo: -; CHECK-NEXT: pushq %rax +; CHECK-NEXT: pushq %rax ; CHECK-NEXT: callq ; CHECK-NEXT: callq{{.*}}<bar3> -; CHECK-NEXT: callq - -; THIN: foo -; THIN-NEXT: pushq %rax -; THIN-NEXT: callq -; THIN-NEXT: callq{{.*}}<bar3> -; THIN-NEXT: popq %rax -; THIN-NEXT: jmp +; CHECK-NEXT: popq %rax +; CHECK-NEXT: jmp target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/lld/test/ELF/lto/opt-remarks.ll b/lld/test/ELF/lto/opt-remarks.ll index e37bfd345ac..cce886c6371 100644 --- a/lld/test/ELF/lto/opt-remarks.ll +++ b/lld/test/ELF/lto/opt-remarks.ll @@ -14,7 +14,7 @@ ; Check that @tinkywinky is inlined after optimizations. ; CHECK-LABEL: define i32 @main -; CHECK-NEXT: %a.i = call i32 @patatino() +; CHECK-NEXT: %a.i = {{.*}}call i32 @patatino() ; CHECK-NEXT: ret i32 %a.i ; CHECK-NEXT: } diff --git a/lld/test/ELF/lto/wrap-2.ll b/lld/test/ELF/lto/wrap-2.ll index 997725fb8de..0e8e31a597a 100644 --- a/lld/test/ELF/lto/wrap-2.ll +++ b/lld/test/ELF/lto/wrap-2.ll @@ -10,7 +10,7 @@ ; RUN: opt -module-summary %s -o %t.o ; RUN: opt -module-summary %S/Inputs/wrap-bar.ll -o %t1.o ; RUN: ld.lld %t.o %t1.o -shared -o %t.so -wrap=bar -; RUN: llvm-objdump -d %t.so | FileCheck %s -check-prefix=THIN +; RUN: llvm-objdump -d %t.so | FileCheck %s ; RUN: llvm-readobj -t %t.so | FileCheck -check-prefix=BIND %s ; Make sure that calls in foo() are not eliminated and that bar is @@ -19,13 +19,8 @@ ; CHECK: foo: ; CHECK-NEXT: pushq %rax ; CHECK-NEXT: callq{{.*}}<__wrap_bar> -; CHECK-NEXT: callq{{.*}}<bar> - -; THIN: foo: -; THIN-NEXT: pushq %rax -; THIN-NEXT: callq{{.*}}<__wrap_bar> -; THIN-NEXT: popq %rax -; THIN-NEXT: jmp{{.*}}<bar> +; CHECK-NEXT: popq %rax +; CHECK-NEXT: jmp{{.*}}<bar> ; Check that bar and __wrap_bar retain their original binding. ; BIND: Name: bar |