From 7e9e10bd46dc4fd6d7de3ed1cbe28b3a058736fc Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Wed, 25 Jul 2007 19:47:31 +0000 Subject: 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 --- test/Bitcode/2006-12-11-Cast-ConstExpr.ll | 10 ++++++++++ test/Bitcode/dg.exp | 3 +++ test/Bitcode/memcpy.ll | 17 +++++++++++++++++ test/Bytecode/2006-12-11-Cast-ConstExpr.ll | 10 ---------- test/Bytecode/dg.exp | 3 --- test/Bytecode/memcpy.ll | 17 ----------------- 6 files changed, 30 insertions(+), 30 deletions(-) create mode 100644 test/Bitcode/2006-12-11-Cast-ConstExpr.ll create mode 100644 test/Bitcode/dg.exp create mode 100644 test/Bitcode/memcpy.ll delete mode 100644 test/Bytecode/2006-12-11-Cast-ConstExpr.ll delete mode 100644 test/Bytecode/dg.exp delete mode 100644 test/Bytecode/memcpy.ll diff --git a/test/Bitcode/2006-12-11-Cast-ConstExpr.ll b/test/Bitcode/2006-12-11-Cast-ConstExpr.ll new file mode 100644 index 0000000..4c768d6 --- /dev/null +++ b/test/Bitcode/2006-12-11-Cast-ConstExpr.ll @@ -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) +} diff --git a/test/Bitcode/dg.exp b/test/Bitcode/dg.exp new file mode 100644 index 0000000..879685c --- /dev/null +++ b/test/Bitcode/dg.exp @@ -0,0 +1,3 @@ +load_lib llvm.exp + +RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] diff --git a/test/Bitcode/memcpy.ll b/test/Bitcode/memcpy.ll new file mode 100644 index 0000000..398b896 --- /dev/null +++ b/test/Bitcode/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* ; [#uses=2] + %tmp.3 = cast int* %Q to 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) diff --git a/test/Bytecode/2006-12-11-Cast-ConstExpr.ll b/test/Bytecode/2006-12-11-Cast-ConstExpr.ll deleted file mode 100644 index 4c768d6..0000000 --- a/test/Bytecode/2006-12-11-Cast-ConstExpr.ll +++ /dev/null @@ -1,10 +0,0 @@ -; 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) -} diff --git a/test/Bytecode/dg.exp b/test/Bytecode/dg.exp deleted file mode 100644 index 879685c..0000000 --- a/test/Bytecode/dg.exp +++ /dev/null @@ -1,3 +0,0 @@ -load_lib llvm.exp - -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] diff --git a/test/Bytecode/memcpy.ll b/test/Bytecode/memcpy.ll deleted file mode 100644 index 398b896..0000000 --- a/test/Bytecode/memcpy.ll +++ /dev/null @@ -1,17 +0,0 @@ -; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f - -void %test(int* %P, int* %Q) { -entry: - %tmp.1 = cast int* %P to sbyte* ; [#uses=2] - %tmp.3 = cast int* %Q to 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) -- cgit v1.1