[llvm] r281539 - [LTO] Move tests from test/tools to test/LTO, as they're testing the API functionalities (NFC)

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 14 14:07:32 PDT 2016


Author: mehdi_amini
Date: Wed Sep 14 16:07:32 2016
New Revision: 281539

URL: http://llvm.org/viewvc/llvm-project?rev=281539&view=rev
Log:
[LTO] Move tests from test/tools to test/LTO, as they're testing the API functionalities (NFC)

Added:
    llvm/trunk/test/LTO/Resolution/X86/Inputs/common2.ll
      - copied, changed from r281538, llvm/trunk/test/tools/llvm-lto2/X86/Inputs/common.ll
    llvm/trunk/test/LTO/Resolution/X86/common2.ll
      - copied, changed from r281538, llvm/trunk/test/tools/llvm-lto2/X86/common.ll
Removed:
    llvm/trunk/test/tools/llvm-lto2/X86/Inputs/common.ll
    llvm/trunk/test/tools/llvm-lto2/X86/common.ll

Copied: llvm/trunk/test/LTO/Resolution/X86/Inputs/common2.ll (from r281538, llvm/trunk/test/tools/llvm-lto2/X86/Inputs/common.ll)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LTO/Resolution/X86/Inputs/common2.ll?p2=llvm/trunk/test/LTO/Resolution/X86/Inputs/common2.ll&p1=llvm/trunk/test/tools/llvm-lto2/X86/Inputs/common.ll&r1=281538&r2=281539&rev=281539&view=diff
==============================================================================
    (empty)

Copied: llvm/trunk/test/LTO/Resolution/X86/common2.ll (from r281538, llvm/trunk/test/tools/llvm-lto2/X86/common.ll)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LTO/Resolution/X86/common2.ll?p2=llvm/trunk/test/LTO/Resolution/X86/common2.ll&p1=llvm/trunk/test/tools/llvm-lto2/X86/common.ll&r1=281538&r2=281539&rev=281539&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-lto2/X86/common.ll (original)
+++ llvm/trunk/test/LTO/Resolution/X86/common2.ll Wed Sep 14 16:07:32 2016
@@ -1,5 +1,5 @@
 ; RUN: llvm-as < %s > %t1.bc
-; RUN: llvm-as < %p/Inputs/common.ll > %t2.bc
+; RUN: llvm-as < %p/Inputs/common2.ll > %t2.bc
 
 ; Test that the common merging (size + alignment) is properly handled
 

Removed: llvm/trunk/test/tools/llvm-lto2/X86/Inputs/common.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-lto2/X86/Inputs/common.ll?rev=281538&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-lto2/X86/Inputs/common.ll (original)
+++ llvm/trunk/test/tools/llvm-lto2/X86/Inputs/common.ll (removed)
@@ -1,7 +0,0 @@
-target triple = "x86_64-apple-macosx10.11.0"
-
- at v = common global i16 0, align 4
-
-define i16 *@bar() {
- ret i16 *@v
-}
\ No newline at end of file

Removed: llvm/trunk/test/tools/llvm-lto2/X86/common.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-lto2/X86/common.ll?rev=281538&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-lto2/X86/common.ll (original)
+++ llvm/trunk/test/tools/llvm-lto2/X86/common.ll (removed)
@@ -1,89 +0,0 @@
-; RUN: llvm-as < %s > %t1.bc
-; RUN: llvm-as < %p/Inputs/common.ll > %t2.bc
-
-; Test that the common merging (size + alignment) is properly handled
-
-; Client marked the "large with little alignment" one as prevailing
-; RUN: llvm-lto2 %t1.bc %t2.bc -o %t.o -save-temps \
-; RUN:  -r %t1.bc,v,x \
-; 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 --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 \
-; RUN:  -r %t1.bc,v,x \
-; 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 --check-prefix=LARGE-PREVAILED
-
-; Client marked the "small with large alignment" one as prevailing
-; RUN: llvm-lto2 %t1.bc %t2.bc -o %t.o -save-temps \
-; RUN:  -r %t1.bc,v,px \
-; 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 --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 \
-; RUN:  -r %t1.bc,v,px \
-; 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 --check-prefix=SMALL-PREVAILED
-
-
-; Client didn't mark any as prevailing, we keep the first one we see as "external"
-; RUN: llvm-lto2 %t1.bc %t2.bc -o %t.o -save-temps \
-; RUN:  -r %t1.bc,v,x \
-; 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 --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 \
-; RUN:  -r %t1.bc,v,x \
-; 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 --check-prefix=NONE-PREVAILED2
-
-
-
-; Client marked both as prevailing
-; RUN: llvm-lto2 %t1.bc %t2.bc -o %t.o -save-temps \
-; RUN:  -r %t1.bc,v,px \
-; 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 --check-prefix=BOTH-PREVAILED1
-
-; Same as before, but reversing the order of the inputs
-; RUN: llvm-lto2 %t2.bc %t1.bc -o %t.o -save-temps \
-; RUN:  -r %t1.bc,v,px \
-; 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 --check-prefix=BOTH-PREVAILED2
-
-
-
-target triple = "x86_64-apple-macosx10.11.0"
-
- at v = common global i8 0, align 8
-
-; LARGE-PREVAILED: @v = common global i16 0, align 8
-; SMALL-PREVAILED: @v = common global [2 x i8] zeroinitializer, align 8
-; BOTH-PREVAILED1: @v = common global i16 0, align 8
-; BOTH-PREVAILED2: common global [2 x i8] zeroinitializer, align 8
-; In this case the first is kept as external
-; NONE-PREVAILED1: @v = external global i8, align 8
-; NONE-PREVAILED2: @v = external global i16, align 4
-
-define i8 *@foo() {
- ret i8 *@v
-}




More information about the llvm-commits mailing list