diff --git a/test/Assembler/2002-04-07-HexFloatConstants.llx b/test/Assembler/2002-04-07-HexFloatConstants.llx index 422d3b4700e..5411faad3ba 100644 --- a/test/Assembler/2002-04-07-HexFloatConstants.llx +++ b/test/Assembler/2002-04-07-HexFloatConstants.llx @@ -5,9 +5,9 @@ ; of the bug that was causing the Olden Health benchmark to output incorrect ; results! ; -; RUN: as < %s | opt -constprop | dis > Output/%s && \ -; RUN: as < %s | dis | as | opt -constprop | dis > Output/%s2 && \ -; RUN: diff Output/%s Output/%s2 +; RUN: as < %s | opt -constprop | dis > s1 && \ +; RUN: as < %s | dis | as | opt -constprop | dis > s2 && \ +; RUN: diff s1 s2 implementation diff --git a/test/CBackend/2003-06-23-PromotedExprs.llx b/test/CBackend/2003-06-23-PromotedExprs.llx index 0723d6baac8..f678b83c349 100644 --- a/test/CBackend/2003-06-23-PromotedExprs.llx +++ b/test/CBackend/2003-06-23-PromotedExprs.llx @@ -1,7 +1,7 @@ -; RUN: as < %s | dis -c > Output/%s.cbe.c -; RUN: gcc -B/usr/bin/ Output/%s.cbe.c -o Output/%s.cbe -; RUN: Output/%s.cbe +; RUN: as < %s | dis -c > f1.cbe.c +; RUN: gcc -B/usr/bin/ f1.cbe.c -o f1.cbe +; RUN: ./f1.cbe bool %doTest(ubyte %x) { %dec.0 = add ubyte %x, 255 diff --git a/test/CodeGen/CBackend/2003-06-23-PromotedExprs.llx b/test/CodeGen/CBackend/2003-06-23-PromotedExprs.llx index 0723d6baac8..f678b83c349 100644 --- a/test/CodeGen/CBackend/2003-06-23-PromotedExprs.llx +++ b/test/CodeGen/CBackend/2003-06-23-PromotedExprs.llx @@ -1,7 +1,7 @@ -; RUN: as < %s | dis -c > Output/%s.cbe.c -; RUN: gcc -B/usr/bin/ Output/%s.cbe.c -o Output/%s.cbe -; RUN: Output/%s.cbe +; RUN: as < %s | dis -c > f1.cbe.c +; RUN: gcc -B/usr/bin/ f1.cbe.c -o f1.cbe +; RUN: ./f1.cbe bool %doTest(ubyte %x) { %dec.0 = add ubyte %x, 255 diff --git a/test/Linker/2002-07-17-GlobalFail.ll b/test/Linker/2002-07-17-GlobalFail.ll index bc12fe9f42f..68726dac84d 100644 --- a/test/Linker/2002-07-17-GlobalFail.ll +++ b/test/Linker/2002-07-17-GlobalFail.ll @@ -1,6 +1,6 @@ -; RUN: as < %s > Output/%s.bc -; RUN: echo | as > Output/%s.tmp.bc -; RUN: link Output/%s.tmp.bc Output/%s.bc +; RUN: as < %s > %t.bc +; RUN: echo | as > %t.tmp.bc +; RUN: link %t.tmp.bc %t.bc %X = constant int 5 %Y = internal global [2 x int*] [ int* %X, int * %X] diff --git a/test/Linker/2002-07-17-LinkTest2.ll b/test/Linker/2002-07-17-LinkTest2.ll index c1db0634b64..80286eb01f6 100644 --- a/test/Linker/2002-07-17-LinkTest2.ll +++ b/test/Linker/2002-07-17-LinkTest2.ll @@ -1,8 +1,8 @@ ; This fails linking when it is linked with an empty file as the first object file -; RUN: as > Output/LinkTest1.bc < /dev/null -; RUN: as < %s > Output/LinkTest2.bc -; RUN: link Output/LinkTest[12].bc +; RUN: as > %t1.bc < /dev/null +; RUN: as < %s > %t2.bc +; RUN: link %t[12].bc %work = global int (int, int)* %zip diff --git a/test/Linker/2002-08-20-ConstantExpr.ll b/test/Linker/2002-08-20-ConstantExpr.ll index 3f1b4bf90a7..da81af31f1c 100644 --- a/test/Linker/2002-08-20-ConstantExpr.ll +++ b/test/Linker/2002-08-20-ConstantExpr.ll @@ -1,8 +1,8 @@ ; This fails linking when it is linked with an empty file as the first object file -; RUN: as > Output/%s.LinkTest.bc < /dev/null -; RUN: as < %s > Output/%s.bc -; RUN: link Output/%s.LinkTest.bc Output/%s.bc +; RUN: as > %t.LinkTest.bc < /dev/null +; RUN: as < %s > %t.bc +; RUN: link %t.LinkTest.bc %t.bc %work = global int 4 %test = global int* getelementptr( int* %work, long 1) diff --git a/test/Linker/2003-01-30-LinkerRename.ll b/test/Linker/2003-01-30-LinkerRename.ll index 4956f7c003a..3cf8f785535 100644 --- a/test/Linker/2003-01-30-LinkerRename.ll +++ b/test/Linker/2003-01-30-LinkerRename.ll @@ -1,9 +1,9 @@ ; This fails because the linker renames the external symbol not the internal ; one... -; RUN: echo "implementation internal int %foo() { ret int 7 }" | as > Output/%s.1.bc -; RUN: as < %s > Output/%s.2.bc -; RUN: link Output/%s.[12].bc | dis | grep '%foo()' | grep -v internal +; RUN: echo "implementation internal int %foo() { ret int 7 }" | as > %t.1.bc +; RUN: as < %s > %t.2.bc +; RUN: link %t.[12].bc | dis | grep '%foo()' | grep -v internal implementation int %foo() { ret int 0 } diff --git a/test/Linker/2003-01-30-LinkerTypeRename.ll b/test/Linker/2003-01-30-LinkerTypeRename.ll index a8837f7770e..b0bd7640eb3 100644 --- a/test/Linker/2003-01-30-LinkerTypeRename.ll +++ b/test/Linker/2003-01-30-LinkerTypeRename.ll @@ -1,9 +1,9 @@ ; This fails because the linker renames the non-opaque type not the opaque ; one... -; RUN: echo "%Ty = type opaque" | as > Output/%s.1.bc -; RUN: as < %s > Output/%s.2.bc -; RUN: link Output/%s.[12].bc | dis | grep '%Ty ' | grep -v opaque +; RUN: echo "%Ty = type opaque" | as > %t.1.bc +; RUN: as < %s > %t.2.bc +; RUN: link %t.[12].bc | dis | grep '%Ty ' | grep -v opaque %Ty = type int diff --git a/test/Linker/2003-04-21-Linkage.ll b/test/Linker/2003-04-21-Linkage.ll index 58493f9eceb..96fb5c048fb 100644 --- a/test/Linker/2003-04-21-Linkage.ll +++ b/test/Linker/2003-04-21-Linkage.ll @@ -1,6 +1,6 @@ -; RUN: echo "%X = linkonce global int 5 implementation linkonce int %foo() { ret int 7 }" | as > Output/%s.1.bc -; RUN: as < %s > Output/%s.2.bc -; RUN: link Output/%s.[12].bc +; RUN: echo "%X = linkonce global int 5 implementation linkonce int %foo() { ret int 7 }" | as > %t.1.bc +; RUN: as < %s > %t.2.bc +; RUN: link %t.[12].bc %X = external global int implementation diff --git a/test/Linker/2003-04-23-LinkOnceLost.ll b/test/Linker/2003-04-23-LinkOnceLost.ll index 2d99b60da46..cae03c6f8e2 100644 --- a/test/Linker/2003-04-23-LinkOnceLost.ll +++ b/test/Linker/2003-04-23-LinkOnceLost.ll @@ -1,8 +1,8 @@ ; This fails because the linker renames the non-opaque type not the opaque ; one... -; RUN: echo "implementation linkonce void %foo() { ret void } " | as > Output/%s.2.bc -; RUN: as < %s > Output/%s.1.bc -; RUN: link Output/%s.[12].bc | dis | grep foo | grep linkonce +; RUN: echo "implementation linkonce void %foo() { ret void } " | as > %t.2.bc +; RUN: as < %s > %t.1.bc +; RUN: link %t.[12].bc | dis | grep foo | grep linkonce declare void %foo() diff --git a/test/Linker/2003-04-26-NullPtrLinkProblem.ll b/test/Linker/2003-04-26-NullPtrLinkProblem.ll index 4c3f5720296..53c2f4ccbd2 100644 --- a/test/Linker/2003-04-26-NullPtrLinkProblem.ll +++ b/test/Linker/2003-04-26-NullPtrLinkProblem.ll @@ -1,9 +1,9 @@ ; This one fails because the LLVM runtime is allowing two null pointers of ; the same type to be created! -; RUN: echo "%T = type int" | as > Output/%s.2.bc -; RUN: as < %s > Output/%s.1.bc -; RUN: link Output/%s.[12].bc +; RUN: echo "%T = type int" | as > %t.2.bc +; RUN: as < %s > %t.1.bc +; RUN: link %t.[12].bc %T = type opaque diff --git a/test/Linker/2003-05-15-TypeProblem.ll b/test/Linker/2003-05-15-TypeProblem.ll index 37bdbfd3bff..74c3fee38b6 100644 --- a/test/Linker/2003-05-15-TypeProblem.ll +++ b/test/Linker/2003-05-15-TypeProblem.ll @@ -1,9 +1,9 @@ ; This one fails because the LLVM runtime is allowing two null pointers of ; the same type to be created! -; RUN: echo "%S = type { %T*} %T = type opaque" | as > Output/%s.2.bc -; RUN: as < %s > Output/%s.1.bc -; RUN: link Output/%s.[12].bc +; RUN: echo "%S = type { %T*} %T = type opaque" | as > %t.2.bc +; RUN: as < %s > %t.1.bc +; RUN: link %t.[12].bc %S = type { %T* } %T = type int diff --git a/test/Linker/2003-05-31-LinkerRename.ll b/test/Linker/2003-05-31-LinkerRename.ll index 1b420645504..ac11f190f6a 100644 --- a/test/Linker/2003-05-31-LinkerRename.ll +++ b/test/Linker/2003-05-31-LinkerRename.ll @@ -3,9 +3,9 @@ ; a program that already has an external declaration for the function name, we must ; rename the internal function to something that does not conflict. -; RUN: echo "implementation internal int %foo() { ret int 7 }" | as > Output/%s.1.bc -; RUN: as < %s > Output/%s.2.bc -; RUN: link Output/%s.[12].bc | dis | grep 'internal' | not grep '%foo(' +; RUN: echo "implementation internal int %foo() { ret int 7 }" | as > %t.1.bc +; RUN: as < %s > %t.2.bc +; RUN: link %t.[12].bc | dis | grep 'internal' | not grep '%foo(' implementation declare int %foo() diff --git a/test/Linker/2003-06-02-TypeResolveProblem.ll b/test/Linker/2003-06-02-TypeResolveProblem.ll index eee1135dfb4..796cb8aa08e 100644 --- a/test/Linker/2003-06-02-TypeResolveProblem.ll +++ b/test/Linker/2003-06-02-TypeResolveProblem.ll @@ -1,6 +1,6 @@ -; RUN: echo "%T = type opaque" | as > Output/%s.2.bc -; RUN: as < %s > Output/%s.1.bc -; RUN: link Output/%s.[12].bc +; RUN: echo "%T = type opaque" | as > %t.2.bc +; RUN: as < %s > %t.1.bc +; RUN: link %t.[12].bc %T = type opaque %a = constant { %T* } { %T* null } diff --git a/test/Linker/2003-06-02-TypeResolveProblem2.ll b/test/Linker/2003-06-02-TypeResolveProblem2.ll index 41a49c1c990..7592b2ce5a9 100644 --- a/test/Linker/2003-06-02-TypeResolveProblem2.ll +++ b/test/Linker/2003-06-02-TypeResolveProblem2.ll @@ -1,6 +1,6 @@ -; RUN: echo "%T = type int" | as > Output/%s.1.bc -; RUN: as < %s > Output/%s.2.bc -; RUN: link Output/%s.[12].bc +; RUN: echo "%T = type int" | as > %t.1.bc +; RUN: as < %s > %t.2.bc +; RUN: link %t.[12].bc %T = type opaque diff --git a/test/Linker/AppendingLinkage.ll b/test/Linker/AppendingLinkage.ll index de925a7d6c9..0019e6cdea9 100644 --- a/test/Linker/AppendingLinkage.ll +++ b/test/Linker/AppendingLinkage.ll @@ -1,8 +1,8 @@ ; Test that appending linkage works correctly. -; RUN: echo "%X = appending global [1x int] [int 8]" | as > Output/%s.2.bc -; RUN: as < %s > Output/%s.1.bc -; RUN: link Output/%s.[12].bc | dis | grep 7 | grep 4 | grep 8 +; RUN: echo "%X = appending global [1x int] [int 8]" | as > %t.2.bc +; RUN: as < %s > %t.1.bc +; RUN: link %t.[12].bc | dis | grep 7 | grep 4 | grep 8 %X = appending global [2 x int] [int 7, int 4] diff --git a/test/Linker/AppendingLinkage2.ll b/test/Linker/AppendingLinkage2.ll index 8a73c9d7c89..cef51191a81 100644 --- a/test/Linker/AppendingLinkage2.ll +++ b/test/Linker/AppendingLinkage2.ll @@ -1,7 +1,7 @@ ; Test that appending linkage works correctly when arrays are the same size. -; RUN: echo "%X = appending global [1x int] [int 8]" | as > Output/%s.2.bc -; RUN: as < %s > Output/%s.1.bc -; RUN: link Output/%s.[12].bc | dis | grep 7 | grep 8 +; RUN: echo "%X = appending global [1x int] [int 8]" | as > %t.2.bc +; RUN: as < %s > %t.1.bc +; RUN: link %t.[12].bc | dis | grep 7 | grep 8 %X = appending global [1 x int] [int 7] diff --git a/test/Linker/LinkOnce.ll b/test/Linker/LinkOnce.ll index 01ec9862ab6..5d731b37c47 100644 --- a/test/Linker/LinkOnce.ll +++ b/test/Linker/LinkOnce.ll @@ -1,8 +1,8 @@ ; This fails because the linker renames the non-opaque type not the opaque ; one... -; RUN: echo "%X = linkonce global int 8" | as > Output/%s.2.bc -; RUN: as < %s > Output/%s.1.bc -; RUN: link Output/%s.[12].bc | dis +; RUN: echo "%X = linkonce global int 8" | as > %t.2.bc +; RUN: as < %s > %t.1.bc +; RUN: link %t.[12].bc | dis %X = linkonce global int 7 diff --git a/test/Linker/testlink1.ll b/test/Linker/testlink1.ll index 3f07213cedc..2b40f3514b4 100644 --- a/test/Linker/testlink1.ll +++ b/test/Linker/testlink1.ll @@ -1,6 +1,6 @@ -; RUN: as < %s > Output/%s.bc -; RUN: as < testlink2.ll > Output/testlink2.bc -; RUN: link Output/%s.bc Output/testlink2.bc +; RUN: as < %s > %t.bc +; RUN: as < `dirname %s`/testlink2.ll > %t2.bc +; RUN: link %t.bc %t2.bc %MyVar = external global int %MyIntList = global { \2 *, int } { { \2, int }* null, int 17 }