]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commitdiff
Convert test to use an extra Input file. NFC.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 4 Dec 2014 23:31:21 +0000 (23:31 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 4 Dec 2014 23:31:21 +0000 (23:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223414 91177308-0d34-0410-b5e6-96231b3b80d8

test/Linker/2006-06-15-GlobalVarAlignment.ll [deleted file]
test/Linker/Inputs/alignment.ll [new file with mode: 0644]
test/Linker/alignment.ll [new file with mode: 0644]

diff --git a/test/Linker/2006-06-15-GlobalVarAlignment.ll b/test/Linker/2006-06-15-GlobalVarAlignment.ll
deleted file mode 100644 (file)
index c9f9b0e..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-; The linker should choose the largest alignment when linking.
-
-; RUN: echo "@X = global i32 7, align 8" | 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: align 8
-
-@X = weak global i32 7, align 4
diff --git a/test/Linker/Inputs/alignment.ll b/test/Linker/Inputs/alignment.ll
new file mode 100644 (file)
index 0000000..d4093cd
--- /dev/null
@@ -0,0 +1 @@
+@X = global i32 7, align 8
diff --git a/test/Linker/alignment.ll b/test/Linker/alignment.ll
new file mode 100644 (file)
index 0000000..364ad71
--- /dev/null
@@ -0,0 +1,8 @@
+; The linker should choose the largest alignment when linking.
+
+; RUN: llvm-link %p/alignment.ll %p/Inputs/alignment.ll -S | FileCheck %s
+; RUN: llvm-link %p/Inputs/alignment.ll %p/alignment.ll -S | FileCheck %s
+
+; CHECK: @X = global i32 7, align 8
+
+@X = weak global i32 7, align 4