summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bytecode
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-17 07:59:14 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-17 07:59:14 +0000
commit83b3d8267225d585678d5d3af9bba5735f4b415d (patch)
tree9d6c2ad7bfd568186e83a39e6f03e1c0bf415715 /llvm/test/Bytecode
parent100602d7561ca5e245db6194bddae86357d203d4 (diff)
downloadbcm5719-llvm-83b3d8267225d585678d5d3af9bba5735f4b415d.tar.gz
bcm5719-llvm-83b3d8267225d585678d5d3af9bba5735f4b415d.zip
Regression is gone, don't try to find it on clean target.
llvm-svn: 33296
Diffstat (limited to 'llvm/test/Bytecode')
-rw-r--r--llvm/test/Bytecode/.cvsignore3
-rw-r--r--llvm/test/Bytecode/2006-12-11-Cast-ConstExpr.ll8
-rw-r--r--llvm/test/Bytecode/dg.exp3
-rw-r--r--llvm/test/Bytecode/memcpy.ll17
4 files changed, 31 insertions, 0 deletions
diff --git a/llvm/test/Bytecode/.cvsignore b/llvm/test/Bytecode/.cvsignore
new file mode 100644
index 00000000000..7f2443f2f31
--- /dev/null
+++ b/llvm/test/Bytecode/.cvsignore
@@ -0,0 +1,3 @@
+Output
+*.log
+*.sum
diff --git a/llvm/test/Bytecode/2006-12-11-Cast-ConstExpr.ll b/llvm/test/Bytecode/2006-12-11-Cast-ConstExpr.ll
new file mode 100644
index 00000000000..aa2cf9306fc
--- /dev/null
+++ b/llvm/test/Bytecode/2006-12-11-Cast-ConstExpr.ll
@@ -0,0 +1,8 @@
+; This test ensures that we get a bitcast constant expression in and out,
+; not a sitofp constant expression.
+; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | grep 'bitcast ('
+%G = external global int
+
+float %tryit(int %A) {
+ ret float bitcast( int ptrtoint (int* %G to int) to float)
+}
diff --git a/llvm/test/Bytecode/dg.exp b/llvm/test/Bytecode/dg.exp
new file mode 100644
index 00000000000..142de8a6c8f
--- /dev/null
+++ b/llvm/test/Bytecode/dg.exp
@@ -0,0 +1,3 @@
+load_lib llvm-dg.exp
+
+llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] $objdir $srcdir $subdir $target_triplet $llvmgcc $llvmgxx $prcontext $llvmgcc_version
diff --git a/llvm/test/Bytecode/memcpy.ll b/llvm/test/Bytecode/memcpy.ll
new file mode 100644
index 00000000000..398b8961a1d
--- /dev/null
+++ b/llvm/test/Bytecode/memcpy.ll
@@ -0,0 +1,17 @@
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
+
+void %test(int* %P, int* %Q) {
+entry:
+ %tmp.1 = cast int* %P to sbyte* ; <sbyte*> [#uses=2]
+ %tmp.3 = cast int* %Q to sbyte* ; <sbyte*> [#uses=3]
+ tail call void %llvm.memcpy.i32( sbyte* %tmp.1, sbyte* %tmp.3, uint 100000, uint 1 )
+ tail call void %llvm.memcpy.i64( sbyte* %tmp.1, sbyte* %tmp.3, ulong 100000, uint 1 )
+ tail call void %llvm.memset.i32( sbyte* %tmp.3, ubyte 14, uint 10000, uint 0 )
+ tail call void %llvm.memmove.i32( sbyte* %tmp.1, sbyte* %tmp.3, uint 123124, uint 1 )
+ ret void
+}
+
+declare void %llvm.memcpy.i32(sbyte*, sbyte*, uint, uint)
+declare void %llvm.memcpy.i64(sbyte*, sbyte*, ulong, uint)
+declare void %llvm.memset.i32(sbyte*, ubyte, uint, uint)
+declare void %llvm.memmove.i32(sbyte*, sbyte*, uint, uint)
OpenPOWER on IntegriCloud