remove andersen's tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97490 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-03-01 20:23:15 +00:00
parent 929bdfedb8
commit 69ece93669
10 changed files with 0 additions and 137 deletions

View File

@ -1,8 +0,0 @@
; RUN: opt < %s -anders-aa -disable-output
define void @x(i16 %Y) {
entry:
%tmp = call i16 asm "bswap $0", "=r,r"(i16 %Y)
ret void
}

View File

@ -1,12 +0,0 @@
; RUN: opt < %s -anders-aa -gvn -S | not grep undef
; PR2160
declare void @f(i32*)
define i32 @g() {
entry:
%tmp = alloca i32 ; <i32*> [#uses=2]
call void @f( i32* %tmp )
%tmp2 = load i32* %tmp ; <i32> [#uses=1]
ret i32 %tmp2
}

View File

@ -1,14 +0,0 @@
; RUN: opt < %s -anders-aa -gvn -S | not grep undef
; PR2169
declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) nounwind
declare void @use(i8)
define void @f(i8* %x) {
entry:
%copy = alloca i8 ; <i8*> [#uses=6]
call void @llvm.memcpy.i32( i8* %copy, i8* %x, i32 1, i32 4 )
%tmp = load i8* %copy ; <i8> [#uses=1]
call void @use(i8 %tmp)
ret void
}

View File

@ -1,19 +0,0 @@
; RUN: opt < %s -anders-aa
; PR3262
@.str15 = external global [3 x i8] ; <[3 x i8]*> [#uses=1]
declare i8* @strtok(...)
declare i8* @memmove(...)
define void @test1(i8* %want1) nounwind {
entry:
%0 = call i8* (...)* @strtok(i32 0, i8* getelementptr ([3 x i8]* @.str15, i32 0, i32 0)) nounwind ; <i8*> [#uses=0]
unreachable
}
define void @test2() nounwind {
entry:
%0 = call i8* (...)* @memmove()
unreachable
}

View File

@ -1,28 +0,0 @@
; RUN: opt < %s -anders-aa -aa-eval 2>/dev/null
define void @test1() {
%X = malloc i32*
%Y = malloc i32
%Z = ptrtoint i32* %Y to i32
%W = inttoptr i32 %Z to i32*
store i32* %W, i32** %X
ret void
}
define void @test2(i32* %P) {
%X = malloc i32*
%Y = malloc i32
store i32* %P, i32** %X
ret void
}
define internal i32 *@test3(i32* %P) {
ret i32* %P
}
define void @test4() {
%X = malloc i32
%Y = call i32* @test3(i32* %X)
%ZZ = getelementptr i32* null, i32 17
ret void
}

View File

@ -1,4 +0,0 @@
load_lib llvm.exp
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]

View File

@ -1,20 +0,0 @@
; RUN: opt < %s -anders-aa -gvn -deadargelim -S | grep store | not grep null
; Because the 'internal' function is passed to an external function, we don't
; know what the incoming values will alias. As such, we cannot do the
; optimization checked by the 'arg-must-alias.ll' test.
declare void @external(i32(i32*)*)
@G = internal constant i32* null
define internal i32 @internal(i32* %ARG) {
;;; We *DON'T* know that ARG always points to null!
store i32* %ARG, i32** @G
ret i32 0
}
define i32 @foo() {
call void @external(i32(i32*)* @internal)
%V = call i32 @internal(i32* null)
ret i32 %V
}

View File

@ -1,15 +0,0 @@
; RUN: opt < %s -anders-aa -gvn -instcombine -S \
; RUN: | grep {ret i1 true}
@G = internal global i32* null
declare i32 *@ext()
define i1 @bar() {
%V1 = load i32** @G
%X2 = call i32 *@ext()
%V2 = load i32** @G
store i32* %X2, i32** @G
%C = icmp eq i32* %V1, %V2
ret i1 %C
}

View File

@ -1,14 +0,0 @@
; RUN: opt < %s -anders-aa -gvn -S \
; RUN: | not grep {ret i32 undef}
;; From PR 2160
declare void @f(i32*)
define i32 @g() {
entry:
%tmp = alloca i32 ; <i32*> [#uses=2]
call void @f( i32* %tmp )
%tmp2 = load i32* %tmp ; <i32> [#uses=1]
ret i32 %tmp2
}

View File

@ -1,3 +0,0 @@
; RUN: opt < %s -anders-aa -disable-output
define void @foo() { ret void }