From 534d9042b108ac41008ac4d0cf114d5576c8e00d Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 31 Oct 2014 05:04:16 +0000 Subject: [PATCH] merge tests for constant linking. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220951 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Linker/ConstantGlobals.ll | 8 ++++++++ test/Linker/ConstantGlobals1.ll | 10 ---------- test/Linker/ConstantGlobals2.ll | 10 ---------- test/Linker/ConstantGlobals3.ll | 6 ------ test/Linker/Inputs/ConstantGlobals.ll | 2 ++ test/Linker/Inputs/ConstantGlobals3.ll | 1 - 6 files changed, 10 insertions(+), 27 deletions(-) create mode 100644 test/Linker/ConstantGlobals.ll delete mode 100644 test/Linker/ConstantGlobals1.ll delete mode 100644 test/Linker/ConstantGlobals2.ll delete mode 100644 test/Linker/ConstantGlobals3.ll create mode 100644 test/Linker/Inputs/ConstantGlobals.ll delete mode 100644 test/Linker/Inputs/ConstantGlobals3.ll diff --git a/test/Linker/ConstantGlobals.ll b/test/Linker/ConstantGlobals.ll new file mode 100644 index 00000000000..49f86a51bd7 --- /dev/null +++ b/test/Linker/ConstantGlobals.ll @@ -0,0 +1,8 @@ +; RUN: llvm-link %s %S/Inputs/ConstantGlobals.ll -S | FileCheck %s +; RUN: llvm-link %S/Inputs/ConstantGlobals.ll %s -S | FileCheck %s + +; CHECK-DAG: @X = constant [1 x i32] [i32 8] +@X = external global [1 x i32] + +; CHECK-DAG: @Y = external global [1 x i32] +@Y = external global [1 x i32] diff --git a/test/Linker/ConstantGlobals1.ll b/test/Linker/ConstantGlobals1.ll deleted file mode 100644 index a2bb6fbfba8..00000000000 --- a/test/Linker/ConstantGlobals1.ll +++ /dev/null @@ -1,10 +0,0 @@ -; Test that appending linkage works correctly when arrays are the same size. - -; RUN: echo "@X = constant [1 x i32] [i32 8] " | \ -; RUN: llvm-as > %t.2.bc -; RUN: llvm-as < %s > %t.1.bc -; RUN: llvm-link %t.1.bc %t.2.bc -S | FileCheck %s -; CHECK: constant - -@X = external global [1 x i32] ; <[1 x i32]*> [#uses=0] - diff --git a/test/Linker/ConstantGlobals2.ll b/test/Linker/ConstantGlobals2.ll deleted file mode 100644 index 47137799871..00000000000 --- a/test/Linker/ConstantGlobals2.ll +++ /dev/null @@ -1,10 +0,0 @@ -; Test that appending linkage works correctly when arrays are the same size. - -; RUN: echo "@X = external global [1 x i32] " | \ -; RUN: llvm-as > %t.2.bc -; RUN: llvm-as < %s > %t.1.bc -; RUN: llvm-link %t.1.bc %t.2.bc -S | FileCheck %s -; CHECK: constant - -@X = constant [1 x i32] [ i32 12 ] ; <[1 x i32]*> [#uses=0] - diff --git a/test/Linker/ConstantGlobals3.ll b/test/Linker/ConstantGlobals3.ll deleted file mode 100644 index 0b70ddd646f..00000000000 --- a/test/Linker/ConstantGlobals3.ll +++ /dev/null @@ -1,6 +0,0 @@ -; RUN: llvm-link %s %S/Inputs/ConstantGlobals3.ll -S | FileCheck %s -; RUN: llvm-link %S/Inputs/ConstantGlobals3.ll %s -S | FileCheck %s - -; CHECK: @X = external global [1 x i32] - -@X = external global [1 x i32] diff --git a/test/Linker/Inputs/ConstantGlobals.ll b/test/Linker/Inputs/ConstantGlobals.ll new file mode 100644 index 00000000000..56c2ba55570 --- /dev/null +++ b/test/Linker/Inputs/ConstantGlobals.ll @@ -0,0 +1,2 @@ +@X = constant [1 x i32] [i32 8] +@Y = external constant [1 x i32] diff --git a/test/Linker/Inputs/ConstantGlobals3.ll b/test/Linker/Inputs/ConstantGlobals3.ll deleted file mode 100644 index eeffd3f014d..00000000000 --- a/test/Linker/Inputs/ConstantGlobals3.ll +++ /dev/null @@ -1 +0,0 @@ -@X = external constant [1 x i32] -- 2.11.0