diff options
author | Teresa Johnson <tejohnson@google.com> | 2016-08-31 16:15:39 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2016-08-31 16:15:39 +0000 |
commit | 8068cc68f7c17f8b3170969d51b90d471b71c7ec (patch) | |
tree | b6e8d5fe846baf9f963db1d60cc3ec6e24bf815e /llvm | |
parent | dc124996d2a84a07cbfe0e8902fd5e6b2b4e18f0 (diff) | |
download | bcm5719-llvm-8068cc68f7c17f8b3170969d51b90d471b71c7ec.tar.gz bcm5719-llvm-8068cc68f7c17f8b3170969d51b90d471b71c7ec.zip |
[LTO] Fix common test to reflect r279911 and move to X86 subdirectory
Adjust the test to reflect the changes to common handling in r279911.
This test wasn't running due to an incorrect REQUIRES and thus missed
being modified for r279911 before. It was changed to XFAIL when the
bad REQUIRES was discovered.
Remove the XFAIL and move to a new X86 subdirectory that will properly
disable on non-X86.
llvm-svn: 280256
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/test/tools/llvm-lto2/X86/Inputs/common.ll (renamed from llvm/test/tools/llvm-lto2/Inputs/common.ll) | 0 | ||||
-rw-r--r-- | llvm/test/tools/llvm-lto2/X86/common.ll (renamed from llvm/test/tools/llvm-lto2/common.ll) | 21 | ||||
-rw-r--r-- | llvm/test/tools/llvm-lto2/X86/lit.local.cfg | 3 |
3 files changed, 15 insertions, 9 deletions
diff --git a/llvm/test/tools/llvm-lto2/Inputs/common.ll b/llvm/test/tools/llvm-lto2/X86/Inputs/common.ll index 577e9977ac0..577e9977ac0 100644 --- a/llvm/test/tools/llvm-lto2/Inputs/common.ll +++ b/llvm/test/tools/llvm-lto2/X86/Inputs/common.ll diff --git a/llvm/test/tools/llvm-lto2/common.ll b/llvm/test/tools/llvm-lto2/X86/common.ll index 09e98427b10..61806190cc4 100644 --- a/llvm/test/tools/llvm-lto2/common.ll +++ b/llvm/test/tools/llvm-lto2/X86/common.ll @@ -1,4 +1,3 @@ -; XFAIL: * ; RUN: llvm-as < %s > %t1.bc ; RUN: llvm-as < %p/Inputs/common.ll > %t2.bc @@ -10,7 +9,7 @@ ; RUN: -r %t2.bc,v,px \ ; RUN: -r %t1.bc,foo,px \ ; RUN: -r %t2.bc,bar,px -; RUN: llvm-dis < %t.o.0.0.preopt.bc | FileCheck %s +; RUN: llvm-dis < %t.o.0.0.preopt.bc | FileCheck %s --check-prefix=LARGE-PREVAILED ; Same as before, but reversing the order of the inputs ; RUN: llvm-lto2 %t2.bc %t1.bc -o %t.o -save-temps \ @@ -18,7 +17,7 @@ ; RUN: -r %t2.bc,v,px \ ; RUN: -r %t1.bc,foo,px \ ; RUN: -r %t2.bc,bar,px -; RUN: llvm-dis < %t.o.0.0.preopt.bc | FileCheck %s +; RUN: llvm-dis < %t.o.0.0.preopt.bc | FileCheck %s --check-prefix=LARGE-PREVAILED ; Client marked the "small with large alignment" one as prevailing @@ -27,7 +26,7 @@ ; RUN: -r %t2.bc,v,x \ ; RUN: -r %t1.bc,foo,px \ ; RUN: -r %t2.bc,bar,px -; RUN: llvm-dis < %t.o.0.0.preopt.bc | FileCheck %s +; RUN: llvm-dis < %t.o.0.0.preopt.bc | FileCheck %s --check-prefix=SMALL-PREVAILED ; Same as before, but reversing the order of the inputs ; RUN: llvm-lto2 %t2.bc %t1.bc -o %t.o -save-temps \ @@ -35,7 +34,7 @@ ; RUN: -r %t2.bc,v,x \ ; RUN: -r %t1.bc,foo,px \ ; RUN: -r %t2.bc,bar,px -; RUN: llvm-dis < %t.o.0.0.preopt.bc | FileCheck %s +; RUN: llvm-dis < %t.o.0.0.preopt.bc | FileCheck %s --check-prefix=SMALL-PREVAILED ; Client didn't mark any as prevailing, we keep the first one we see as "external" @@ -44,7 +43,7 @@ ; RUN: -r %t2.bc,v,x \ ; RUN: -r %t1.bc,foo,px \ ; RUN: -r %t2.bc,bar,px -; RUN: llvm-dis < %t.o.0.0.preopt.bc | FileCheck %s +; RUN: llvm-dis < %t.o.0.0.preopt.bc | FileCheck %s --check-prefix=NONE-PREVAILED1 ; Same as before, but reversing the order of the inputs ; RUN: llvm-lto2 %t2.bc %t1.bc -o %t.o -save-temps \ @@ -52,14 +51,18 @@ ; RUN: -r %t2.bc,v,x \ ; RUN: -r %t1.bc,foo,px \ ; RUN: -r %t2.bc,bar,px -; RUN: llvm-dis < %t.o.0.0.preopt.bc | FileCheck %s +; RUN: llvm-dis < %t.o.0.0.preopt.bc | FileCheck %s --check-prefix=NONE-PREVAILED2 target triple = "x86_64-apple-macosx10.11.0" @v = common global i8 0, align 8 - -; CHECK: @v = common global [2 x i8] zeroinitializer, align 8 +; LARGE-PREVAILED: @v = common global i16 0, align 8 +; SMALL-PREVAILED: @v = common global [2 x i8] zeroinitializer, align 8 +; In this case the first was kept as external, but we created a new merged +; common due to the second requiring a larger size: +; NONE-PREVAILED1: @v = common global [2 x i8] zeroinitializer, align 8 +; NONE-PREVAILED2: @v = external global i16, align 8 define i8 *@foo() { ret i8 *@v diff --git a/llvm/test/tools/llvm-lto2/X86/lit.local.cfg b/llvm/test/tools/llvm-lto2/X86/lit.local.cfg new file mode 100644 index 00000000000..b7447615816 --- /dev/null +++ b/llvm/test/tools/llvm-lto2/X86/lit.local.cfg @@ -0,0 +1,3 @@ +if not 'X86' in config.root.targets: + config.unsupported = True + |