Added RUN lines and dejagnu support for Feature dir.
authorTanya Lattner <tonic@nondot.org>
Sun, 7 Nov 2004 06:08:43 +0000 (06:08 +0000)
committerTanya Lattner <tonic@nondot.org>
Sun, 7 Nov 2004 06:08:43 +0000 (06:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17568 91177308-0d34-0410-b5e6-96231b3b80d8

32 files changed:
test/Feature/basictest.ll
test/Feature/calltest.ll
test/Feature/casttest.ll
test/Feature/cfgstructures.ll
test/Feature/constexpr.ll
test/Feature/constexprbad.ll
test/Feature/constpointer.ll
test/Feature/dg.exp [new file with mode: 0644]
test/Feature/forwardreftest.ll
test/Feature/globalredefinition.ll
test/Feature/globalvars.ll
test/Feature/indirectcall.ll
test/Feature/indirectcall2.ll
test/Feature/intrinsics.ll
test/Feature/opaquetypes.ll
test/Feature/packed.ll
test/Feature/properties.ll
test/Feature/prototype.ll
test/Feature/recursivetype.ll
test/Feature/simplecalltest.ll
test/Feature/small.ll
test/Feature/smallest.ll
test/Feature/testalloca.ll
test/Feature/testconstants.ll
test/Feature/testlogical.ll
test/Feature/testmemory.ll
test/Feature/testswitch.ll
test/Feature/testvarargs.ll
test/Feature/undefined.ll
test/Feature/unreachable.ll
test/Feature/varargs.ll
test/Feature/weirdnames.ll

index 4fcc190cbb143b7a4d91154bdf41d3b26afde94a..cabf6036dc3a26dd5a032da95a16386865655f87 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 implementation
 
 ; Test "stripped" format where nothing is symbolic... this is how the bytecode
index 1be7ad59719feaaef89d1a20744dfd7a2b781fa0..8adbe4937180312c716cfd77705d0a542dbf9c5c 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 %FunTy = type int(int)
 
 declare int "test"(...)   ; Test differences of prototype
index 5b2db7b4886adaad2fc72caff7ee6e06ab83cb88..acd47e575bbace1c5eee4f684d4a1578c3a2098b 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 implementation
 
 short "FunFunc"(long %x, sbyte %z)
index a28dfb3d70ec692a34230232e3c6d18f3d9c4df2..b044b5cf52e804dd0c58687e0663a1446f8770a4 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 implementation
 
 ;; This is an irreducible flow graph
index 5da6d806116ebbc2231f627ab12fcdd75abd287b..0572fc95ea84246a4ec6a191bde1a7f216b83bd3 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 ; This testcase is for testing expressions constructed from
 ; constant values, including constant pointers to globals.
 ;
index cbec98a417e309a57c057b2bd736497a9575116d..ed90747b8ca99dc8bc369c077cee1c76c0814bb9 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 ; This testcase is for testing illegal constant expressions.
 ; Uncomment any code line below to test that the error is caught
 ; See constexpr.ll in this directory for legal ones.
index dcf704a4390de8957d4150023e8e197c28490198..9a876d2cedb0a96f1149ea9b5f5a4dac83f6c5fc 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 ; This testcase is primarily used for testing that global values can be used as 
 ; constant pointer initializers.  This is tricky because they can be forward
 ; declared and involves an icky bytecode encoding.  There is no meaningful 
diff --git a/test/Feature/dg.exp b/test/Feature/dg.exp
new file mode 100644 (file)
index 0000000..7389268
--- /dev/null
@@ -0,0 +1,4 @@
+load_lib llvm-dg.exp
+
+llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] $srcdir $subdir $target_triplet $llvmgcc $llvmgxx $prcontext
+
index bd6ba086da4125135bf37f0de40b86f9f53f435d..4569ee2b30b76d8306508d7ddc21aefc41b64c3b 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
   %myty = type int 
   %myfn = type float (int,double,uint,short)
   type int(%myfn*)
index 793554a2c79663b0c48e5225c05533ecc60b9ed2..8e5bbe24ba4059da9e57abc53b4dd8fb3a3971ea 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 ; Test forward references and redefinitions of globals
 
 %Y = global void()* %X
index ae969af8ec32a750afb8f75e37f71c690c67d66e..0b20c1b77366ff8d246e12d8684c6d1b61d430af 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 
 %MyVar     = uninitialized global int
 %MyIntList = uninitialized global { \2 *, int }
index b4d042fbd3221f92ac16e6616434366bb7f3fcd6..cdc2651e7085e89375f0f5dcf455b7e25f6f9cf8 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 implementation
 
 declare int "atoi"(sbyte *)
index 4a12734cdfc671fee29332bb372c9217f46af4af..08e49ecd5e2f9103d6d5362828cddfb8dc6b1d41 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 implementation
 
 ulong "test"(ulong %X)
index 16a23744cbb09c2d25c6198f0d3439c94b65c421..12ecf49c7233ed0a5dfd86bdba547ff554f1258b 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 
 declare bool %llvm.isunordered(float, float)
 declare bool %llvm.isunordered(double, double)
index 271493f222acacc7b2a579ddaf9b611a42e70ac1..1873a00af9e82b38507efb0374d3bb224ce8aa65 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 ; This test case is used to test opaque type processing, forward references,
 ; and recursive types.  Oh my.
 ; 
index bc355ab355f04efe7cb58cf07646e768415adf30..bc50d26015fda19174f14623d046d3f165a321ae 100755 (executable)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 ; RUN: llvm-as < %s | llvm-dis
 
 %foo1 = uninitialized global <4 x float>;
index d73d936654dce059db1edade38aa731af700fb22..fc88f239dc24be8b5719ca13796fda9f9c2d2826 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 
 target endian = little
 target pointersize = 32
index 6874ca6b53dc788a2c8cd2d2fffbd4a1321aac26..a97f8129b138c063454d634d2df5fefa8c7bba0d 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 implementation
 
 declare int "bar"(int %in) 
index 13a2094d3f311a1a53ed78b54ac8b4946b10fc05..29fb93c81428dc797c2fb30ac0f9e89ae4f83a03 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 ; This file contains the output from the following compiled C code:
 ; typedef struct list {
 ;   struct list *Next;
index 1ac9fe3630389bcde3f55c8b066faf41d62d9ddf..37fa6c62ab2fbfe22cf3574d6a54dbdc7c450207 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 %FunTy = type int(int)
 
 implementation
index 59e6b1197c0d55f3b82da3654b2ee45dc49c3a53..5d80e2003a72ae9afe3bdc12cf0b0bbefcd70848 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 %x = type int
 
 implementation
index 6c5db17425d4e5d87b9ab26d21ccea2bae50b3b3..a7ad71c3849c65407e6b80dc3e5f65e7a236d316 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 
 implementation
 
index d6af922db5ac944d6a022b9fae7d47f05aa84a6c..ac08be60e229b730724fad7ecec59e730e3a4bb9 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 %inners = type {float, {ubyte } }
 %struct = type { int , {float, {ubyte } } , ulong }
 
index df525f51f3608cf28e2d66c7537abeb7cb21311e..49d2d152ae197f65b42224e2593e0d020d9c4324 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 %somestr = constant [11x sbyte] c"hello world"
 %array   = constant [2 x int] [ int 12, int 52 ]
            constant { int, int } { int 4, int 3 }
index d1f8c2516a68bca86b4a6140fa41c966b9075808..97452b4557ec761e0481d35deb0674271fd8f207 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 implementation
 
 int "simpleAdd"(int %i0, int %j0)
index fca4532fae130f32c45af36f79dd0d71d3f86a47..cc6fe7101959fd37d72165651abba384b57f38dd 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 %struct = type { int , {float, {ubyte } } , ulong }
 %complexty = type {int, {[4 x sbyte *], float}, double}
 
index e5190d058502d7f3d994587bd3f706eb20060cab..484ff2abc16512cd49c7c76a8d3c53a116132f9d 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
   %int = type int
 
 implementation
index ef6e48f88439f4bc67e32ea2bdbc7964b0afa369..5806f2899acff5e538c6db20067a2f7eb4bf63cc 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 implementation
 
 declare int "printf"(sbyte*, ...)   ;; Prototype for: int __builtin_printf(const char*, ...)
index a71b906dcc0581ee5b4a358e685a5e275c3dff78..cdbec03d398a285c55bab764dd9edb47d6491f00 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 
 %X = global int undef
 
index 84c4552a627d69958d929ac50f9069752cdd220e..de7beb93aeb52caed9e80beca3065bb3b403e3c6 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 
 implementation
 
index bf0c6f2ac6f4ad07e6cdf6b737116c2e78f0b6a1..d75a49d8edf4499250596793eff4adae89b6877a 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 ; Demonstrate all of the variable argument handling intrinsic functions plus 
 ; the va_arg instruction.
 
index 710905f6d0ef0bce0ca4c085b64762ef07207638..c8a45c34a6d87e356708b662c08b1ba09821d696 100644 (file)
@@ -1,3 +1,7 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 ; Test using double quotes to form names that are not legal in the % form
 
 "&^ " = type { int }