diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-29 20:01:32 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-29 20:01:32 +0000 |
| commit | 73e70822ae9dd03f092b1ae56c5fed6d39b7af3c (patch) | |
| tree | 9ff920ffee2e9439e58174d13c0eadfaa3746ee6 /test/Linker | |
| parent | 0cc2bd12d22562acaeb3813250de2fcd30bd9e0e (diff) | |
| download | external_llvm-73e70822ae9dd03f092b1ae56c5fed6d39b7af3c.zip external_llvm-73e70822ae9dd03f092b1ae56c5fed6d39b7af3c.tar.gz external_llvm-73e70822ae9dd03f092b1ae56c5fed6d39b7af3c.tar.bz2 | |
Update tests that need to be run through llvm-upgrade. This is necessary
for upcoming changes to the llvm assembly grammar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32768 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Linker')
| -rw-r--r-- | test/Linker/2003-01-30-LinkerRename.ll | 5 | ||||
| -rw-r--r-- | test/Linker/2003-04-21-Linkage.ll | 4 | ||||
| -rw-r--r-- | test/Linker/2003-04-23-LinkOnceLost.ll | 5 | ||||
| -rw-r--r-- | test/Linker/2003-08-28-TypeResolvesGlobal.ll | 4 | ||||
| -rw-r--r-- | test/Linker/2003-08-28-TypeResolvesGlobal2.ll | 4 | ||||
| -rw-r--r-- | test/Linker/2003-08-28-TypeResolvesGlobal3.ll | 4 | ||||
| -rw-r--r-- | test/Linker/2004-05-07-TypeResolution1.ll | 5 | ||||
| -rw-r--r-- | test/Linker/AppendingLinkage.ll | 5 | ||||
| -rw-r--r-- | test/Linker/testlink1.ll | 4 |
9 files changed, 22 insertions, 18 deletions
diff --git a/test/Linker/2003-01-30-LinkerRename.ll b/test/Linker/2003-01-30-LinkerRename.ll index cf9c4ae..724a2a8 100644 --- a/test/Linker/2003-01-30-LinkerRename.ll +++ b/test/Linker/2003-01-30-LinkerRename.ll @@ -1,8 +1,9 @@ ; This fails because the linker renames the external symbol not the internal ; one... -; RUN: echo "implementation internal int %foo() { ret int 7 }" | llvm-as > %t.1.bc -; RUN: llvm-as < %s > %t.2.bc +; RUN: echo "implementation internal int %foo() { ret int 7 }" | llvm-upgrade |\ +; RUN: llvm-as > %t.1.bc +; RUN: llvm-upgrade < %s | llvm-as -o %t.2.bc -f ; RUN: llvm-link %t.[12].bc | llvm-dis | grep '%foo()' | grep -v internal implementation diff --git a/test/Linker/2003-04-21-Linkage.ll b/test/Linker/2003-04-21-Linkage.ll index 6071d0b..742faa8 100644 --- a/test/Linker/2003-04-21-Linkage.ll +++ b/test/Linker/2003-04-21-Linkage.ll @@ -1,5 +1,5 @@ -; RUN: echo "%X = linkonce global int 5 implementation linkonce int %foo() { ret int 7 }" | llvm-as > %t.1.bc -; RUN: llvm-as < %s > %t.2.bc +; RUN: echo "%X = linkonce global int 5 implementation linkonce int %foo() { ret int 7 }" | llvm-upgrade | llvm-as > %t.1.bc +; RUN: llvm-upgrade < %s | llvm-as -o %t.2.bc -f ; RUN: llvm-link %t.[12].bc %X = external global int diff --git a/test/Linker/2003-04-23-LinkOnceLost.ll b/test/Linker/2003-04-23-LinkOnceLost.ll index add9981..3996cc4 100644 --- a/test/Linker/2003-04-23-LinkOnceLost.ll +++ b/test/Linker/2003-04-23-LinkOnceLost.ll @@ -1,8 +1,9 @@ ; This fails because the linker renames the non-opaque type not the opaque ; one... -; RUN: echo "implementation linkonce void %foo() { ret void } " | llvm-as > %t.2.bc -; RUN: llvm-as < %s > %t.1.bc +; RUN: echo "implementation linkonce void %foo() { ret void } " | llvm-upgrade|\ +; RUN: llvm-as -o %t.2.bc -f +; RUN: llvm-upgrade < %s | llvm-as -o %t.1.bc -f ; RUN: llvm-link %t.[12].bc | llvm-dis | grep foo | grep linkonce declare void %foo() diff --git a/test/Linker/2003-08-28-TypeResolvesGlobal.ll b/test/Linker/2003-08-28-TypeResolvesGlobal.ll index 54d0a6f..5e90682 100644 --- a/test/Linker/2003-08-28-TypeResolvesGlobal.ll +++ b/test/Linker/2003-08-28-TypeResolvesGlobal.ll @@ -1,5 +1,5 @@ -; RUN: llvm-as < %s > %t.out1.bc -; RUN: echo "%S = type int" | llvm-as > %t.out2.bc +; RUN: llvm-upgrade < %s | llvm-as > %t.out1.bc +; RUN: echo "%S = type int" | llvm-upgrade | llvm-as > %t.out2.bc ; RUN: llvm-link %t.out[21].bc %S = type opaque diff --git a/test/Linker/2003-08-28-TypeResolvesGlobal2.ll b/test/Linker/2003-08-28-TypeResolvesGlobal2.ll index e83d232..619c844 100644 --- a/test/Linker/2003-08-28-TypeResolvesGlobal2.ll +++ b/test/Linker/2003-08-28-TypeResolvesGlobal2.ll @@ -1,5 +1,5 @@ -; RUN: llvm-as < %s > %t.out1.bc -; RUN: echo "%S = type int" | llvm-as > %t.out2.bc +; RUN: llvm-upgrade < %s | llvm-as > %t.out1.bc +; RUN: echo "%S = type int" | llvm-upgrade | llvm-as > %t.out2.bc ; RUN: llvm-link %t.out[21].bc %S = type opaque diff --git a/test/Linker/2003-08-28-TypeResolvesGlobal3.ll b/test/Linker/2003-08-28-TypeResolvesGlobal3.ll index 3190099..40023fd 100644 --- a/test/Linker/2003-08-28-TypeResolvesGlobal3.ll +++ b/test/Linker/2003-08-28-TypeResolvesGlobal3.ll @@ -1,5 +1,5 @@ -; RUN: llvm-as < %s > %t.out1.bc -; RUN: echo "%S = type int" | llvm-as > %t.out2.bc +; RUN: llvm-upgrade < %s | llvm-as > %t.out1.bc +; RUN: echo "%S = type int" | llvm-upgrade | llvm-as > %t.out2.bc ; RUN: llvm-link %t.out[21].bc %S = type opaque diff --git a/test/Linker/2004-05-07-TypeResolution1.ll b/test/Linker/2004-05-07-TypeResolution1.ll index 94ce3d0..94c5af0 100644 --- a/test/Linker/2004-05-07-TypeResolution1.ll +++ b/test/Linker/2004-05-07-TypeResolution1.ll @@ -1,5 +1,6 @@ -; RUN: llvm-as -f < %s > %t1.bc -; RUN: llvm-as -f < `dirname %s`/2004-05-07-TypeResolution2.ll > %t2.bc +; RUN: llvm-upgrade < %s | llvm-as -f -o %t1.bc +; RUN: llvm-upgrade < `dirname %s`/2004-05-07-TypeResolution2.ll | \ +; RUN: llvm-as -o %t2.bc -f ; RUN: llvm-link -f -o %t3.bc %t1.bc %t2.bc target endian = little diff --git a/test/Linker/AppendingLinkage.ll b/test/Linker/AppendingLinkage.ll index 4126b88..84c09d8 100644 --- a/test/Linker/AppendingLinkage.ll +++ b/test/Linker/AppendingLinkage.ll @@ -1,7 +1,8 @@ ; Test that appending linkage works correctly. -; RUN: echo "%X = appending global [1x int] [int 8]" | llvm-as > %t.2.bc -; RUN: llvm-as < %s > %t.1.bc +; RUN: echo "%X = appending global [1x int] [int 8]" | llvm-upgrade | \ +; RUN: llvm-as > %t.2.bc +; RUN: llvm-upgrade < %s | llvm-as > %t.1.bc ; RUN: llvm-link %t.[12].bc | llvm-dis | grep 7 | grep 4 | grep 8 %X = appending global [2 x int] [int 7, int 4] diff --git a/test/Linker/testlink1.ll b/test/Linker/testlink1.ll index 91d9833..ccdd5f3 100644 --- a/test/Linker/testlink1.ll +++ b/test/Linker/testlink1.ll @@ -1,5 +1,5 @@ -; RUN: llvm-as < %s > %t.bc -; RUN: llvm-as < `dirname %s`/testlink2.ll > %t2.bc +; RUN: llvm-upgrade < %s | llvm-as > %t.bc +; RUN: llvm-upgrade < `dirname %s`/testlink2.ll | llvm-as > %t2.bc ; RUN: llvm-link %t.bc %t2.bc %MyVar = external global int |
