Moving regression test to reflect move in source and headers to Bitcode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40488 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chandler Carruth
2007-07-25 19:47:31 +00:00
parent b8275a3f6f
commit 7e9e10bd46
3 changed files with 0 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
; 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 | \
; RUN: grep {bitcast (}
%G = external global int
float %tryit(int %A) {
ret float bitcast( int ptrtoint (int* %G to int) to float)
}
+3
View File
@@ -0,0 +1,3 @@
load_lib llvm.exp
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
+17
View File
@@ -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)