diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-06 20:13:21 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-06 20:13:21 +0000 |
commit | 7e7b6700743285c0af506ac6299ddf82ebd434b9 (patch) | |
tree | 578d2ea1868b77f3dff145df7f8f3fe73272c09e /test/Bitcode | |
parent | 4b570baa7e867c652fa7d690585098278082fae9 (diff) |
Diffstat (limited to 'test/Bitcode')
-rw-r--r-- | test/Bitcode/summary_version.ll | 2 | ||||
-rw-r--r-- | test/Bitcode/thinlto-function-summary.ll | 2 | ||||
-rw-r--r-- | test/Bitcode/thinlto-summary-section.ll | 8 |
3 files changed, 7 insertions, 5 deletions
diff --git a/test/Bitcode/summary_version.ll b/test/Bitcode/summary_version.ll index dfb9e9b15e7b..81025a221bb1 100644 --- a/test/Bitcode/summary_version.ll +++ b/test/Bitcode/summary_version.ll @@ -2,7 +2,7 @@ ; RUN: opt -module-summary %s -o - | llvm-bcanalyzer -dump | FileCheck %s ; CHECK: <GLOBALVAL_SUMMARY_BLOCK -; CHECK: <VERSION op0=2/> +; CHECK: <VERSION op0=3/> diff --git a/test/Bitcode/thinlto-function-summary.ll b/test/Bitcode/thinlto-function-summary.ll index e42c55c1c2eb..594aaab566d1 100644 --- a/test/Bitcode/thinlto-function-summary.ll +++ b/test/Bitcode/thinlto-function-summary.ll @@ -10,7 +10,7 @@ ; BC-NEXT: <PERMODULE {{.*}} op0=1 op1=0 ; BC-NEXT: <PERMODULE {{.*}} op0=2 op1=0 ; BC-NEXT: <PERMODULE {{.*}} op0=3 op1=7 -; BC-NEXT: <PERMODULE {{.*}} op0=4 op1=32 +; BC-NEXT: <PERMODULE {{.*}} op0=4 op1=16 ; BC-NEXT: <ALIAS {{.*}} op0=5 op1=0 op2=3 ; BC-NEXT: </GLOBALVAL_SUMMARY_BLOCK ; BC-NEXT: <VALUE_SYMTAB diff --git a/test/Bitcode/thinlto-summary-section.ll b/test/Bitcode/thinlto-summary-section.ll index d120622db819..3d67279617ec 100644 --- a/test/Bitcode/thinlto-summary-section.ll +++ b/test/Bitcode/thinlto-summary-section.ll @@ -4,8 +4,10 @@ ; RUN: llvm-lto -thinlto -o %t2 %t.o ; RUN: llvm-bcanalyzer -dump %t2.thinlto.bc | FileCheck %s --check-prefix=COMBINED -; CHECK: <PERMODULE {{.*}} op1=16 -; COMBINED-DAG: <COMBINED {{.*}} op2=16 -define void @functionWithSection() section "some_section" { +; Flags should be 0x17 (23) for local linkage (0x3) and not being importable +; (0x10) due to local linkage plus having a section. +; CHECK: <PERMODULE {{.*}} op1=23 +; COMBINED-DAG: <COMBINED {{.*}} op2=23 +define internal void @functionWithSection() section "some_section" { ret void } |