llvm.org GIT mirror llvm / 3f7706b
Added RUN lines and dejagnu support for Feature dir. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17568 91177308-0d34-0410-b5e6-96231b3b80d8 Tanya Lattner 15 years ago
32 changed file(s) with 128 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 implementation
15
26 ; Test "stripped" format where nothing is symbolic... this is how the bytecode
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 %FunTy = type int(int)
15
26 declare int "test"(...) ; Test differences of prototype
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 implementation
15
26 short "FunFunc"(long %x, sbyte %z)
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 implementation
15
26 ;; This is an irreducible flow graph
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 ; This testcase is for testing expressions constructed from
15 ; constant values, including constant pointers to globals.
26 ;
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 ; This testcase is for testing illegal constant expressions.
15 ; Uncomment any code line below to test that the error is caught
26 ; See constexpr.ll in this directory for legal ones.
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 ; This testcase is primarily used for testing that global values can be used as
15 ; constant pointer initializers. This is tricky because they can be forward
26 ; declared and involves an icky bytecode encoding. There is no meaningful
0 load_lib llvm-dg.exp
1
2 llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] $srcdir $subdir $target_triplet $llvmgcc $llvmgxx $prcontext
3
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 %myty = type int
15 %myfn = type float (int,double,uint,short)
26 type int(%myfn*)
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 ; Test forward references and redefinitions of globals
15
26 %Y = global void()* %X
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4
15 %MyVar = uninitialized global int
26 %MyIntList = uninitialized global { \2 *, int }
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 implementation
15
26 declare int "atoi"(sbyte *)
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 implementation
15
26 ulong "test"(ulong %X)
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4
15 declare bool %llvm.isunordered(float, float)
26 declare bool %llvm.isunordered(double, double)
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 ; This test case is used to test opaque type processing, forward references,
15 ; and recursive types. Oh my.
26 ;
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 ; RUN: llvm-as < %s | llvm-dis
15
26 %foo1 = uninitialized global <4 x float>;
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4
15 target endian = little
26 target pointersize = 32
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 implementation
15
26 declare int "bar"(int %in)
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 ; This file contains the output from the following compiled C code:
15 ; typedef struct list {
26 ; struct list *Next;
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 %FunTy = type int(int)
15
26 implementation
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 %x = type int
15
26 implementation
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4
15 implementation
26
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 %inners = type {float, {ubyte } }
15 %struct = type { int , {float, {ubyte } } , ulong }
26
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 %somestr = constant [11x sbyte] c"hello world"
15 %array = constant [2 x int] [ int 12, int 52 ]
26 constant { int, int } { int 4, int 3 }
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 implementation
15
26 int "simpleAdd"(int %i0, int %j0)
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 %struct = type { int , {float, {ubyte } } , ulong }
15 %complexty = type {int, {[4 x sbyte *], float}, double}
26
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 %int = type int
15
26 implementation
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 implementation
15
26 declare int "printf"(sbyte*, ...) ;; Prototype for: int __builtin_printf(const char*, ...)
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4
15 %X = global int undef
26
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4
15 implementation
26
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 ; Demonstrate all of the variable argument handling intrinsic functions plus
15 ; the va_arg instruction.
26
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 ; Test using double quotes to form names that are not legal in the % form
15
26 "&^ " = type { int }