diff options
| author | Teresa Johnson <tejohnson@google.com> | 2018-06-04 23:05:24 +0000 |
|---|---|---|
| committer | Teresa Johnson <tejohnson@google.com> | 2018-06-04 23:05:24 +0000 |
| commit | e2e630b01bdb5d9ec99774c37ec93a8c2d7e232e (patch) | |
| tree | ec06d7b1ead7431f8ba91ffdbbf18f08ae9982f6 | |
| parent | 10d25ffe7da7b9b3fb7ba881e89c383d94a15ce2 (diff) | |
| download | bcm5719-llvm-e2e630b01bdb5d9ec99774c37ec93a8c2d7e232e.tar.gz bcm5719-llvm-e2e630b01bdb5d9ec99774c37ec93a8c2d7e232e.zip | |
[ThinLTO] Add testing of new summary index format to a couple CFI tests
Summary:
Adds testing of combined index summary entries in disassembly format
to CFI tests that were already testing the bitcode format.
Depends on D46699.
Reviewers: pcc
Subscribers: mehdi_amini, inglorion, eraman, cfe-commits
Differential Revision: https://reviews.llvm.org/D46700
llvm-svn: 333966
| -rw-r--r-- | clang/test/CodeGen/thinlto-distributed-cfi-devirt.ll | 5 | ||||
| -rw-r--r-- | clang/test/CodeGen/thinlto-distributed-cfi.ll | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGen/thinlto-distributed-cfi-devirt.ll b/clang/test/CodeGen/thinlto-distributed-cfi-devirt.ll index aaec1aeb6ce..c4a31644974 100644 --- a/clang/test/CodeGen/thinlto-distributed-cfi-devirt.ll +++ b/clang/test/CodeGen/thinlto-distributed-cfi-devirt.ll @@ -29,6 +29,11 @@ ; CHECK: blob data = '_ZTS1A_ZN1A1nEi' ; CHECK-LABEL: </STRTAB_BLOCK +; RUN: llvm-dis %t.o.thinlto.bc -o - | FileCheck %s --check-prefix=CHECK-DIS +; CHECK-DIS: ^0 = module: (path: "{{.*}}thinlto-distributed-cfi-devirt.ll.tmp.o", hash: ({{.*}}, {{.*}}, {{.*}}, {{.*}}, {{.*}})) +; CHECK-DIS: ^1 = gv: (guid: 8346051122425466633, summaries: (function: (module: ^0, flags: (linkage: external, notEligibleToImport: 0, live: 1, dsoLocal: 0), insts: 18, typeIdInfo: (typeTests: (^2), typeCheckedLoadVCalls: (vFuncId: (^2, offset: 8), vFuncId: (^2, offset: 0)))))) +; CHECK-DIS: ^2 = typeid: (name: "_ZTS1A", summary: (typeTestRes: (kind: allOnes, sizeM1BitWidth: 7), wpdResolutions: ((offset: 0, wpdRes: (kind: branchFunnel)), (offset: 8, wpdRes: (kind: singleImpl, singleImplName: "_ZN1A1nEi"))))) ; guid = 7004155349499253778 + ; RUN: %clang_cc1 -triple x86_64-grtev4-linux-gnu \ ; RUN: -emit-obj -fthinlto-index=%t.o.thinlto.bc \ ; RUN: -emit-llvm -o - -x ir %t.o | FileCheck %s --check-prefixes=CHECK-IR diff --git a/clang/test/CodeGen/thinlto-distributed-cfi.ll b/clang/test/CodeGen/thinlto-distributed-cfi.ll index 5e8e39d7d7f..d0ff1c3f96f 100644 --- a/clang/test/CodeGen/thinlto-distributed-cfi.ll +++ b/clang/test/CodeGen/thinlto-distributed-cfi.ll @@ -20,6 +20,11 @@ ; CHECK: blob data = '_ZTS1A' ; CHECK-LABEL: </STRTAB_BLOCK +; RUN: llvm-dis %t.o.thinlto.bc -o - | FileCheck %s --check-prefix=CHECK-DIS +; CHECK-DIS: ^0 = module: (path: "{{.*}}thinlto-distributed-cfi.ll.tmp.o", hash: ({{.*}}, {{.*}}, {{.*}}, {{.*}}, {{.*}})) +; CHECK-DIS: ^1 = gv: (guid: 8346051122425466633, summaries: (function: (module: ^0, flags: (linkage: external, notEligibleToImport: 0, live: 1, dsoLocal: 0), insts: 7, typeIdInfo: (typeTests: (^2))))) +; CHECK-DIS: ^2 = typeid: (name: "_ZTS1A", summary: (typeTestRes: (kind: single, sizeM1BitWidth: 0))) ; guid = 7004155349499253778 + ; RUN: %clang_cc1 -triple x86_64-grtev4-linux-gnu \ ; RUN: -emit-obj -fthinlto-index=%t.o.thinlto.bc \ ; RUN: -emit-llvm -o - -x ir %t.o | FileCheck %s --check-prefixes=CHECK-IR |

