mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-07 10:11:57 +00:00
Added RUN lines and dejagnu support for Feature dir.
llvm-svn: 17568
This commit is contained in:
parent
1119c153b7
commit
8cb5895d16
test/Feature
basictest.llcalltest.llcasttest.llcfgstructures.llconstexpr.llconstexprbad.llconstpointer.lldg.expforwardreftest.llglobalredefinition.llglobalvars.llindirectcall.llindirectcall2.llintrinsics.llopaquetypes.llpacked.llproperties.llprototype.llrecursivetype.llsimplecalltest.llsmall.llsmallest.lltestalloca.lltestconstants.lltestlogical.lltestmemory.lltestswitch.lltestvarargs.llundefined.llunreachable.llvarargs.llweirdnames.ll
@ -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
|
implementation
|
||||||
|
|
||||||
; Test "stripped" format where nothing is symbolic... this is how the bytecode
|
; Test "stripped" format where nothing is symbolic... this is how the bytecode
|
||||||
|
@ -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)
|
%FunTy = type int(int)
|
||||||
|
|
||||||
declare int "test"(...) ; Test differences of prototype
|
declare int "test"(...) ; Test differences of prototype
|
||||||
|
@ -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
|
implementation
|
||||||
|
|
||||||
short "FunFunc"(long %x, sbyte %z)
|
short "FunFunc"(long %x, sbyte %z)
|
||||||
|
@ -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
|
implementation
|
||||||
|
|
||||||
;; This is an irreducible flow graph
|
;; This is an irreducible flow graph
|
||||||
|
@ -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
|
; This testcase is for testing expressions constructed from
|
||||||
; constant values, including constant pointers to globals.
|
; constant values, including constant pointers to globals.
|
||||||
;
|
;
|
||||||
|
@ -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.
|
; This testcase is for testing illegal constant expressions.
|
||||||
; Uncomment any code line below to test that the error is caught
|
; Uncomment any code line below to test that the error is caught
|
||||||
; See constexpr.ll in this directory for legal ones.
|
; See constexpr.ll in this directory for legal ones.
|
||||||
|
@ -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
|
; 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
|
; constant pointer initializers. This is tricky because they can be forward
|
||||||
; declared and involves an icky bytecode encoding. There is no meaningful
|
; declared and involves an icky bytecode encoding. There is no meaningful
|
||||||
|
4
test/Feature/dg.exp
Normal file
4
test/Feature/dg.exp
Normal file
@ -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
|
||||||
|
|
@ -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
|
%myty = type int
|
||||||
%myfn = type float (int,double,uint,short)
|
%myfn = type float (int,double,uint,short)
|
||||||
type int(%myfn*)
|
type int(%myfn*)
|
||||||
|
@ -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
|
; Test forward references and redefinitions of globals
|
||||||
|
|
||||||
%Y = global void()* %X
|
%Y = global void()* %X
|
||||||
|
@ -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
|
%MyVar = uninitialized global int
|
||||||
%MyIntList = uninitialized global { \2 *, int }
|
%MyIntList = uninitialized global { \2 *, int }
|
||||||
|
@ -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
|
implementation
|
||||||
|
|
||||||
declare int "atoi"(sbyte *)
|
declare int "atoi"(sbyte *)
|
||||||
|
@ -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
|
implementation
|
||||||
|
|
||||||
ulong "test"(ulong %X)
|
ulong "test"(ulong %X)
|
||||||
|
@ -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(float, float)
|
||||||
declare bool %llvm.isunordered(double, double)
|
declare bool %llvm.isunordered(double, double)
|
||||||
|
@ -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,
|
; This test case is used to test opaque type processing, forward references,
|
||||||
; and recursive types. Oh my.
|
; and recursive types. Oh my.
|
||||||
;
|
;
|
||||||
|
@ -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
|
; RUN: llvm-as < %s | llvm-dis
|
||||||
|
|
||||||
%foo1 = uninitialized global <4 x float>;
|
%foo1 = uninitialized global <4 x float>;
|
||||||
|
@ -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 endian = little
|
||||||
target pointersize = 32
|
target pointersize = 32
|
||||||
|
@ -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
|
implementation
|
||||||
|
|
||||||
declare int "bar"(int %in)
|
declare int "bar"(int %in)
|
||||||
|
@ -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:
|
; This file contains the output from the following compiled C code:
|
||||||
; typedef struct list {
|
; typedef struct list {
|
||||||
; struct list *Next;
|
; struct list *Next;
|
||||||
|
@ -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)
|
%FunTy = type int(int)
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
@ -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
|
%x = type int
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
@ -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
|
implementation
|
||||||
|
|
||||||
|
@ -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 } }
|
%inners = type {float, {ubyte } }
|
||||||
%struct = type { int , {float, {ubyte } } , ulong }
|
%struct = type { int , {float, {ubyte } } , ulong }
|
||||||
|
|
||||||
|
@ -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"
|
%somestr = constant [11x sbyte] c"hello world"
|
||||||
%array = constant [2 x int] [ int 12, int 52 ]
|
%array = constant [2 x int] [ int 12, int 52 ]
|
||||||
constant { int, int } { int 4, int 3 }
|
constant { int, int } { int 4, int 3 }
|
||||||
|
@ -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
|
implementation
|
||||||
|
|
||||||
int "simpleAdd"(int %i0, int %j0)
|
int "simpleAdd"(int %i0, int %j0)
|
||||||
|
@ -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 }
|
%struct = type { int , {float, {ubyte } } , ulong }
|
||||||
%complexty = type {int, {[4 x sbyte *], float}, double}
|
%complexty = type {int, {[4 x sbyte *], float}, double}
|
||||||
|
|
||||||
|
@ -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
|
%int = type int
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
@ -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
|
implementation
|
||||||
|
|
||||||
declare int "printf"(sbyte*, ...) ;; Prototype for: int __builtin_printf(const char*, ...)
|
declare int "printf"(sbyte*, ...) ;; Prototype for: int __builtin_printf(const char*, ...)
|
||||||
|
@ -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
|
%X = global int undef
|
||||||
|
|
||||||
|
@ -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
|
implementation
|
||||||
|
|
||||||
|
@ -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
|
; Demonstrate all of the variable argument handling intrinsic functions plus
|
||||||
; the va_arg instruction.
|
; the va_arg instruction.
|
||||||
|
|
||||||
|
@ -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
|
; Test using double quotes to form names that are not legal in the % form
|
||||||
|
|
||||||
"&^ " = type { int }
|
"&^ " = type { int }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user