[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b
Török Edvin
edwin at clamav.net
Sun Apr 4 01:27:39 UTC 2010
The following commit has been merged in the debian/unstable branch:
commit 3ae7d79401eb843f2502cafeeba7a23ff9a2c21c
Author: Török Edvin <edwin at clamav.net>
Date: Tue Mar 30 18:05:10 2010 +0300
Remove some unused LLVM test files.
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2003-02-26-AccessSizeTest.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2003-02-26-AccessSizeTest.ll
deleted file mode 100644
index 6b50a16..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2003-02-26-AccessSizeTest.ll
+++ /dev/null
@@ -1,18 +0,0 @@
-; This testcase makes sure that size is taken to account when alias analysis
-; is performed. It is not legal to delete the second load instruction because
-; the value computed by the first load instruction is changed by the store.
-
-; RUN: opt < %s -gvn -instcombine -S | grep DONOTREMOVE
-
-define i32 @test() {
- %A = alloca i32
- store i32 0, i32* %A
- %X = load i32* %A
- %B = bitcast i32* %A to i8*
- %C = getelementptr i8* %B, i64 1
- store i8 1, i8* %C ; Aliases %A
- %Y.DONOTREMOVE = load i32* %A
- %Z = sub i32 %X, %Y.DONOTREMOVE
- ret i32 %Z
-}
-
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2003-03-04-GEPCrash.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2003-03-04-GEPCrash.ll
deleted file mode 100644
index 4f8eabb..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2003-03-04-GEPCrash.ll
+++ /dev/null
@@ -1,7 +0,0 @@
-; RUN: opt < %s -basicaa -aa-eval -disable-output 2>/dev/null
-; Test for a bug in BasicAA which caused a crash when querying equality of P1&P2
-define void @test({[2 x i32],[2 x i32]}* %A, i64 %X, i64 %Y) {
- %P1 = getelementptr {[2 x i32],[2 x i32]}* %A, i64 0, i32 0, i64 %X
- %P2 = getelementptr {[2 x i32],[2 x i32]}* %A, i64 0, i32 1, i64 %Y
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2003-04-22-GEPProblem.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2003-04-22-GEPProblem.ll
deleted file mode 100644
index f7e8295..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2003-04-22-GEPProblem.ll
+++ /dev/null
@@ -1,15 +0,0 @@
-; RUN: opt < %s -gvn -instcombine -S | grep sub
-
-; BasicAA was incorrectly concluding that P1 and P2 didn't conflict!
-
-define i32 @test(i32 *%Ptr, i64 %V) {
- %P2 = getelementptr i32* %Ptr, i64 1
- %P1 = getelementptr i32* %Ptr, i64 %V
- %X = load i32* %P1
- store i32 5, i32* %P2
-
- %Y = load i32* %P1
-
- %Z = sub i32 %X, %Y
- ret i32 %Z
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2003-04-25-GEPCrash.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2003-04-25-GEPCrash.ll
deleted file mode 100644
index 97bc38e..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2003-04-25-GEPCrash.ll
+++ /dev/null
@@ -1,7 +0,0 @@
-; RUN: opt < %s -basicaa -aa-eval -disable-output 2>/dev/null
-; Test for a bug in BasicAA which caused a crash when querying equality of P1&P2
-define void @test([17 x i16]* %mask_bits) {
- %P1 = getelementptr [17 x i16]* %mask_bits, i64 0, i64 0
- %P2 = getelementptr [17 x i16]* %mask_bits, i64 252645134, i64 0
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2003-05-21-GEP-Problem.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2003-05-21-GEP-Problem.ll
deleted file mode 100644
index d439dfc..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2003-05-21-GEP-Problem.ll
+++ /dev/null
@@ -1,21 +0,0 @@
-; RUN: opt < %s -licm -disable-output
- %struct..apr_array_header_t = type { i32*, i32, i32, i32, i8* }
- %struct..apr_table_t = type { %struct..apr_array_header_t, i32, [32 x i32], [32 x i32] }
-
-define void @table_reindex(%struct..apr_table_t* %t.1) { ; No predecessors!
- br label %loopentry
-
-loopentry: ; preds = %0, %no_exit
- %tmp.101 = getelementptr %struct..apr_table_t* %t.1, i64 0, i32 0, i32 2
- %tmp.11 = load i32* %tmp.101 ; <i32> [#uses=0]
- br i1 false, label %no_exit, label %UnifiedExitNode
-
-no_exit: ; preds = %loopentry
- %tmp.25 = sext i32 0 to i64 ; <i64> [#uses=1]
- %tmp.261 = getelementptr %struct..apr_table_t* %t.1, i64 0, i32 3, i64 %tmp.25 ; <i32*> [#uses=1]
- store i32 0, i32* %tmp.261
- br label %loopentry
-
-UnifiedExitNode: ; preds = %loopentry
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2003-06-01-AliasCrash.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2003-06-01-AliasCrash.ll
deleted file mode 100644
index 0abd384..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2003-06-01-AliasCrash.ll
+++ /dev/null
@@ -1,11 +0,0 @@
-; RUN: opt < %s -basicaa -aa-eval -disable-output 2>/dev/null
-
-define i32 @MTConcat([3 x i32]* %a.1) {
- %tmp.961 = getelementptr [3 x i32]* %a.1, i64 0, i64 4
- %tmp.97 = load i32* %tmp.961
- %tmp.119 = getelementptr [3 x i32]* %a.1, i64 1, i64 0
- %tmp.120 = load i32* %tmp.119
- %tmp.1541 = getelementptr [3 x i32]* %a.1, i64 0, i64 4
- %tmp.155 = load i32* %tmp.1541
- ret i32 0
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2003-07-03-BasicAACrash.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2003-07-03-BasicAACrash.ll
deleted file mode 100644
index 3e813fa..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2003-07-03-BasicAACrash.ll
+++ /dev/null
@@ -1,10 +0,0 @@
-; RUN: opt < %s -basicaa -aa-eval -disable-output 2>/dev/null
-
-%struct..RefPoint = type { i32, { i32, i8, i8 } }
-%struct..RefRect = type { %struct..RefPoint, %struct..RefPoint }
-
-define i32 @BMT_CommitPartDrawObj() {
- %tmp.19111 = getelementptr %struct..RefRect* null, i64 0, i32 0, i32 1, i32 2
- %tmp.20311 = getelementptr %struct..RefRect* null, i64 0, i32 1, i32 1, i32 2
- ret i32 0
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2003-09-19-LocalArgument.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2003-09-19-LocalArgument.ll
deleted file mode 100644
index 637d8f0..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2003-09-19-LocalArgument.ll
+++ /dev/null
@@ -1,12 +0,0 @@
-; In this test, a local alloca cannot alias an incoming argument.
-
-; RUN: opt < %s -gvn -instcombine -S | not grep sub
-
-define i32 @test(i32* %P) {
- %X = alloca i32
- %V1 = load i32* %P
- store i32 0, i32* %X
- %V2 = load i32* %P
- %Diff = sub i32 %V1, %V2
- ret i32 %Diff
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2003-11-04-SimpleCases.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2003-11-04-SimpleCases.ll
deleted file mode 100644
index 911f78c..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2003-11-04-SimpleCases.ll
+++ /dev/null
@@ -1,16 +0,0 @@
-; This testcase consists of alias relations which should be completely
-; resolvable by basicaa.
-
-; RUN: opt < %s -aa-eval -print-may-aliases -disable-output \
-; RUN: |& not grep May:
-
-%T = type { i32, [10 x i8] }
-
-define void @test(%T* %P) {
- %A = getelementptr %T* %P, i64 0
- %B = getelementptr %T* %P, i64 0, i32 0
- %C = getelementptr %T* %P, i64 0, i32 1
- %D = getelementptr %T* %P, i64 0, i32 1, i64 0
- %E = getelementptr %T* %P, i64 0, i32 1, i64 5
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2003-12-11-ConstExprGEP.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2003-12-11-ConstExprGEP.ll
deleted file mode 100644
index 8166b97..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2003-12-11-ConstExprGEP.ll
+++ /dev/null
@@ -1,18 +0,0 @@
-; This testcase consists of alias relations which should be completely
-; resolvable by basicaa, but require analysis of getelementptr constant exprs.
-
-; RUN: opt < %s -aa-eval -print-may-aliases -disable-output \
-; RUN: |& not grep May:
-
-%T = type { i32, [10 x i8] }
-
- at G = external global %T
-
-define void @test() {
- %D = getelementptr %T* @G, i64 0, i32 0
- %E = getelementptr %T* @G, i64 0, i32 1, i64 5
- %F = getelementptr i32* getelementptr (%T* @G, i64 0, i32 0), i64 0
- %X = getelementptr [10 x i8]* getelementptr (%T* @G, i64 0, i32 1), i64 0, i64 5
-
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2004-07-28-MustAliasbug.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2004-07-28-MustAliasbug.ll
deleted file mode 100644
index e1cfd03..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2004-07-28-MustAliasbug.ll
+++ /dev/null
@@ -1,10 +0,0 @@
-; RUN: opt < %s -dse -S | grep {store i32 0}
-
-define void @test({i32,i32 }* %P) {
- %Q = getelementptr {i32,i32}* %P, i32 1
- %X = getelementptr {i32,i32}* %Q, i32 0, i32 1
- %Y = getelementptr {i32,i32}* %Q, i32 1, i32 1
- store i32 0, i32* %X
- store i32 1, i32* %Y
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2004-12-08-BasicAACrash.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2004-12-08-BasicAACrash.ll
deleted file mode 100644
index 81248db..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2004-12-08-BasicAACrash.ll
+++ /dev/null
@@ -1,22 +0,0 @@
-; RUN: opt < %s -licm
-
-%"java/lang/Object" = type { %struct.llvm_java_object_base }
-%"java/lang/StringBuffer" = type { "java/lang/Object", i32, { "java/lang/Object", i32, [0 x i8] }*, i1 }
-%struct.llvm_java_object_base = type opaque
-
-define void @"java/lang/StringBuffer/setLength(I)V"(%struct.llvm_java_object_base*) {
-bc0:
- br i1 false, label %bc40, label %bc65
-
-bc65: ; preds = %bc0, %bc40
- ret void
-
-bc40: ; preds = %bc0, %bc40
- %tmp75 = bitcast %struct.llvm_java_object_base* %0 to %"java/lang/StringBuffer"* ; <"java/lang/StringBuffer"*> [#uses=1]
- %tmp76 = getelementptr %"java/lang/StringBuffer"* %tmp75, i32 0, i32 1 ; <i32*> [#uses=1]
- store i32 0, i32* %tmp76
- %tmp381 = bitcast %struct.llvm_java_object_base* %0 to %"java/lang/StringBuffer"* ; <"java/lang/StringBuffer"*> [#uses=1]
- %tmp392 = getelementptr %"java/lang/StringBuffer"* %tmp381, i32 0, i32 1 ; <i32*> [#uses=1]
- %tmp403 = load i32* %tmp392 ; <i32> [#uses=0]
- br i1 false, label %bc40, label %bc65
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2004-12-08-BasicAACrash2.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2004-12-08-BasicAACrash2.ll
deleted file mode 100644
index 0e03db3..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2004-12-08-BasicAACrash2.ll
+++ /dev/null
@@ -1,20 +0,0 @@
-; RUN: opt < %s -dse
-
-%"java/lang/Object" = type { %struct.llvm_java_object_base }
-%"java/lang/StringBuffer" = type { "java/lang/Object", i32, { "java/lang/Object", i32, [0 x i8] }*, i1 }
-%struct.llvm_java_object_base = type opaque
-
-define void @"java/lang/StringBuffer/ensureCapacity_unsynchronized(I)V"() {
-bc0:
- %tmp = getelementptr %"java/lang/StringBuffer"* null, i32 0, i32 3 ; <i1*> [#uses=1]
- br i1 false, label %bc16, label %bc7
-
-bc16: ; preds = %bc0
- %tmp91 = getelementptr %"java/lang/StringBuffer"* null, i32 0, i32 2 ; <{ "java/lang/Object", i32, [0 x i8] }**> [#uses=1]
- store { %"java/lang/Object", i32, [0 x i8] }* null, { %"java/lang/Object", i32, [0 x i8] }** %tmp91
- store i1 false, i1* %tmp
- ret void
-
-bc7: ; preds = %bc0
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll
deleted file mode 100644
index 4564263..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll
+++ /dev/null
@@ -1,15 +0,0 @@
-; RUN: opt < %s -basicaa -gvn -instcombine |\
-; RUN: llvm-dis | grep {load i32\\* %A}
-
-declare double* @useit(i32*)
-
-define i32 @foo(i32 %Amt) {
- %A = malloc i32, i32 %Amt
- %P = call double* @useit(i32* %A)
-
- %X = load i32* %A
- store double 0.0, double* %P
- %Y = load i32* %A
- %Z = sub i32 %X, %Y
- ret i32 %Z
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2006-03-03-BadArraySubscript.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2006-03-03-BadArraySubscript.ll
deleted file mode 100644
index 49327ac..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2006-03-03-BadArraySubscript.ll
+++ /dev/null
@@ -1,31 +0,0 @@
-; RUN: opt < %s -aa-eval -disable-output |& grep {2 no alias respon}
-; TEST that A[1][0] may alias A[0][i].
-target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
-
-define void @test(i32 %N) {
-entry:
- %X = alloca [3 x [3 x i32]] ; <[3 x [3 x i32]]*> [#uses=4]
- %tmp.24 = icmp sgt i32 %N, 0 ; <i1> [#uses=1]
- br i1 %tmp.24, label %no_exit, label %loopexit
-
-no_exit: ; preds = %no_exit, %entry
- %i.0.0 = phi i32 [ 0, %entry ], [ %inc, %no_exit ] ; <i32> [#uses=2]
- %tmp.6 = getelementptr [3 x [3 x i32]]* %X, i32 0, i32 0, i32 %i.0.0 ; <i32*> [#uses=1]
- store i32 1, i32* %tmp.6
- %tmp.8 = getelementptr [3 x [3 x i32]]* %X, i32 0, i32 0, i32 0 ; <i32*> [#uses=1]
- %tmp.9 = load i32* %tmp.8 ; <i32> [#uses=1]
- %tmp.11 = getelementptr [3 x [3 x i32]]* %X, i32 0, i32 1, i32 0 ; <i32*> [#uses=1]
- %tmp.12 = load i32* %tmp.11 ; <i32> [#uses=1]
- %tmp.13 = add i32 %tmp.12, %tmp.9 ; <i32> [#uses=1]
- %inc = add i32 %i.0.0, 1 ; <i32> [#uses=2]
- %tmp.2 = icmp slt i32 %inc, %N ; <i1> [#uses=1]
- br i1 %tmp.2, label %no_exit, label %loopexit
-
-loopexit: ; preds = %no_exit, %entry
- %Y.0.1 = phi i32 [ 0, %entry ], [ %tmp.13, %no_exit ] ; <i32> [#uses=1]
- %tmp.4 = getelementptr [3 x [3 x i32]]* %X, i32 0, i32 0 ; <[3 x i32]*> [#uses=1]
- %tmp.15 = call i32 (...)* @foo( [3 x i32]* %tmp.4, i32 %Y.0.1 ) ; <i32> [#uses=0]
- ret void
-}
-
-declare i32 @foo(...)
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2006-11-03-BasicAAVectorCrash.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2006-11-03-BasicAAVectorCrash.ll
deleted file mode 100644
index 85f53a6..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2006-11-03-BasicAAVectorCrash.ll
+++ /dev/null
@@ -1,48 +0,0 @@
-; RUN: opt < %s -licm -disable-output
-target datalayout = "E-p:32:32"
-target triple = "powerpc-apple-darwin8.7.0"
-
-define void @glgRunProcessor() {
-entry:
- br i1 false, label %bb2037.i, label %cond_true.i18
-
-cond_true.i18: ; preds = %entry
- ret void
-
-bb205.i: ; preds = %bb2037.i
- switch i32 0, label %bb1013.i [
- i32 14, label %bb239.i
- i32 15, label %bb917.i
- ]
-
-bb239.i: ; preds = %bb205.i
- br i1 false, label %cond_false277.i, label %cond_true264.i
-
-cond_true264.i: ; preds = %bb239.i
- ret void
-
-cond_false277.i: ; preds = %bb239.i
- %tmp1062.i = getelementptr [2 x <4 x i32>]* null, i32 0, i32 1 ; <<4 x i32>*> [#uses=1]
- store <4 x i32> zeroinitializer, <4 x i32>* %tmp1062.i
- br i1 false, label %cond_true1032.i, label %cond_false1063.i85
-
-bb917.i: ; preds = %bb205.i
- ret void
-
-bb1013.i: ; preds = %bb205.i
- ret void
-
-cond_true1032.i: ; preds = %cond_false277.i
- %tmp1187.i = getelementptr [2 x <4 x i32>]* null, i32 0, i32 0, i32 7 ; <i32*> [#uses=1]
- store i32 0, i32* %tmp1187.i
- br label %bb2037.i
-
-cond_false1063.i85: ; preds = %cond_false277.i
- ret void
-
-bb2037.i: ; preds = %cond_true1032.i, %entry
- br i1 false, label %bb205.i, label %cond_next2042.i
-
-cond_next2042.i: ; preds = %bb2037.i
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2007-01-13-BasePointerBadNoAlias.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2007-01-13-BasePointerBadNoAlias.ll
deleted file mode 100644
index 917bf25..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2007-01-13-BasePointerBadNoAlias.ll
+++ /dev/null
@@ -1,35 +0,0 @@
-; PR1109
-; RUN: opt < %s -basicaa -gvn -instcombine -S | \
-; RUN: grep {sub i32}
-; RUN: opt < %s -basicaa -gvn -instcombine -S | \
-; RUN: not grep {ret i32 0}
-; END.
-
-target datalayout = "e-p:32:32"
-target triple = "i686-apple-darwin8"
- %struct.CONSTRAINT = type { i32, i32, i32, i32 }
- %struct.FILE_POS = type { i8, i8, i16, i32 }
- %struct.FIRST_UNION = type { %struct.FILE_POS }
- %struct.FOURTH_UNION = type { %struct.CONSTRAINT }
- %struct.GAP = type { i8, i8, i16 }
- %struct.LIST = type { %struct.rec*, %struct.rec* }
- %struct.SECOND_UNION = type { { i16, i8, i8 } }
- %struct.STYLE = type { { %struct.GAP }, { %struct.GAP }, i16, i16, i16, i8, i8 }
- %struct.THIRD_UNION = type { { [2 x i32], [2 x i32] } }
- %struct.closure_type = type { [2 x %struct.LIST], %struct.FIRST_UNION, %struct.SECOND_UNION, %struct.THIRD_UNION, %struct.FOURTH_UNION, %struct.rec*, { %struct.rec* } }
- %struct.head_type = type { [2 x %struct.LIST], %struct.FIRST_UNION, %struct.SECOND_UNION, %struct.THIRD_UNION, %struct.FOURTH_UNION, %struct.rec*, { %struct.rec* }, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, i32 }
- %struct.rec = type { %struct.head_type }
-
-
-define i32 @test(%struct.closure_type* %tmp18169) {
- %tmp18174 = getelementptr %struct.closure_type* %tmp18169, i32 0, i32 4, i32 0, i32 0 ; <i32*> [#uses=2]
- %tmp18269 = bitcast i32* %tmp18174 to %struct.STYLE* ; <%struct.STYLE*> [#uses=1]
- %A = load i32* %tmp18174 ; <i32> [#uses=1]
-
- %tmp18272 = getelementptr %struct.STYLE* %tmp18269, i32 0, i32 0, i32 0, i32 2 ; <i16*> [#uses=1]
- store i16 123, i16* %tmp18272
-
- %Q = load i32* %tmp18174 ; <i32> [#uses=1]
- %Z = sub i32 %A, %Q ; <i32> [#uses=1]
- ret i32 %Z
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2007-08-01-NoAliasAndCalls.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2007-08-01-NoAliasAndCalls.ll
deleted file mode 100644
index e6a26e3..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2007-08-01-NoAliasAndCalls.ll
+++ /dev/null
@@ -1,10 +0,0 @@
-; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output |& grep {MayAlias:.*i32\\* %., i32\\* %.} | grep {%x} | grep {%y}
-
-declare i32* @unclear(i32* %a)
-
-define void @foo(i32* noalias %x) {
- %y = call i32* @unclear(i32* %x)
- store i32 0, i32* %x
- store i32 0, i32* %y
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2007-08-01-NoAliasAndGEP.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2007-08-01-NoAliasAndGEP.ll
deleted file mode 100644
index 7f33fa4..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2007-08-01-NoAliasAndGEP.ll
+++ /dev/null
@@ -1,17 +0,0 @@
-; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output |& grep {9 no alias}
-; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output |& grep {6 may alias}
-; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output |& grep {MayAlias:.*i32\\* %Ipointer, i32\\* %Jpointer}
-
-define void @foo(i32* noalias %p, i32* noalias %q, i32 %i, i32 %j) {
- %Ipointer = getelementptr i32* %p, i32 %i
- %qi = getelementptr i32* %q, i32 %i
- %Jpointer = getelementptr i32* %p, i32 %j
- %qj = getelementptr i32* %q, i32 %j
- store i32 0, i32* %p
- store i32 0, i32* %Ipointer
- store i32 0, i32* %Jpointer
- store i32 0, i32* %q
- store i32 0, i32* %qi
- store i32 0, i32* %qj
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2007-08-05-GetOverloadedModRef.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2007-08-05-GetOverloadedModRef.ll
deleted file mode 100644
index 035299e..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2007-08-05-GetOverloadedModRef.ll
+++ /dev/null
@@ -1,17 +0,0 @@
-; PR1600
-; RUN: opt < %s -basicaa -gvn -instcombine -S | \
-; RUN: grep {ret i32 0}
-; END.
-
-declare i16 @llvm.cttz.i16(i16)
-
-define i32 @test(i32* %P, i16* %Q) {
- %A = load i16* %Q ; <i16> [#uses=1]
- %x = load i32* %P ; <i32> [#uses=1]
- %B = call i16 @llvm.cttz.i16( i16 %A ) ; <i16> [#uses=1]
- %y = load i32* %P ; <i32> [#uses=1]
- store i16 %B, i16* %Q
- %z = sub i32 %x, %y ; <i32> [#uses=1]
- ret i32 %z
-}
-
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2007-10-24-ArgumentsGlobals.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2007-10-24-ArgumentsGlobals.ll
deleted file mode 100644
index 78f24b5..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2007-10-24-ArgumentsGlobals.ll
+++ /dev/null
@@ -1,14 +0,0 @@
-; RUN: opt < %s -basicaa -gvn -dce -S | grep tmp7
-
- %struct.A = type { i32 }
- %struct.B = type { %struct.A }
- at a = global %struct.B zeroinitializer ; <%struct.B*> [#uses=2]
-
-define i32 @_Z3fooP1A(%struct.A* %b) {
-entry:
- store i32 1, i32* getelementptr (%struct.B* @a, i32 0, i32 0, i32 0), align 8
- %tmp4 = getelementptr %struct.A* %b, i32 0, i32 0 ;<i32*> [#uses=1]
- store i32 0, i32* %tmp4, align 4
- %tmp7 = load i32* getelementptr (%struct.B* @a, i32 0, i32 0, i32 0), align 8 ; <i32> [#uses=1]
- ret i32 %tmp7
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2007-11-05-SizeCrash.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2007-11-05-SizeCrash.ll
deleted file mode 100644
index f699ba2..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2007-11-05-SizeCrash.ll
+++ /dev/null
@@ -1,34 +0,0 @@
-; RUN: opt < %s -gvn -disable-output
-; PR1774
-
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
-target triple = "x86_64-unknown-linux-gnu"
- %struct.device = type { [20 x i8] }
- %struct.pci_device_id = type { i32, i32, i32, i32, i32, i32, i64 }
- %struct.usb_bus = type { %struct.device* }
- %struct.usb_hcd = type { %struct.usb_bus, i64, [0 x i64] }
- at uhci_pci_ids = external constant [1 x %struct.pci_device_id] ; <[1 x %struct.pci_device_id]*> [#uses=1]
-
- at __mod_pci_device_table = alias [1 x %struct.pci_device_id]* @uhci_pci_ids
- ; <[1 x %struct.pci_device_id]*> [#uses=0]
-
-define i32 @uhci_suspend(%struct.usb_hcd* %hcd) {
-entry:
- %tmp17 = getelementptr %struct.usb_hcd* %hcd, i32 0, i32 2, i64 1
- ; <i64*> [#uses=1]
- %tmp1718 = bitcast i64* %tmp17 to i32* ; <i32*> [#uses=1]
- %tmp19 = load i32* %tmp1718, align 4 ; <i32> [#uses=0]
- br i1 false, label %cond_true34, label %done_okay
-
-cond_true34: ; preds = %entry
- %tmp631 = getelementptr %struct.usb_hcd* %hcd, i32 0, i32 2, i64
-2305843009213693950 ; <i64*> [#uses=1]
- %tmp70 = bitcast i64* %tmp631 to %struct.device**
-
- %tmp71 = load %struct.device** %tmp70, align 8
-
- ret i32 undef
-
-done_okay: ; preds = %entry
- ret i32 undef
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2007-12-08-OutOfBoundsCrash.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2007-12-08-OutOfBoundsCrash.ll
deleted file mode 100644
index 8028afb..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2007-12-08-OutOfBoundsCrash.ll
+++ /dev/null
@@ -1,31 +0,0 @@
-; RUN: opt < %s -gvn -disable-output
-; PR1782
-
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
-target triple = "x86_64-unknown-linux-gnu"
- %struct.device = type { [20 x i8] }
- %struct.pci_device_id = type { i32, i32, i32, i32, i32, i32, i64 }
- %struct.usb_bus = type { %struct.device* }
- %struct.usb_hcd = type { %struct.usb_bus, [0 x i64] }
- at pci_ids = external constant [1 x %struct.pci_device_id] ; <[1 x %struct.pci_device_id]*> [#uses=1]
-
- at __mod_pci_device_table = alias [1 x %struct.pci_device_id]* @pci_ids ; <[1 x %struct.pci_device_id]*> [#uses=0]
-
-define i32 @ehci_pci_setup(%struct.usb_hcd* %hcd) {
-entry:
- %tmp14 = getelementptr %struct.usb_hcd* %hcd, i32 0, i32 0, i32 0 ; <%struct.device**> [#uses=1]
- %tmp15 = load %struct.device** %tmp14, align 8 ; <%struct.device*> [#uses=0]
- br i1 false, label %bb25, label %return
-
-bb25: ; preds = %entry
- br i1 false, label %cond_true, label %return
-
-cond_true: ; preds = %bb25
- %tmp601 = getelementptr %struct.usb_hcd* %hcd, i32 0, i32 1, i64 2305843009213693951 ; <i64*> [#uses=1]
- %tmp67 = bitcast i64* %tmp601 to %struct.device** ; <%struct.device**> [#uses=1]
- %tmp68 = load %struct.device** %tmp67, align 8 ; <%struct.device*> [#uses=0]
- ret i32 undef
-
-return: ; preds = %bb25, %entry
- ret i32 undef
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2008-04-15-Byval.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2008-04-15-Byval.ll
deleted file mode 100644
index 2069401..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2008-04-15-Byval.ll
+++ /dev/null
@@ -1,18 +0,0 @@
-; RUN: opt < %s -std-compile-opts -S | grep store
-; ModuleID = 'small2.c'
-target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
-target triple = "i386-apple-darwin8"
- %struct.x = type { [4 x i32] }
-
-define void @foo(%struct.x* byval align 4 %X) nounwind {
-entry:
- %tmp = getelementptr %struct.x* %X, i32 0, i32 0 ; <[4 x i32]*> [#uses=1]
- %tmp1 = getelementptr [4 x i32]* %tmp, i32 0, i32 3 ; <i32*> [#uses=1]
- store i32 2, i32* %tmp1, align 4
- %tmp2 = call i32 (...)* @bar( %struct.x* byval align 4 %X ) nounwind ; <i32> [#uses=0]
- br label %return
-return: ; preds = %entry
- ret void
-}
-
-declare i32 @bar(...)
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2008-06-02-GEPTailCrash.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2008-06-02-GEPTailCrash.ll
deleted file mode 100644
index ba29f3a..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2008-06-02-GEPTailCrash.ll
+++ /dev/null
@@ -1,15 +0,0 @@
-; RUN: opt < %s -gvn -disable-output
-; PR2395
-
-target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
-target triple = "i686-pc-linux-gnu"
- %struct.S291 = type <{ %union.anon, i32 }>
- %union.anon = type { }
- at a291 = external global [5 x %struct.S291] ; <[5 x %struct.S291]*> [#uses=2]
-
-define void @test291() nounwind {
-entry:
- store i32 1138410269, i32* getelementptr ([5 x %struct.S291]* @a291, i32 0, i32 2, i32 1)
- %tmp54 = load i32* bitcast (%struct.S291* getelementptr ([5 x %struct.S291]* @a291, i32 0, i32 2) to i32*), align 4 ; <i32> [#uses=0]
- unreachable
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2008-11-23-NoaliasRet.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2008-11-23-NoaliasRet.ll
deleted file mode 100644
index 06018cc..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2008-11-23-NoaliasRet.ll
+++ /dev/null
@@ -1,12 +0,0 @@
-; RUN: opt < %s -aa-eval |& grep {1 no alias response}
-
-declare noalias i32* @_Znwj(i32 %x) nounwind
-
-define i32 @foo() {
- %A = call i32* @_Znwj(i32 4)
- %B = call i32* @_Znwj(i32 4)
- store i32 1, i32* %A
- store i32 2, i32* %B
- %C = load i32* %A
- ret i32 %C
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2009-03-04-GEPNoalias.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2009-03-04-GEPNoalias.ll
deleted file mode 100644
index 3ab5d03..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2009-03-04-GEPNoalias.ll
+++ /dev/null
@@ -1,13 +0,0 @@
-; RUN: opt < %s -basicaa -gvn -S | grep load
-
-declare noalias i32* @noalias()
-
-define i32 @test(i32 %x) {
- %a = call i32* @noalias()
- store i32 1, i32* %a
- %b = getelementptr i32* %a, i32 %x
- store i32 2, i32* %b
-
- %c = load i32* %a
- ret i32 %c
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2009-10-13-AtomicModRef.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2009-10-13-AtomicModRef.ll
deleted file mode 100644
index 6475471..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2009-10-13-AtomicModRef.ll
+++ /dev/null
@@ -1,17 +0,0 @@
-; RUN: opt -gvn -instcombine -S < %s | FileCheck %s
-target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
-
-declare i8 @llvm.atomic.load.add.i8.p0i8(i8*, i8)
-
-define i8 @foo(i8* %ptr) {
- %P = getelementptr i8* %ptr, i32 0
- %Q = getelementptr i8* %ptr, i32 1
-; CHECK: getelementptr
- %X = load i8* %P
- %Y = call i8 @llvm.atomic.load.add.i8.p0i8(i8* %Q, i8 1)
- %Z = load i8* %P
-; CHECK-NOT: = load
- %A = sub i8 %X, %Z
- ret i8 %A
-; CHECK: ret i8 0
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/2009-10-13-GEP-BaseNoAlias.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/2009-10-13-GEP-BaseNoAlias.ll
deleted file mode 100644
index 771636f..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/2009-10-13-GEP-BaseNoAlias.ll
+++ /dev/null
@@ -1,30 +0,0 @@
-; RUN: opt < %s -aa-eval -print-all-alias-modref-info -disable-output |& grep {NoAlias:.*%P,.*@Z}
-; If GEP base doesn't alias Z, then GEP doesn't alias Z.
-; rdar://7282591
-
- at Y = common global i32 0
- at Z = common global i32 0
-
-define void @foo(i32 %cond) nounwind ssp {
-entry:
- %a = alloca i32
- %tmp = icmp ne i32 %cond, 0
- br i1 %tmp, label %bb, label %bb1
-
-bb:
- %b = getelementptr i32* %a, i32 0
- br label %bb2
-
-bb1:
- br label %bb2
-
-bb2:
- %P = phi i32* [ %b, %bb ], [ @Y, %bb1 ]
- %tmp1 = load i32* @Z, align 4
- store i32 123, i32* %P, align 4
- %tmp2 = load i32* @Z, align 4
- br label %return
-
-return:
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/byval.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/byval.ll
deleted file mode 100644
index cdcafdf..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/byval.ll
+++ /dev/null
@@ -1,18 +0,0 @@
-; RUN: opt < %s -gvn -S | grep {ret i32 1}
-target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
-target triple = "i686-apple-darwin8"
- %struct.x = type { i32, i32, i32, i32 }
- at g = weak global i32 0 ; <i32*> [#uses=1]
-
-define i32 @foo(%struct.x* byval %a) nounwind {
-entry:
- %tmp1 = tail call i32 (...)* @bar( %struct.x* %a ) nounwind ; <i32> [#uses=0]
- %tmp2 = getelementptr %struct.x* %a, i32 0, i32 0 ; <i32*> [#uses=2]
- store i32 1, i32* %tmp2, align 4
- store i32 2, i32* @g, align 4
- %tmp4 = load i32* %tmp2, align 4 ; <i32> [#uses=1]
- ret i32 %tmp4
-}
-
-declare i32 @bar(...)
-
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/cas.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/cas.ll
deleted file mode 100644
index 4ce7811..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/cas.ll
+++ /dev/null
@@ -1,15 +0,0 @@
-; RUN: opt < %s -basicaa -gvn -instcombine -S | grep {ret i32 0}
-
- at flag0 = internal global i32 zeroinitializer
- at turn = internal global i32 zeroinitializer
-
-
-define i32 @main() {
- %a = load i32* @flag0
- %b = tail call i32 @llvm.atomic.swap.i32.p0i32(i32* @turn, i32 1)
- %c = load i32* @flag0
- %d = sub i32 %a, %c
- ret i32 %d
-}
-
-declare i32 @llvm.atomic.swap.i32.p0i32(i32*, i32) nounwind
\ No newline at end of file
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/constant-over-index.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/constant-over-index.ll
deleted file mode 100644
index 95f94d0..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/constant-over-index.ll
+++ /dev/null
@@ -1,27 +0,0 @@
-; RUN: opt < %s -aa-eval -print-all-alias-modref-info \
-; RUN: |& grep {MayAlias: double\\* \[%\]p.0.i.0, double\\* \[%\]p3\$}
-; PR4267
-
-; %p3 is equal to %p.0.i.0 on the second iteration of the loop,
-; so MayAlias is needed.
-
-define void @foo([3 x [3 x double]]* noalias %p) {
-entry:
- %p3 = getelementptr [3 x [3 x double]]* %p, i64 0, i64 0, i64 3
- br label %loop
-
-loop:
- %i = phi i64 [ 0, %entry ], [ %i.next, %loop ]
-
- %p.0.i.0 = getelementptr [3 x [3 x double]]* %p, i64 0, i64 %i, i64 0
-
- volatile store double 0.0, double* %p3
- volatile store double 0.1, double* %p.0.i.0
-
- %i.next = add i64 %i, 1
- %cmp = icmp slt i64 %i.next, 3
- br i1 %cmp, label %loop, label %exit
-
-exit:
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/dg.exp b/libclamav/c++/llvm/test/Analysis/BasicAA/dg.exp
deleted file mode 100644
index f200589..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/dg.exp
+++ /dev/null
@@ -1,3 +0,0 @@
-load_lib llvm.exp
-
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/featuretest.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/featuretest.ll
deleted file mode 100644
index 50dc886..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/featuretest.ll
+++ /dev/null
@@ -1,83 +0,0 @@
-; This testcase tests for various features the basicaa test should be able to
-; determine, as noted in the comments.
-
-; RUN: opt < %s -basicaa -gvn -instcombine -dce -S | not grep REMOVE
-target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
-
- at Global = external global { i32 }
-
-; Array test: Test that operations on one local array do not invalidate
-; operations on another array. Important for scientific codes.
-;
-define i32 @different_array_test(i64 %A, i64 %B) {
- %Array1 = alloca i32, i32 100
- %Array2 = alloca i32, i32 200
-
- %pointer = getelementptr i32* %Array1, i64 %A
- %val = load i32* %pointer
-
- %pointer2 = getelementptr i32* %Array2, i64 %B
- store i32 7, i32* %pointer2
-
- %REMOVE = load i32* %pointer ; redundant with above load
- %retval = sub i32 %REMOVE, %val
- ret i32 %retval
-}
-
-; Constant index test: Constant indexes into the same array should not
-; interfere with each other. Again, important for scientific codes.
-;
-define i32 @constant_array_index_test() {
- %Array = alloca i32, i32 100
- %P1 = getelementptr i32* %Array, i64 7
- %P2 = getelementptr i32* %Array, i64 6
-
- %A = load i32* %P1
- store i32 1, i32* %P2 ; Should not invalidate load
- %BREMOVE = load i32* %P1
- %Val = sub i32 %A, %BREMOVE
- ret i32 %Val
-}
-
-; Test that if two pointers are spaced out by a constant getelementptr, that
-; they cannot alias.
-define i32 @gep_distance_test(i32* %A) {
- %REMOVEu = load i32* %A
- %B = getelementptr i32* %A, i64 2 ; Cannot alias A
- store i32 7, i32* %B
- %REMOVEv = load i32* %A
- %r = sub i32 %REMOVEu, %REMOVEv
- ret i32 %r
-}
-
-; Test that if two pointers are spaced out by a constant offset, that they
-; cannot alias, even if there is a variable offset between them...
-define i32 @gep_distance_test2({i32,i32}* %A, i64 %distance) {
- %A1 = getelementptr {i32,i32}* %A, i64 0, i32 0
- %REMOVEu = load i32* %A1
- %B = getelementptr {i32,i32}* %A, i64 %distance, i32 1
- store i32 7, i32* %B ; B cannot alias A, it's at least 4 bytes away
- %REMOVEv = load i32* %A1
- %r = sub i32 %REMOVEu, %REMOVEv
- ret i32 %r
-}
-
-; Test that we can do funny pointer things and that distance calc will still
-; work.
-define i32 @gep_distance_test3(i32 * %A) {
- %X = load i32* %A
- %B = bitcast i32* %A to i8*
- %C = getelementptr i8* %B, i64 4
- %Y = load i8* %C
- ret i32 8
-}
-
-; Test that we can disambiguate globals reached through constantexpr geps
-define i32 @constexpr_test() {
- %X = alloca i32
- %Y = load i32* %X
- store i32 5, i32* getelementptr ({ i32 }* @Global, i64 0, i32 0)
- %REMOVE = load i32* %X
- %retval = sub i32 %Y, %REMOVE
- ret i32 %retval
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/gcsetest.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/gcsetest.ll
deleted file mode 100644
index a903362..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/gcsetest.ll
+++ /dev/null
@@ -1,46 +0,0 @@
-; Test that GCSE uses basicaa to do alias analysis, which is capable of
-; disambiguating some obvious cases. All loads should be removable in
-; this testcase.
-
-; RUN: opt < %s -basicaa -gvn -instcombine -dce -S \
-; RUN: | not grep load
-
- at A = global i32 7
- at B = global i32 8
-
-define i32 @test() {
- %A1 = load i32* @A
-
- store i32 123, i32* @B ; Store cannot alias @A
-
- %A2 = load i32* @A
- %X = sub i32 %A1, %A2
- ret i32 %X
-}
-
-define i32 @test2() {
- %A1 = load i32* @A
- br label %Loop
-Loop:
- %AP = phi i32 [0, %0], [%X, %Loop]
- store i32 %AP, i32* @B ; Store cannot alias @A
-
- %A2 = load i32* @A
- %X = sub i32 %A1, %A2
- %c = icmp eq i32 %X, 0
- br i1 %c, label %out, label %Loop
-
-out:
- ret i32 %X
-}
-
-declare void @external()
-
-define i32 @test3() {
- %X = alloca i32
- store i32 7, i32* %X
- call void @external()
- %V = load i32* %X
- ret i32 %V
-}
-
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/gep-alias.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/gep-alias.ll
deleted file mode 100644
index 1ed0312..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/gep-alias.ll
+++ /dev/null
@@ -1,171 +0,0 @@
-; RUN: opt < %s -gvn -instcombine -S |& FileCheck %s
-
-target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
-
-; Make sure that basicaa thinks R and r are must aliases.
-define i32 @test1(i8 * %P) {
-entry:
- %Q = bitcast i8* %P to {i32, i32}*
- %R = getelementptr {i32, i32}* %Q, i32 0, i32 1
- %S = load i32* %R
-
- %q = bitcast i8* %P to {i32, i32}*
- %r = getelementptr {i32, i32}* %q, i32 0, i32 1
- %s = load i32* %r
-
- %t = sub i32 %S, %s
- ret i32 %t
-; CHECK: @test1
-; CHECK: ret i32 0
-}
-
-define i32 @test2(i8 * %P) {
-entry:
- %Q = bitcast i8* %P to {i32, i32, i32}*
- %R = getelementptr {i32, i32, i32}* %Q, i32 0, i32 1
- %S = load i32* %R
-
- %r = getelementptr {i32, i32, i32}* %Q, i32 0, i32 2
- store i32 42, i32* %r
-
- %s = load i32* %R
-
- %t = sub i32 %S, %s
- ret i32 %t
-; CHECK: @test2
-; CHECK: ret i32 0
-}
-
-
-; This was a miscompilation.
-define i32 @test3({float, {i32, i32, i32}}* %P) {
-entry:
- %P2 = getelementptr {float, {i32, i32, i32}}* %P, i32 0, i32 1
- %R = getelementptr {i32, i32, i32}* %P2, i32 0, i32 1
- %S = load i32* %R
-
- %r = getelementptr {i32, i32, i32}* %P2, i32 0, i32 2
- store i32 42, i32* %r
-
- %s = load i32* %R
-
- %t = sub i32 %S, %s
- ret i32 %t
-; CHECK: @test3
-; CHECK: ret i32 0
-}
-
-
-;; This is reduced from the SmallPtrSet constructor.
-%SmallPtrSetImpl = type { i8**, i32, i32, i32, [1 x i8*] }
-%SmallPtrSet64 = type { %SmallPtrSetImpl, [64 x i8*] }
-
-define i32 @test4(%SmallPtrSet64* %P) {
-entry:
- %tmp2 = getelementptr inbounds %SmallPtrSet64* %P, i64 0, i32 0, i32 1
- store i32 64, i32* %tmp2, align 8
- %tmp3 = getelementptr inbounds %SmallPtrSet64* %P, i64 0, i32 0, i32 4, i64 64
- store i8* null, i8** %tmp3, align 8
- %tmp4 = load i32* %tmp2, align 8
- ret i32 %tmp4
-; CHECK: @test4
-; CHECK: ret i32 64
-}
-
-; P[i] != p[i+1]
-define i32 @test5(i32* %p, i64 %i) {
- %pi = getelementptr i32* %p, i64 %i
- %i.next = add i64 %i, 1
- %pi.next = getelementptr i32* %p, i64 %i.next
- %x = load i32* %pi
- store i32 42, i32* %pi.next
- %y = load i32* %pi
- %z = sub i32 %x, %y
- ret i32 %z
-; CHECK: @test5
-; CHECK: ret i32 0
-}
-
-; P[i] != p[(i*4)|1]
-define i32 @test6(i32* %p, i64 %i1) {
- %i = shl i64 %i1, 2
- %pi = getelementptr i32* %p, i64 %i
- %i.next = or i64 %i, 1
- %pi.next = getelementptr i32* %p, i64 %i.next
- %x = load i32* %pi
- store i32 42, i32* %pi.next
- %y = load i32* %pi
- %z = sub i32 %x, %y
- ret i32 %z
-; CHECK: @test6
-; CHECK: ret i32 0
-}
-
-; P[1] != P[i*4]
-define i32 @test7(i32* %p, i64 %i) {
- %pi = getelementptr i32* %p, i64 1
- %i.next = shl i64 %i, 2
- %pi.next = getelementptr i32* %p, i64 %i.next
- %x = load i32* %pi
- store i32 42, i32* %pi.next
- %y = load i32* %pi
- %z = sub i32 %x, %y
- ret i32 %z
-; CHECK: @test7
-; CHECK: ret i32 0
-}
-
-; P[zext(i)] != p[zext(i+1)]
-; PR1143
-define i32 @test8(i32* %p, i32 %i) {
- %i1 = zext i32 %i to i64
- %pi = getelementptr i32* %p, i64 %i1
- %i.next = add i32 %i, 1
- %i.next2 = zext i32 %i.next to i64
- %pi.next = getelementptr i32* %p, i64 %i.next2
- %x = load i32* %pi
- store i32 42, i32* %pi.next
- %y = load i32* %pi
- %z = sub i32 %x, %y
- ret i32 %z
-; CHECK: @test8
-; CHECK: ret i32 0
-}
-
-define i8 @test9([4 x i8] *%P, i32 %i, i32 %j) {
- %i2 = shl i32 %i, 2
- %i3 = add i32 %i2, 1
- ; P2 = P + 1 + 4*i
- %P2 = getelementptr [4 x i8] *%P, i32 0, i32 %i3
-
- %j2 = shl i32 %j, 2
-
- ; P4 = P + 4*j
- %P4 = getelementptr [4 x i8]* %P, i32 0, i32 %j2
-
- %x = load i8* %P2
- store i8 42, i8* %P4
- %y = load i8* %P2
- %z = sub i8 %x, %y
- ret i8 %z
-; CHECK: @test9
-; CHECK: ret i8 0
-}
-
-define i8 @test10([4 x i8] *%P, i32 %i) {
- %i2 = shl i32 %i, 2
- %i3 = add i32 %i2, 4
- ; P2 = P + 4 + 4*i
- %P2 = getelementptr [4 x i8] *%P, i32 0, i32 %i3
-
- ; P4 = P + 4*i
- %P4 = getelementptr [4 x i8]* %P, i32 0, i32 %i2
-
- %x = load i8* %P2
- store i8 42, i8* %P4
- %y = load i8* %P2
- %z = sub i8 %x, %y
- ret i8 %z
-; CHECK: @test10
-; CHECK: ret i8 0
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/global-size.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/global-size.ll
deleted file mode 100644
index b9cbbcc..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/global-size.ll
+++ /dev/null
@@ -1,16 +0,0 @@
-; A store or load cannot alias a global if the accessed amount is larger then
-; the global.
-
-; RUN: opt < %s -basicaa -gvn -instcombine -S | not grep load
-target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
-
- at B = global i16 8 ; <i16*> [#uses=2]
-
-define i16 @test(i32* %P) {
- %X = load i16* @B ; <i16> [#uses=1]
- store i32 7, i32* %P
- %Y = load i16* @B ; <i16> [#uses=1]
- %Z = sub i16 %Y, %X ; <i16> [#uses=1]
- ret i16 %Z
-}
-
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/modref.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/modref.ll
deleted file mode 100644
index 4a61636..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/modref.ll
+++ /dev/null
@@ -1,125 +0,0 @@
-; RUN: opt < %s -basicaa -gvn -dse -S | FileCheck %s
-target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
-
-declare void @llvm.memset.i32(i8*, i8, i32, i32)
-declare void @llvm.memset.i8(i8*, i8, i8, i32)
-declare void @llvm.memcpy.i8(i8*, i8*, i8, i32)
-declare void @llvm.memcpy.i32(i8*, i8*, i32, i32)
-declare void @llvm.lifetime.end(i64, i8* nocapture)
-
-declare void @external(i32*)
-
-define i32 @test0(i8* %P) {
- %A = alloca i32
- call void @external(i32* %A)
-
- store i32 0, i32* %A
-
- call void @llvm.memset.i32(i8* %P, i8 0, i32 42, i32 1)
-
- %B = load i32* %A
- ret i32 %B
-
-; CHECK: @test0
-; CHECK: ret i32 0
-}
-
-declare void @llvm.memcpy.i8(i8*, i8*, i8, i32)
-
-define i8 @test1() {
-; CHECK: @test1
- %A = alloca i8
- %B = alloca i8
-
- store i8 2, i8* %B ;; Not written to by memcpy
-
- call void @llvm.memcpy.i8(i8* %A, i8* %B, i8 -1, i32 0)
-
- %C = load i8* %B
- ret i8 %C
-; CHECK: ret i8 2
-}
-
-define i8 @test2(i8* %P) {
-; CHECK: @test2
- %P2 = getelementptr i8* %P, i32 127
- store i8 1, i8* %P2 ;; Not dead across memset
- call void @llvm.memset.i8(i8* %P, i8 2, i8 127, i32 0)
- %A = load i8* %P2
- ret i8 %A
-; CHECK: ret i8 1
-}
-
-define i8 @test2a(i8* %P) {
-; CHECK: @test2
- %P2 = getelementptr i8* %P, i32 126
-
- ;; FIXME: DSE isn't zapping this dead store.
- store i8 1, i8* %P2 ;; Dead, clobbered by memset.
-
- call void @llvm.memset.i8(i8* %P, i8 2, i8 127, i32 0)
- %A = load i8* %P2
- ret i8 %A
-; CHECK-NOT: load
-; CHECK: ret i8 2
-}
-
-define void @test3(i8* %P, i8 %X) {
-; CHECK: @test3
-; CHECK-NOT: store
-; CHECK-NOT: %Y
- %Y = add i8 %X, 1 ;; Dead, because the only use (the store) is dead.
-
- %P2 = getelementptr i8* %P, i32 2
- store i8 %Y, i8* %P2 ;; Not read by lifetime.end, should be removed.
-; CHECK: store i8 2, i8* %P2
- call void @llvm.lifetime.end(i64 1, i8* %P)
- store i8 2, i8* %P2
-; CHECK-NOT: store
- ret void
-; CHECK: ret void
-}
-
-define void @test3a(i8* %P, i8 %X) {
-; CHECK: @test3a
- %Y = add i8 %X, 1 ;; Dead, because the only use (the store) is dead.
-
- %P2 = getelementptr i8* %P, i32 2
- store i8 %Y, i8* %P2 ;; FIXME: Killed by llvm.lifetime.end, should be zapped.
-; CHECK: store i8 %Y, i8* %P2
- call void @llvm.lifetime.end(i64 10, i8* %P)
- ret void
-; CHECK: ret void
-}
-
- at G1 = external global i32
- at G2 = external global [4000 x i32]
-
-define i32 @test4(i8* %P) {
- %tmp = load i32* @G1
- call void @llvm.memset.i32(i8* bitcast ([4000 x i32]* @G2 to i8*), i8 0, i32 4000, i32 1)
- %tmp2 = load i32* @G1
- %sub = sub i32 %tmp2, %tmp
- ret i32 %sub
-; CHECK: @test4
-; CHECK: load i32* @G
-; CHECK: memset.i32
-; CHECK-NOT: load
-; CHECK: sub i32 %tmp, %tmp
-}
-
-; Verify that basicaa is handling variable length memcpy, knowing it doesn't
-; write to G1.
-define i32 @test5(i8* %P, i32 %Len) {
- %tmp = load i32* @G1
- call void @llvm.memcpy.i32(i8* bitcast ([4000 x i32]* @G2 to i8*), i8* bitcast (i32* @G1 to i8*), i32 %Len, i32 1)
- %tmp2 = load i32* @G1
- %sub = sub i32 %tmp2, %tmp
- ret i32 %sub
-; CHECK: @test5
-; CHECK: load i32* @G
-; CHECK: memcpy.i32
-; CHECK-NOT: load
-; CHECK: sub i32 %tmp, %tmp
-}
-
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/no-escape-call.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/no-escape-call.ll
deleted file mode 100644
index ccabce9..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/no-escape-call.ll
+++ /dev/null
@@ -1,23 +0,0 @@
-; RUN: opt < %s -basicaa -gvn -instcombine -S | grep {ret i1 true}
-; PR2436
-target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
-target triple = "i386-apple-darwin8"
-
-define i1 @foo(i32 %i) nounwind {
-entry:
- %arr = alloca [10 x i8*] ; <[10 x i8*]*> [#uses=1]
- %tmp2 = call i8* @getPtr( ) nounwind ; <i8*> [#uses=2]
- %tmp4 = getelementptr [10 x i8*]* %arr, i32 0, i32 %i ; <i8**> [#uses=2]
- store i8* %tmp2, i8** %tmp4, align 4
- %tmp10 = getelementptr i8* %tmp2, i32 10 ; <i8*> [#uses=1]
- store i8 42, i8* %tmp10, align 1
- %tmp14 = load i8** %tmp4, align 4 ; <i8*> [#uses=1]
- %tmp16 = getelementptr i8* %tmp14, i32 10 ; <i8*> [#uses=1]
- %tmp17 = load i8* %tmp16, align 1 ; <i8> [#uses=1]
- %tmp19 = icmp eq i8 %tmp17, 42 ; <i1> [#uses=1]
- ret i1 %tmp19
-}
-
-declare i8* @getPtr()
-
-declare void @abort() noreturn nounwind
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/nocapture.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/nocapture.ll
deleted file mode 100644
index 7970fbb..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/nocapture.ll
+++ /dev/null
@@ -1,14 +0,0 @@
-; RUN: opt < %s -basicaa -gvn -instcombine -S | grep {ret i32 0}
-
-declare i32* @test(i32* nocapture)
-
-define i32 @test2() {
- %P = alloca i32
- %Q = call i32* @test(i32* %P)
- %a = load i32* %P
- store i32 4, i32* %Q ;; cannot clobber P since it is nocapture.
- %b = load i32* %P
- %c = sub i32 %a, %b
- ret i32 %c
-}
-
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/phi-aa.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/phi-aa.ll
deleted file mode 100644
index 0288960..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/phi-aa.ll
+++ /dev/null
@@ -1,29 +0,0 @@
-; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output |& grep {NoAlias:.*%P,.*@Z}
-; rdar://7282591
-
- at X = common global i32 0
- at Y = common global i32 0
- at Z = common global i32 0
-
-define void @foo(i32 %cond) nounwind ssp {
-entry:
- %"alloca point" = bitcast i32 0 to i32
- %tmp = icmp ne i32 %cond, 0
- br i1 %tmp, label %bb, label %bb1
-
-bb:
- br label %bb2
-
-bb1:
- br label %bb2
-
-bb2:
- %P = phi i32* [ @X, %bb ], [ @Y, %bb1 ]
- %tmp1 = load i32* @Z, align 4
- store i32 123, i32* %P, align 4
- %tmp2 = load i32* @Z, align 4
- br label %return
-
-return:
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/phi-and-select.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/phi-and-select.ll
deleted file mode 100644
index c69e824..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/phi-and-select.ll
+++ /dev/null
@@ -1,73 +0,0 @@
-; RUN: opt < %s -aa-eval -print-all-alias-modref-info -disable-output \
-; RUN: |& grep {NoAlias: double\\* \[%\]a, double\\* \[%\]b\$} | count 4
-
-; BasicAA should detect NoAliases in PHIs and Selects.
-
-; Two PHIs in the same block.
-define void @foo(i1 %m, double* noalias %x, double* noalias %y) {
-entry:
- br i1 %m, label %true, label %false
-
-true:
- br label %exit
-
-false:
- br label %exit
-
-exit:
- %a = phi double* [ %x, %true ], [ %y, %false ]
- %b = phi double* [ %x, %false ], [ %y, %true ]
- volatile store double 0.0, double* %a
- volatile store double 1.0, double* %b
- ret void
-}
-
-; Two selects with the same condition.
-define void @bar(i1 %m, double* noalias %x, double* noalias %y) {
-entry:
- %a = select i1 %m, double* %x, double* %y
- %b = select i1 %m, double* %y, double* %x
- volatile store double 0.000000e+00, double* %a
- volatile store double 1.000000e+00, double* %b
- ret void
-}
-
-; Two PHIs with disjoint sets of inputs.
-define void @qux(i1 %m, double* noalias %x, double* noalias %y,
- i1 %n, double* noalias %v, double* noalias %w) {
-entry:
- br i1 %m, label %true, label %false
-
-true:
- br label %exit
-
-false:
- br label %exit
-
-exit:
- %a = phi double* [ %x, %true ], [ %y, %false ]
- br i1 %n, label %ntrue, label %nfalse
-
-ntrue:
- br label %nexit
-
-nfalse:
- br label %nexit
-
-nexit:
- %b = phi double* [ %v, %ntrue ], [ %w, %nfalse ]
- volatile store double 0.0, double* %a
- volatile store double 1.0, double* %b
- ret void
-}
-
-; Two selects with disjoint sets of arms.
-define void @fin(i1 %m, double* noalias %x, double* noalias %y,
- i1 %n, double* noalias %v, double* noalias %w) {
-entry:
- %a = select i1 %m, double* %x, double* %y
- %b = select i1 %n, double* %v, double* %w
- volatile store double 0.000000e+00, double* %a
- volatile store double 1.000000e+00, double* %b
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/pure-const-dce.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/pure-const-dce.ll
deleted file mode 100644
index 54e6e79..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/pure-const-dce.ll
+++ /dev/null
@@ -1,33 +0,0 @@
-; RUN: opt < %s -basicaa -gvn -S | grep TestConst | count 2
-; RUN: opt < %s -basicaa -gvn -S | grep TestPure | count 3
-; RUN: opt < %s -basicaa -gvn -S | grep TestNone | count 4
- at g = global i32 0 ; <i32*> [#uses=1]
-
-define i32 @test() {
-entry:
- %tmp0 = call i32 @TestConst( i32 5 ) readnone ; <i32> [#uses=1]
- %tmp1 = call i32 @TestPure( i32 6 ) readonly ; <i32> [#uses=1]
- %tmp2 = call i32 @TestNone( i32 7 ) ; <i32> [#uses=1]
- store i32 1, i32* @g
- %tmp3 = call i32 @TestConst( i32 5 ) readnone ; <i32> [#uses=1]
- %tmp4 = call i32 @TestConst( i32 5 ) readnone ; <i32> [#uses=1]
- %tmp5 = call i32 @TestPure( i32 6 ) readonly ; <i32> [#uses=1]
- %tmp6 = call i32 @TestPure( i32 6 ) readonly ; <i32> [#uses=1]
- %tmp7 = call i32 @TestNone( i32 7 ) ; <i32> [#uses=1]
- %tmp8 = call i32 @TestNone( i32 7 ) ; <i32> [#uses=1]
- %sum0 = add i32 %tmp0, %tmp1 ; <i32> [#uses=1]
- %sum1 = add i32 %sum0, %tmp2 ; <i32> [#uses=1]
- %sum2 = add i32 %sum1, %tmp3 ; <i32> [#uses=1]
- %sum3 = add i32 %sum2, %tmp4 ; <i32> [#uses=1]
- %sum4 = add i32 %sum3, %tmp5 ; <i32> [#uses=1]
- %sum5 = add i32 %sum4, %tmp6 ; <i32> [#uses=1]
- %sum6 = add i32 %sum5, %tmp7 ; <i32> [#uses=1]
- %sum7 = add i32 %sum6, %tmp8 ; <i32> [#uses=1]
- ret i32 %sum7
-}
-
-declare i32 @TestConst(i32) readnone
-
-declare i32 @TestPure(i32) readonly
-
-declare i32 @TestNone(i32)
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/store-promote.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/store-promote.ll
deleted file mode 100644
index 33d0f3a..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/store-promote.ll
+++ /dev/null
@@ -1,54 +0,0 @@
-; Test that LICM uses basicaa to do alias analysis, which is capable of
-; disambiguating some obvious cases. If LICM is able to disambiguate the
-; two pointers, then the load should be hoisted, and the store sunk.
-
-; RUN: opt < %s -basicaa -licm -S | FileCheck %s
-target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
-
- at A = global i32 7 ; <i32*> [#uses=3]
- at B = global i32 8 ; <i32*> [#uses=2]
- at C = global [2 x i32] [ i32 4, i32 8 ] ; <[2 x i32]*> [#uses=2]
-
-define i32 @test1(i1 %c) {
- %Atmp = load i32* @A ; <i32> [#uses=2]
- br label %Loop
-
-Loop: ; preds = %Loop, %0
- %ToRemove = load i32* @A ; <i32> [#uses=1]
- store i32 %Atmp, i32* @B
- br i1 %c, label %Out, label %Loop
-
-Out: ; preds = %Loop
- %X = sub i32 %ToRemove, %Atmp ; <i32> [#uses=1]
- ret i32 %X
-
-; The Loop block should be empty after the load/store are promoted.
-; CHECK: @test1
-; CHECK: load i32* @B
-; CHECK: Loop:
-; CHECK-NEXT: br i1 %c, label %Out, label %Loop
-; CHECK: Out:
-; CHECK: store i32 %Atmp, i32* @B
-}
-
-define i32 @test2(i1 %c) {
- br label %Loop
-
-Loop: ; preds = %Loop, %0
- %AVal = load i32* @A ; <i32> [#uses=2]
- %C0 = getelementptr [2 x i32]* @C, i64 0, i64 0 ; <i32*> [#uses=1]
- store i32 %AVal, i32* %C0
- %BVal = load i32* @B ; <i32> [#uses=2]
- %C1 = getelementptr [2 x i32]* @C, i64 0, i64 1 ; <i32*> [#uses=1]
- store i32 %BVal, i32* %C1
- br i1 %c, label %Out, label %Loop
-
-Out: ; preds = %Loop
- %X = sub i32 %AVal, %BVal ; <i32> [#uses=1]
- ret i32 %X
-; The Loop block should be empty after the load/store are promoted.
-; CHECK: @test2
-; CHECK: Loop:
-; CHECK-NEXT: br i1 %c, label %Out, label %Loop
-}
-
diff --git a/libclamav/c++/llvm/test/Analysis/BasicAA/tailcall-modref.ll b/libclamav/c++/llvm/test/Analysis/BasicAA/tailcall-modref.ll
deleted file mode 100644
index f7d6c57..0000000
--- a/libclamav/c++/llvm/test/Analysis/BasicAA/tailcall-modref.ll
+++ /dev/null
@@ -1,16 +0,0 @@
-; RUN: opt < %s -basicaa -gvn -instcombine |\
-; RUN: llvm-dis | grep {ret i32 0}
-
-declare void @foo(i32*)
-
-declare void @bar()
-
-define i32 @test() {
- %A = alloca i32 ; <i32*> [#uses=3]
- call void @foo( i32* %A )
- %X = load i32* %A ; <i32> [#uses=1]
- tail call void @bar( )
- %Y = load i32* %A ; <i32> [#uses=1]
- %Z = sub i32 %X, %Y ; <i32> [#uses=1]
- ret i32 %Z
-}
diff --git a/libclamav/c++/llvm/test/Analysis/CallGraph/2008-09-09-DirectCall.ll b/libclamav/c++/llvm/test/Analysis/CallGraph/2008-09-09-DirectCall.ll
deleted file mode 100644
index 6e34209..0000000
--- a/libclamav/c++/llvm/test/Analysis/CallGraph/2008-09-09-DirectCall.ll
+++ /dev/null
@@ -1,13 +0,0 @@
-; RUN: opt < %s -print-callgraph -disable-output |& \
-; RUN: grep {Calls function 'callee'} | count 2
-
-define internal void @callee(...) {
-entry:
- unreachable
-}
-
-define void @caller() {
-entry:
- call void (...)* @callee( void (...)* @callee )
- unreachable
-}
diff --git a/libclamav/c++/llvm/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll b/libclamav/c++/llvm/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll
deleted file mode 100644
index 12849b7..0000000
--- a/libclamav/c++/llvm/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll
+++ /dev/null
@@ -1,8 +0,0 @@
-; RUN: opt < %s -print-callgraph -disable-output |& \
-; RUN: grep {Calls function}
-
- at a = global void ()* @f ; <void ()**> [#uses=0]
-
-define internal void @f() {
- unreachable
-}
diff --git a/libclamav/c++/llvm/test/Analysis/CallGraph/dg.exp b/libclamav/c++/llvm/test/Analysis/CallGraph/dg.exp
deleted file mode 100644
index f200589..0000000
--- a/libclamav/c++/llvm/test/Analysis/CallGraph/dg.exp
+++ /dev/null
@@ -1,3 +0,0 @@
-load_lib llvm.exp
-
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
diff --git a/libclamav/c++/llvm/test/Analysis/Dominators/2006-10-02-BreakCritEdges.ll b/libclamav/c++/llvm/test/Analysis/Dominators/2006-10-02-BreakCritEdges.ll
deleted file mode 100644
index e31f416..0000000
--- a/libclamav/c++/llvm/test/Analysis/Dominators/2006-10-02-BreakCritEdges.ll
+++ /dev/null
@@ -1,20 +0,0 @@
-; RUN: opt < %s -domtree -break-crit-edges -analyze \
-; RUN: -domtree | grep {3.*%brtrue }
-; PR932
-
-declare void @use1(i32)
-
-define void @f(i32 %i, i1 %c) {
-entry:
- %A = icmp eq i32 %i, 0 ; <i1> [#uses=1]
- br i1 %A, label %brtrue, label %brfalse
-
-brtrue: ; preds = %brtrue, %entry
- %B = phi i1 [ true, %brtrue ], [ false, %entry ] ; <i1> [#uses=1]
- call void @use1( i32 %i )
- br i1 %B, label %brtrue, label %brfalse
-
-brfalse: ; preds = %brtrue, %entry
- call void @use1( i32 %i )
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/Dominators/2007-01-14-BreakCritEdges.ll b/libclamav/c++/llvm/test/Analysis/Dominators/2007-01-14-BreakCritEdges.ll
deleted file mode 100644
index 96dc739..0000000
--- a/libclamav/c++/llvm/test/Analysis/Dominators/2007-01-14-BreakCritEdges.ll
+++ /dev/null
@@ -1,187 +0,0 @@
-; RUN: opt < %s -domtree -break-crit-edges -domtree -disable-output
-; PR1110
-
- %struct.OggVorbis_File = type { i8*, i32, i64, i64, %struct.ogg_sync_state, i32, i64*, i64*, i32*, i64*, %struct.vorbis_info*, %struct.vorbis_comment*, i64, i32, i32, i32, double, double, %struct.ogg_stream_state, %struct.vorbis_dsp_state, %struct.vorbis_block, %struct.ov_callbacks }
- %struct.alloc_chain = type { i8*, %struct.alloc_chain* }
- %struct.ogg_stream_state = type { i8*, i32, i32, i32, i32*, i64*, i32, i32, i32, i32, [282 x i8], i32, i32, i32, i32, i32, i64, i64 }
- %struct.ogg_sync_state = type { i8*, i32, i32, i32, i32, i32, i32 }
- %struct.oggpack_buffer = type { i32, i32, i8*, i8*, i32 }
- %struct.ov_callbacks = type { i32 (i8*, i32, i32, i8*)*, i32 (i8*, i64, i32)*, i32 (i8*)*, i32 (i8*)* }
- %struct.vorbis_block = type { float**, %struct.oggpack_buffer, i32, i32, i32, i32, i32, i32, i64, i64, %struct.vorbis_dsp_state*, i8*, i32, i32, i32, %struct.alloc_chain*, i32, i32, i32, i32, i8* }
- %struct.vorbis_comment = type { i8**, i32*, i32, i8* }
- %struct.vorbis_dsp_state = type { i32, %struct.vorbis_info*, float**, float**, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i8* }
- %struct.vorbis_info = type { i32, i32, i32, i32, i32, i32, i32, i8* }
-
-
-define void @ov_read() {
-entry:
- br i1 false, label %bb, label %return
-
-bb: ; preds = %cond_next22, %entry
- br i1 false, label %cond_true8, label %cond_next15
-
-cond_true8: ; preds = %bb
- br i1 false, label %cond_next15, label %bb29
-
-cond_next15: ; preds = %cond_true8, %bb
- br i1 false, label %return, label %cond_next22
-
-cond_next22: ; preds = %cond_next15
- br i1 false, label %bb, label %return
-
-bb29: ; preds = %cond_true8
- br i1 false, label %cond_true32, label %return
-
-cond_true32: ; preds = %bb29
- br i1 false, label %cond_false37.i, label %cond_true.i11
-
-cond_true.i11: ; preds = %cond_true32
- br i1 false, label %cond_true8.i, label %ov_info.exit
-
-cond_true8.i: ; preds = %cond_true.i11
- br i1 false, label %cond_true44, label %cond_next48
-
-cond_false37.i: ; preds = %cond_true32
- br label %ov_info.exit
-
-ov_info.exit: ; preds = %cond_false37.i, %cond_true.i11
- br i1 false, label %cond_true44, label %cond_next48
-
-cond_true44: ; preds = %ov_info.exit, %cond_true8.i
- br label %cond_next48
-
-cond_next48: ; preds = %cond_true44, %ov_info.exit, %cond_true8.i
- br i1 false, label %cond_next53, label %return
-
-cond_next53: ; preds = %cond_next48
- br i1 false, label %cond_true56, label %cond_false97
-
-cond_true56: ; preds = %cond_next53
- br i1 false, label %bb85, label %cond_next304
-
-bb63: ; preds = %bb85
- br i1 false, label %cond_next78, label %cond_false73
-
-cond_false73: ; preds = %bb63
- br i1 false, label %cond_true76, label %cond_next78
-
-cond_true76: ; preds = %cond_false73
- br label %cond_next78
-
-cond_next78: ; preds = %cond_true76, %cond_false73, %bb63
- br label %bb85
-
-bb85: ; preds = %bb89, %cond_next78, %cond_true56
- br i1 false, label %bb63, label %bb89
-
-bb89: ; preds = %bb85
- br i1 false, label %bb85, label %cond_next304
-
-cond_false97: ; preds = %cond_next53
- br i1 false, label %cond_true108, label %bb248
-
-cond_true108: ; preds = %cond_false97
- br i1 false, label %bb196, label %bb149
-
-bb112: ; preds = %bb149, %bb146
- br i1 false, label %bb119, label %bb146
-
-bb119: ; preds = %cond_next134, %bb112
- br i1 false, label %cond_next134, label %cond_false129
-
-cond_false129: ; preds = %bb119
- br i1 false, label %cond_true132, label %cond_next134
-
-cond_true132: ; preds = %cond_false129
- br label %cond_next134
-
-cond_next134: ; preds = %cond_true132, %cond_false129, %bb119
- br i1 false, label %bb119, label %bb146
-
-bb146: ; preds = %cond_next134, %bb112
- br i1 false, label %bb112, label %cond_next304
-
-bb149: ; preds = %cond_true108
- br i1 false, label %bb112, label %cond_next304
-
-bb155: ; preds = %bb196, %bb193
- br i1 false, label %bb165, label %bb193
-
-bb165: ; preds = %cond_next180, %bb155
- br i1 false, label %cond_next180, label %cond_false175
-
-cond_false175: ; preds = %bb165
- br i1 false, label %cond_true178, label %cond_next180
-
-cond_true178: ; preds = %cond_false175
- br label %cond_next180
-
-cond_next180: ; preds = %cond_true178, %cond_false175, %bb165
- br i1 false, label %bb165, label %bb193
-
-bb193: ; preds = %cond_next180, %bb155
- br i1 false, label %bb155, label %cond_next304
-
-bb196: ; preds = %cond_true108
- br i1 false, label %bb155, label %cond_next304
-
-bb207: ; preds = %bb241
- br i1 false, label %cond_next225, label %cond_false220
-
-cond_false220: ; preds = %bb207
- br i1 false, label %cond_true223, label %cond_next225
-
-cond_true223: ; preds = %cond_false220
- br label %cond_next225
-
-cond_next225: ; preds = %cond_true223, %cond_false220, %bb207
- br label %bb241
-
-bb241: ; preds = %bb248, %bb245, %cond_next225
- br i1 false, label %bb207, label %bb245
-
-bb245: ; preds = %bb241
- br i1 false, label %bb241, label %cond_next304
-
-bb248: ; preds = %cond_false97
- br i1 false, label %bb241, label %cond_next304
-
-bb256: ; preds = %bb290
- br i1 false, label %cond_next274, label %cond_false269
-
-cond_false269: ; preds = %bb256
- br i1 false, label %cond_true272, label %cond_next274
-
-cond_true272: ; preds = %cond_false269
- br label %cond_next274
-
-cond_next274: ; preds = %cond_true272, %cond_false269, %bb256
- br label %bb290
-
-bb290: ; preds = %bb294, %cond_next274
- br i1 false, label %bb256, label %bb294
-
-bb294: ; preds = %bb290
- br i1 false, label %bb290, label %cond_next304
-
-cond_next304: ; preds = %bb294, %bb248, %bb245, %bb196, %bb193, %bb149, %bb146, %bb89, %cond_true56
- br i1 false, label %cond_next11.i, label %cond_true.i
-
-cond_true.i: ; preds = %cond_next304
- br i1 false, label %vorbis_synthesis_read.exit, label %cond_next11.i
-
-cond_next11.i: ; preds = %cond_true.i, %cond_next304
- br label %vorbis_synthesis_read.exit
-
-vorbis_synthesis_read.exit: ; preds = %cond_next11.i, %cond_true.i
- br i1 false, label %cond_next321, label %cond_true316
-
-cond_true316: ; preds = %vorbis_synthesis_read.exit
- ret void
-
-cond_next321: ; preds = %vorbis_synthesis_read.exit
- ret void
-
-return: ; preds = %cond_next48, %bb29, %cond_next22, %cond_next15, %entry
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/Dominators/2007-07-11-SplitBlock.ll b/libclamav/c++/llvm/test/Analysis/Dominators/2007-07-11-SplitBlock.ll
deleted file mode 100644
index 52fdd2b..0000000
--- a/libclamav/c++/llvm/test/Analysis/Dominators/2007-07-11-SplitBlock.ll
+++ /dev/null
@@ -1,21 +0,0 @@
-; RUN: opt < %s -loop-rotate -loop-unswitch -disable-output
-
-define i32 @stringSearch_Clib(i32 %count) {
-entry:
- br i1 false, label %bb36, label %bb44
-
-cond_true20: ; preds = %bb36
- %tmp33 = add i32 0, 0 ; <i32> [#uses=1]
- br label %bb36
-
-bb36: ; preds = %cond_true20, %entry
- %c.2 = phi i32 [ %tmp33, %cond_true20 ], [ 0, %entry ] ; <i32> [#uses=1]
- br i1 false, label %cond_true20, label %bb41
-
-bb41: ; preds = %bb36
- %c.2.lcssa = phi i32 [ %c.2, %bb36 ] ; <i32> [#uses=0]
- ret i32 0
-
-bb44: ; preds = %entry
- ret i32 0
-}
diff --git a/libclamav/c++/llvm/test/Analysis/Dominators/2007-07-12-SplitBlock.ll b/libclamav/c++/llvm/test/Analysis/Dominators/2007-07-12-SplitBlock.ll
deleted file mode 100644
index b46f0c7..0000000
--- a/libclamav/c++/llvm/test/Analysis/Dominators/2007-07-12-SplitBlock.ll
+++ /dev/null
@@ -1,13 +0,0 @@
-; RUN: opt < %s -loop-rotate -licm -loop-unswitch -disable-output
-
-define i32 @main(i32 %argc, i8** %argv) {
-entry:
- br label %bb7
-
-bb7: ; preds = %bb7, %entry
- %tmp54 = icmp slt i32 0, 2000000 ; <i1> [#uses=1]
- br i1 %tmp54, label %bb7, label %bb56
-
-bb56: ; preds = %bb7
- ret i32 0
-}
diff --git a/libclamav/c++/llvm/test/Analysis/Dominators/dg.exp b/libclamav/c++/llvm/test/Analysis/Dominators/dg.exp
deleted file mode 100644
index f200589..0000000
--- a/libclamav/c++/llvm/test/Analysis/Dominators/dg.exp
+++ /dev/null
@@ -1,3 +0,0 @@
-load_lib llvm.exp
-
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
diff --git a/libclamav/c++/llvm/test/Analysis/GlobalsModRef/2008-09-03-ReadGlobals.ll b/libclamav/c++/llvm/test/Analysis/GlobalsModRef/2008-09-03-ReadGlobals.ll
deleted file mode 100644
index 17ace8a..0000000
--- a/libclamav/c++/llvm/test/Analysis/GlobalsModRef/2008-09-03-ReadGlobals.ll
+++ /dev/null
@@ -1,18 +0,0 @@
-; RUN: opt < %s -globalsmodref-aa -gvn -S | grep call | count 2
-
- at g = internal global i32 0 ; <i32*> [#uses=2]
-
-define i32 @r() {
- %tmp = load i32* @g ; <i32> [#uses=1]
- ret i32 %tmp
-}
-
-define i32 @f() {
-entry:
- %tmp = call i32 @e( ) ; <i32> [#uses=1]
- store i32 %tmp, i32* @g
- %tmp2 = call i32 @e( ) ; <i32> [#uses=1]
- ret i32 %tmp2
-}
-
-declare i32 @e() readonly ; might call @r
diff --git a/libclamav/c++/llvm/test/Analysis/GlobalsModRef/aliastest.ll b/libclamav/c++/llvm/test/Analysis/GlobalsModRef/aliastest.ll
deleted file mode 100644
index 3e5d119..0000000
--- a/libclamav/c++/llvm/test/Analysis/GlobalsModRef/aliastest.ll
+++ /dev/null
@@ -1,9 +0,0 @@
-; RUN: opt < %s -globalsmodref-aa -gvn -S | not grep load
- at X = internal global i32 4 ; <i32*> [#uses=1]
-
-define i32 @test(i32* %P) {
- store i32 7, i32* %P
- store i32 12, i32* @X
- %V = load i32* %P ; <i32> [#uses=1]
- ret i32 %V
-}
diff --git a/libclamav/c++/llvm/test/Analysis/GlobalsModRef/chaining-analysis.ll b/libclamav/c++/llvm/test/Analysis/GlobalsModRef/chaining-analysis.ll
deleted file mode 100644
index b1d4593..0000000
--- a/libclamav/c++/llvm/test/Analysis/GlobalsModRef/chaining-analysis.ll
+++ /dev/null
@@ -1,20 +0,0 @@
-; RUN: opt < %s -globalsmodref-aa -gvn -S | not grep load
-
-; This test requires the use of previous analyses to determine that
-; doesnotmodX does not modify X (because 'sin' doesn't).
-
- at X = internal global i32 4 ; <i32*> [#uses=2]
-
-declare double @sin(double) readnone
-
-define i32 @test(i32* %P) {
- store i32 12, i32* @X
- call double @doesnotmodX( double 1.000000e+00 ) ; <double>:1 [#uses=0]
- %V = load i32* @X ; <i32> [#uses=1]
- ret i32 %V
-}
-
-define double @doesnotmodX(double %V) {
- %V2 = call double @sin( double %V ) readnone ; <double> [#uses=1]
- ret double %V2
-}
diff --git a/libclamav/c++/llvm/test/Analysis/GlobalsModRef/dg.exp b/libclamav/c++/llvm/test/Analysis/GlobalsModRef/dg.exp
deleted file mode 100644
index f200589..0000000
--- a/libclamav/c++/llvm/test/Analysis/GlobalsModRef/dg.exp
+++ /dev/null
@@ -1,3 +0,0 @@
-load_lib llvm.exp
-
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
diff --git a/libclamav/c++/llvm/test/Analysis/GlobalsModRef/indirect-global.ll b/libclamav/c++/llvm/test/Analysis/GlobalsModRef/indirect-global.ll
deleted file mode 100644
index 4074909..0000000
--- a/libclamav/c++/llvm/test/Analysis/GlobalsModRef/indirect-global.ll
+++ /dev/null
@@ -1,20 +0,0 @@
-; RUN: opt < %s -globalsmodref-aa -gvn -instcombine -S | \
-; RUN: grep {ret i32 0}
-
- at G = internal global i32* null ; <i32**> [#uses=3]
-
-define void @test() {
- %A = malloc i32 ; <i32*> [#uses=1]
- store i32* %A, i32** @G
- ret void
-}
-
-define i32 @test1(i32* %P) {
- %g1 = load i32** @G ; <i32*> [#uses=2]
- %h1 = load i32* %g1 ; <i32> [#uses=1]
- store i32 123, i32* %P
- %g2 = load i32** @G ; <i32*> [#uses=0]
- %h2 = load i32* %g1 ; <i32> [#uses=1]
- %X = sub i32 %h1, %h2 ; <i32> [#uses=1]
- ret i32 %X
-}
diff --git a/libclamav/c++/llvm/test/Analysis/GlobalsModRef/modreftest.ll b/libclamav/c++/llvm/test/Analysis/GlobalsModRef/modreftest.ll
deleted file mode 100644
index 257c0ee..0000000
--- a/libclamav/c++/llvm/test/Analysis/GlobalsModRef/modreftest.ll
+++ /dev/null
@@ -1,13 +0,0 @@
-; RUN: opt < %s -globalsmodref-aa -gvn -S | not grep load
- at X = internal global i32 4 ; <i32*> [#uses=2]
-
-define i32 @test(i32* %P) {
- store i32 12, i32* @X
- call void @doesnotmodX( )
- %V = load i32* @X ; <i32> [#uses=1]
- ret i32 %V
-}
-
-define void @doesnotmodX() {
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/GlobalsModRef/purecse.ll b/libclamav/c++/llvm/test/Analysis/GlobalsModRef/purecse.ll
deleted file mode 100644
index 994aff8..0000000
--- a/libclamav/c++/llvm/test/Analysis/GlobalsModRef/purecse.ll
+++ /dev/null
@@ -1,23 +0,0 @@
-; Test that pure functions are cse'd away
-; RUN: opt < %s -globalsmodref-aa -gvn -instcombine | \
-; RUN: llvm-dis | not grep sub
-
-define i32 @pure(i32 %X) {
- %Y = add i32 %X, 1 ; <i32> [#uses=1]
- ret i32 %Y
-}
-
-define i32 @test1(i32 %X) {
- %A = call i32 @pure( i32 %X ) ; <i32> [#uses=1]
- %B = call i32 @pure( i32 %X ) ; <i32> [#uses=1]
- %C = sub i32 %A, %B ; <i32> [#uses=1]
- ret i32 %C
-}
-
-define i32 @test2(i32 %X, i32* %P) {
- %A = call i32 @pure( i32 %X ) ; <i32> [#uses=1]
- store i32 %X, i32* %P ;; Does not invalidate 'pure' call.
- %B = call i32 @pure( i32 %X ) ; <i32> [#uses=1]
- %C = sub i32 %A, %B ; <i32> [#uses=1]
- ret i32 %C
-}
diff --git a/libclamav/c++/llvm/test/Analysis/LoopDependenceAnalysis/alias.ll b/libclamav/c++/llvm/test/Analysis/LoopDependenceAnalysis/alias.ll
deleted file mode 100644
index 97be3fd..0000000
--- a/libclamav/c++/llvm/test/Analysis/LoopDependenceAnalysis/alias.ll
+++ /dev/null
@@ -1,44 +0,0 @@
-; RUN: opt < %s -analyze -lda | FileCheck %s
-
-;; x[5] = x[6] // with x being a pointer passed as argument
-
-define void @f1(i32* nocapture %xptr) nounwind {
-entry:
- %x.ld.addr = getelementptr i32* %xptr, i64 6
- %x.st.addr = getelementptr i32* %xptr, i64 5
- br label %for.body
-
-for.body:
- %i = phi i64 [ 0, %entry ], [ %i.next, %for.body ]
- %x = load i32* %x.ld.addr
- store i32 %x, i32* %x.st.addr
-; CHECK: 0,1: dep
- %i.next = add i64 %i, 1
- %exitcond = icmp eq i64 %i.next, 256
- br i1 %exitcond, label %for.end, label %for.body
-
-for.end:
- ret void
-}
-
-;; x[5] = x[6] // with x being an array on the stack
-
-define void @foo(...) nounwind {
-entry:
- %xptr = alloca [256 x i32], align 4
- %x.ld.addr = getelementptr [256 x i32]* %xptr, i64 0, i64 6
- %x.st.addr = getelementptr [256 x i32]* %xptr, i64 0, i64 5
- br label %for.body
-
-for.body:
- %i = phi i64 [ 0, %entry ], [ %i.next, %for.body ]
- %x = load i32* %x.ld.addr
- store i32 %x, i32* %x.st.addr
-; CHECK: 0,1: ind
- %i.next = add i64 %i, 1
- %exitcond = icmp eq i64 %i.next, 256
- br i1 %exitcond, label %for.end, label %for.body
-
-for.end:
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/LoopDependenceAnalysis/dg.exp b/libclamav/c++/llvm/test/Analysis/LoopDependenceAnalysis/dg.exp
deleted file mode 100644
index f200589..0000000
--- a/libclamav/c++/llvm/test/Analysis/LoopDependenceAnalysis/dg.exp
+++ /dev/null
@@ -1,3 +0,0 @@
-load_lib llvm.exp
-
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
diff --git a/libclamav/c++/llvm/test/Analysis/LoopDependenceAnalysis/siv-strong.ll b/libclamav/c++/llvm/test/Analysis/LoopDependenceAnalysis/siv-strong.ll
deleted file mode 100644
index 36ac153..0000000
--- a/libclamav/c++/llvm/test/Analysis/LoopDependenceAnalysis/siv-strong.ll
+++ /dev/null
@@ -1,110 +0,0 @@
-; RUN: opt < %s -analyze -lda | FileCheck %s
-
- at x = common global [256 x i32] zeroinitializer, align 4
- at y = common global [256 x i32] zeroinitializer, align 4
-
-;; for (i = 0; i < 256; i++)
-;; x[i] = x[i] + y[i]
-
-define void @f1(...) nounwind {
-entry:
- br label %for.body
-
-for.body:
- %i = phi i64 [ 0, %entry ], [ %i.next, %for.body ]
- %y.addr = getelementptr [256 x i32]* @y, i64 0, i64 %i
- %x.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i
- %x = load i32* %x.addr ; 0
- %y = load i32* %y.addr ; 1
- %r = add i32 %y, %x
- store i32 %r, i32* %x.addr ; 2
-; CHECK: 0,2: dep
-; CHECK: 1,2: ind
- %i.next = add i64 %i, 1
- %exitcond = icmp eq i64 %i.next, 256
- br i1 %exitcond, label %for.end, label %for.body
-
-for.end:
- ret void
-}
-
-;; for (i = 0; i < 256; i++)
-;; x[i+1] = x[i] + y[i]
-
-define void @f2(...) nounwind {
-entry:
- br label %for.body
-
-for.body:
- %i = phi i64 [ 0, %entry ], [ %i.next, %for.body ]
- %y.ld.addr = getelementptr [256 x i32]* @y, i64 0, i64 %i
- %x.ld.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i
- %i.next = add i64 %i, 1
- %x.st.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i.next
- %x = load i32* %x.ld.addr ; 0
- %y = load i32* %y.ld.addr ; 1
- %r = add i32 %y, %x
- store i32 %r, i32* %x.st.addr ; 2
-; CHECK: 0,2: dep
-; CHECK: 1,2: ind
- %exitcond = icmp eq i64 %i.next, 256
- br i1 %exitcond, label %for.end, label %for.body
-
-for.end:
- ret void
-}
-
-;; for (i = 0; i < 10; i++)
-;; x[i+20] = x[i] + y[i]
-
-define void @f3(...) nounwind {
-entry:
- br label %for.body
-
-for.body:
- %i = phi i64 [ 0, %entry ], [ %i.next, %for.body ]
- %y.ld.addr = getelementptr [256 x i32]* @y, i64 0, i64 %i
- %x.ld.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i
- %i.20 = add i64 %i, 20
- %x.st.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i.20
- %x = load i32* %x.ld.addr ; 0
- %y = load i32* %y.ld.addr ; 1
- %r = add i32 %y, %x
- store i32 %r, i32* %x.st.addr ; 2
-; CHECK: 0,2: dep
-; CHECK: 1,2: ind
- %i.next = add i64 %i, 1
- %exitcond = icmp eq i64 %i.next, 10
- br i1 %exitcond, label %for.end, label %for.body
-
-for.end:
- ret void
-}
-
-;; for (i = 0; i < 10; i++)
-;; x[10*i+1] = x[10*i] + y[i]
-
-define void @f4(...) nounwind {
-entry:
- br label %for.body
-
-for.body:
- %i = phi i64 [ 0, %entry ], [ %i.next, %for.body ]
- %i.10 = mul i64 %i, 10
- %y.ld.addr = getelementptr [256 x i32]* @y, i64 0, i64 %i.10
- %x.ld.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i.10
- %i.10.1 = add i64 %i.10, 1
- %x.st.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i.10.1
- %x = load i32* %x.ld.addr ; 0
- %y = load i32* %y.ld.addr ; 1
- %r = add i32 %y, %x
- store i32 %r, i32* %x.st.addr ; 2
-; CHECK: 0,2: dep
-; CHECK: 1,2: ind
- %i.next = add i64 %i, 1
- %exitcond = icmp eq i64 %i.next, 10
- br i1 %exitcond, label %for.end, label %for.body
-
-for.end:
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll b/libclamav/c++/llvm/test/Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll
deleted file mode 100644
index a7f9bda..0000000
--- a/libclamav/c++/llvm/test/Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll
+++ /dev/null
@@ -1,118 +0,0 @@
-; RUN: opt < %s -analyze -lda | FileCheck %s
-
- at x = common global [256 x i32] zeroinitializer, align 4
- at y = common global [256 x i32] zeroinitializer, align 4
-
-;; for (i = 0; i < 256; i++)
-;; x[i] = x[255 - i] + y[i]
-
-define void @f1(...) nounwind {
-entry:
- br label %for.body
-
-for.body:
- %i = phi i64 [ 0, %entry ], [ %i.next, %for.body ]
- %i.255 = sub i64 255, %i
- %y.ld.addr = getelementptr [256 x i32]* @y, i64 0, i64 %i
- %x.ld.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i.255
- %x.st.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i
- %x = load i32* %x.ld.addr ; 0
- %y = load i32* %y.ld.addr ; 1
- %r = add i32 %y, %x
- store i32 %r, i32* %x.st.addr ; 2
-; CHECK: 0,2: dep
-; CHECK: 1,2: ind
- %i.next = add i64 %i, 1
- %exitcond = icmp eq i64 %i.next, 256
- br i1 %exitcond, label %for.end, label %for.body
-
-for.end:
- ret void
-}
-
-;; for (i = 0; i < 100; i++)
-;; x[i] = x[255 - i] + y[i]
-
-define void @f2(...) nounwind {
-entry:
- br label %for.body
-
-for.body:
- %i = phi i64 [ 0, %entry ], [ %i.next, %for.body ]
- %i.255 = sub i64 255, %i
- %y.ld.addr = getelementptr [256 x i32]* @y, i64 0, i64 %i
- %x.ld.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i.255
- %x.st.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i
- %x = load i32* %x.ld.addr ; 0
- %y = load i32* %y.ld.addr ; 1
- %r = add i32 %y, %x
- store i32 %r, i32* %x.st.addr ; 2
-; CHECK: 0,2: dep
-; CHECK: 1,2: ind
- %i.next = add i64 %i, 1
- %exitcond = icmp eq i64 %i.next, 100
- br i1 %exitcond, label %for.end, label %for.body
-
-for.end:
- ret void
-}
-
-;; // the first iteration (i=0) leads to an out-of-bounds access of x. as the
-;; // result of this access is undefined, _any_ dependence result is safe.
-;; for (i = 0; i < 256; i++)
-;; x[i] = x[256 - i] + y[i]
-
-define void @f3(...) nounwind {
-entry:
- br label %for.body
-
-for.body:
- %i = phi i64 [ 0, %entry ], [ %i.next, %for.body ]
- %i.256 = sub i64 0, %i
- %y.ld.addr = getelementptr [256 x i32]* @y, i64 0, i64 %i
- %x.ld.addr = getelementptr [256 x i32]* @x, i64 1, i64 %i.256
- %x.st.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i
- %x = load i32* %x.ld.addr ; 0
- %y = load i32* %y.ld.addr ; 1
- %r = add i32 %y, %x
- store i32 %r, i32* %x.st.addr ; 2
-; CHECK: 0,2: dep
-; CHECK: 1,2:
- %i.next = add i64 %i, 1
- %exitcond = icmp eq i64 %i.next, 256
- br i1 %exitcond, label %for.end, label %for.body
-
-for.end:
- ret void
-}
-
-;; // slightly contrived but valid IR for the following loop, where all
-;; // accesses in all iterations are within bounds. while this example's first
-;; // (ZIV-)subscript is (0, 1), accesses are dependent.
-;; for (i = 1; i < 256; i++)
-;; x[i] = x[256 - i] + y[i]
-
-define void @f4(...) nounwind {
-entry:
- br label %for.body
-
-for.body:
- %i = phi i64 [ 0, %entry ], [ %i.next, %for.body ]
- %i.1 = add i64 1, %i
- %i.256 = sub i64 -1, %i
- %y.ld.addr = getelementptr [256 x i32]* @y, i64 0, i64 %i.1
- %x.ld.addr = getelementptr [256 x i32]* @x, i64 1, i64 %i.256
- %x.st.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i.1
- %x = load i32* %x.ld.addr ; 0
- %y = load i32* %y.ld.addr ; 1
- %r = add i32 %y, %x
- store i32 %r, i32* %x.st.addr ; 2
-; CHECK: 0,2: dep
-; CHECK: 1,2: ind
- %i.next = add i64 %i, 1
- %exitcond = icmp eq i64 %i.next, 256
- br i1 %exitcond, label %for.end, label %for.body
-
-for.end:
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/LoopDependenceAnalysis/siv-weak-zero.ll b/libclamav/c++/llvm/test/Analysis/LoopDependenceAnalysis/siv-weak-zero.ll
deleted file mode 100644
index e75aefd..0000000
--- a/libclamav/c++/llvm/test/Analysis/LoopDependenceAnalysis/siv-weak-zero.ll
+++ /dev/null
@@ -1,56 +0,0 @@
-; RUN: opt < %s -analyze -lda | FileCheck %s
-
- at x = common global [256 x i32] zeroinitializer, align 4
- at y = common global [256 x i32] zeroinitializer, align 4
-
-;; for (i = 0; i < 256; i++)
-;; x[i] = x[42] + y[i]
-
-define void @f1(...) nounwind {
-entry:
- %x.ld.addr = getelementptr [256 x i32]* @x, i64 0, i64 42
- br label %for.body
-
-for.body:
- %i = phi i64 [ 0, %entry ], [ %i.next, %for.body ]
- %x.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i
- %y.addr = getelementptr [256 x i32]* @y, i64 0, i64 %i
- %x = load i32* %x.ld.addr ; 0
- %y = load i32* %y.addr ; 1
- %r = add i32 %y, %x
- store i32 %r, i32* %x.addr ; 2
-; CHECK: 0,2: dep
-; CHECK: 1,2: ind
- %i.next = add i64 %i, 1
- %exitcond = icmp eq i64 %i.next, 256
- br i1 %exitcond, label %for.end, label %for.body
-
-for.end:
- ret void
-}
-
-;; for (i = 0; i < 250; i++)
-;; x[i] = x[255] + y[i]
-
-define void @f2(...) nounwind {
-entry:
- %x.ld.addr = getelementptr [256 x i32]* @x, i64 0, i64 255
- br label %for.body
-
-for.body:
- %i = phi i64 [ 0, %entry ], [ %i.next, %for.body ]
- %x.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i
- %y.addr = getelementptr [256 x i32]* @y, i64 0, i64 %i
- %x = load i32* %x.ld.addr ; 0
- %y = load i32* %y.addr ; 1
- %r = add i32 %y, %x
- store i32 %r, i32* %x.addr ; 2
-; CHECK: 0,2: dep
-; CHECK: 1,2: ind
- %i.next = add i64 %i, 1
- %exitcond = icmp eq i64 %i.next, 250
- br i1 %exitcond, label %for.end, label %for.body
-
-for.end:
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/LoopDependenceAnalysis/ziv.ll b/libclamav/c++/llvm/test/Analysis/LoopDependenceAnalysis/ziv.ll
deleted file mode 100644
index ba45948..0000000
--- a/libclamav/c++/llvm/test/Analysis/LoopDependenceAnalysis/ziv.ll
+++ /dev/null
@@ -1,63 +0,0 @@
-; RUN: opt < %s -analyze -lda | FileCheck %s
-
- at x = common global [256 x i32] zeroinitializer, align 4
-
-;; x[5] = x[6]
-
-define void @f1(...) nounwind {
-entry:
- br label %for.body
-
-for.body:
- %i = phi i64 [ 0, %entry ], [ %i.next, %for.body ]
- %x = load i32* getelementptr ([256 x i32]* @x, i32 0, i64 6)
- store i32 %x, i32* getelementptr ([256 x i32]* @x, i32 0, i64 5)
-; CHECK: 0,1: ind
- %i.next = add i64 %i, 1
- %exitcond = icmp eq i64 %i.next, 256
- br i1 %exitcond, label %for.end, label %for.body
-
-for.end:
- ret void
-}
-
-;; x[c] = x[c+1] // with c being a loop-invariant constant
-
-define void @f2(i64 %c0) nounwind {
-entry:
- %c1 = add i64 %c0, 1
- %x.ld.addr = getelementptr [256 x i32]* @x, i64 0, i64 %c0
- %x.st.addr = getelementptr [256 x i32]* @x, i64 0, i64 %c1
- br label %for.body
-
-for.body:
- %i = phi i64 [ 0, %entry ], [ %i.next, %for.body ]
- %x = load i32* %x.ld.addr
- store i32 %x, i32* %x.st.addr
-; CHECK: 0,1: ind
- %i.next = add i64 %i, 1
- %exitcond = icmp eq i64 %i.next, 256
- br i1 %exitcond, label %for.end, label %for.body
-
-for.end:
- ret void
-}
-
-;; x[6] = x[6]
-
-define void @f3(...) nounwind {
-entry:
- br label %for.body
-
-for.body:
- %i = phi i64 [ 0, %entry ], [ %i.next, %for.body ]
- %x = load i32* getelementptr ([256 x i32]* @x, i32 0, i64 6)
- store i32 %x, i32* getelementptr ([256 x i32]* @x, i32 0, i64 6)
-; CHECK: 0,1: dep
- %i.next = add i64 %i, 1
- %exitcond = icmp eq i64 %i.next, 256
- br i1 %exitcond, label %for.end, label %for.body
-
-for.end:
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/LoopInfo/2003-05-15-NestingProblem.ll b/libclamav/c++/llvm/test/Analysis/LoopInfo/2003-05-15-NestingProblem.ll
deleted file mode 100644
index 9355aee..0000000
--- a/libclamav/c++/llvm/test/Analysis/LoopInfo/2003-05-15-NestingProblem.ll
+++ /dev/null
@@ -1,30 +0,0 @@
-; This testcase was incorrectly computing that the loopentry.7 loop was
-; not a child of the loopentry.6 loop.
-;
-; RUN: opt < %s -analyze -loops | \
-; RUN: grep {^ Loop at depth 4 containing: %loopentry.7<header><latch><exiting>}
-
-define void @getAndMoveToFrontDecode() {
- br label %endif.2
-
-endif.2: ; preds = %loopexit.5, %0
- br i1 false, label %loopentry.5, label %UnifiedExitNode
-
-loopentry.5: ; preds = %loopexit.6, %endif.2
- br i1 false, label %loopentry.6, label %UnifiedExitNode
-
-loopentry.6: ; preds = %loopentry.7, %loopentry.5
- br i1 false, label %loopentry.7, label %loopexit.6
-
-loopentry.7: ; preds = %loopentry.7, %loopentry.6
- br i1 false, label %loopentry.7, label %loopentry.6
-
-loopexit.6: ; preds = %loopentry.6
- br i1 false, label %loopentry.5, label %loopexit.5
-
-loopexit.5: ; preds = %loopexit.6
- br i1 false, label %endif.2, label %UnifiedExitNode
-
-UnifiedExitNode: ; preds = %loopexit.5, %loopentry.5, %endif.2
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/LoopInfo/dg.exp b/libclamav/c++/llvm/test/Analysis/LoopInfo/dg.exp
deleted file mode 100644
index f200589..0000000
--- a/libclamav/c++/llvm/test/Analysis/LoopInfo/dg.exp
+++ /dev/null
@@ -1,3 +0,0 @@
-load_lib llvm.exp
-
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
diff --git a/libclamav/c++/llvm/test/Analysis/PointerTracking/dg.exp b/libclamav/c++/llvm/test/Analysis/PointerTracking/dg.exp
deleted file mode 100644
index f200589..0000000
--- a/libclamav/c++/llvm/test/Analysis/PointerTracking/dg.exp
+++ /dev/null
@@ -1,3 +0,0 @@
-load_lib llvm.exp
-
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
diff --git a/libclamav/c++/llvm/test/Analysis/PointerTracking/sizes.ll b/libclamav/c++/llvm/test/Analysis/PointerTracking/sizes.ll
deleted file mode 100644
index c8ca648..0000000
--- a/libclamav/c++/llvm/test/Analysis/PointerTracking/sizes.ll
+++ /dev/null
@@ -1,86 +0,0 @@
-; RUN: opt < %s -pointertracking -analyze | FileCheck %s
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
-target triple = "x86_64-unknown-linux-gnu"
- at .str = internal constant [5 x i8] c"1234\00" ; <[5 x i8]*> [#uses=1]
- at test1p = global i8* getelementptr ([5 x i8]* @.str, i32 0, i32 0), align 8 ; <i8**> [#uses=1]
- at test1a = global [5 x i8] c"1234\00", align 1 ; <[5 x i8]*> [#uses=1]
- at test2a = global [5 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5], align 4 ; <[5 x i32]*> [#uses=2]
- at test2p = global i32* getelementptr ([5 x i32]* @test2a, i32 0, i32 0), align 8 ; <i32**> [#uses=1]
- at test0p = common global i32* null, align 8 ; <i32**> [#uses=1]
- at test0i = common global i32 0, align 4 ; <i32*> [#uses=1]
-
-define i32 @foo0() nounwind {
-entry:
- %tmp = load i32** @test0p ; <i32*> [#uses=1]
- %conv = bitcast i32* %tmp to i8* ; <i8*> [#uses=1]
- %call = tail call i32 @bar(i8* %conv) nounwind ; <i32> [#uses=1]
- %tmp1 = load i8** @test1p ; <i8*> [#uses=1]
- %call2 = tail call i32 @bar(i8* %tmp1) nounwind ; <i32> [#uses=1]
- %call3 = tail call i32 @bar(i8* getelementptr ([5 x i8]* @test1a, i32 0, i32 0)) nounwind ; <i32> [#uses=1]
- %call5 = tail call i32 @bar(i8* bitcast ([5 x i32]* @test2a to i8*)) nounwind ; <i32> [#uses=1]
- %tmp7 = load i32** @test2p ; <i32*> [#uses=1]
- %conv8 = bitcast i32* %tmp7 to i8* ; <i8*> [#uses=1]
- %call9 = tail call i32 @bar(i8* %conv8) nounwind ; <i32> [#uses=1]
- %call11 = tail call i32 @bar(i8* bitcast (i32* @test0i to i8*)) nounwind ; <i32> [#uses=1]
- %add = add i32 %call2, %call ; <i32> [#uses=1]
- %add4 = add i32 %add, %call3 ; <i32> [#uses=1]
- %add6 = add i32 %add4, %call5 ; <i32> [#uses=1]
- %add10 = add i32 %add6, %call9 ; <i32> [#uses=1]
- %add12 = add i32 %add10, %call11 ; <i32> [#uses=1]
- ret i32 %add12
-}
-
-declare i32 @bar(i8*)
-
-define i32 @foo1(i32 %n) nounwind {
-entry:
-; CHECK: 'foo1':
- %test4a = alloca [10 x i8], align 1 ; <[10 x i8]*> [#uses=1]
-; CHECK: %test4a =
-; CHECK: ==> 1 elements, 10 bytes allocated
- %test6a = alloca [10 x i32], align 4 ; <[10 x i32]*> [#uses=1]
-; CHECK: %test6a =
-; CHECK: ==> 1 elements, 40 bytes allocated
- %vla = alloca i8, i32 %n, align 1 ; <i8*> [#uses=1]
-; CHECK: %vla =
-; CHECK: ==> %n elements, %n bytes allocated
- %0 = shl i32 %n, 2 ; <i32> [#uses=1]
- %vla7 = alloca i8, i32 %0, align 1 ; <i8*> [#uses=1]
-; CHECK: %vla7 =
-; CHECK: ==> (4 * %n) elements, (4 * %n) bytes allocated
- %call = call i32 @bar(i8* %vla) nounwind ; <i32> [#uses=1]
- %arraydecay = getelementptr [10 x i8]* %test4a, i64 0, i64 0 ; <i8*> [#uses=1]
- %call10 = call i32 @bar(i8* %arraydecay) nounwind ; <i32> [#uses=1]
- %call11 = call i32 @bar(i8* %vla7) nounwind ; <i32> [#uses=1]
- %ptrconv14 = bitcast [10 x i32]* %test6a to i8* ; <i8*> [#uses=1]
- %call15 = call i32 @bar(i8* %ptrconv14) nounwind ; <i32> [#uses=1]
- %add = add i32 %call10, %call ; <i32> [#uses=1]
- %add12 = add i32 %add, %call11 ; <i32> [#uses=1]
- %add16 = add i32 %add12, %call15 ; <i32> [#uses=1]
- ret i32 %add16
-}
-
-define i32 @foo2(i64 %n) nounwind {
-entry:
- %call = tail call i8* @malloc(i64 %n) ; <i8*> [#uses=1]
-; CHECK: %call =
-; CHECK: ==> %n elements, %n bytes allocated
- %call2 = tail call i8* @calloc(i64 2, i64 4) nounwind ; <i8*> [#uses=1]
-; CHECK: %call2 =
-; CHECK: ==> 8 elements, 8 bytes allocated
- %call4 = tail call i8* @realloc(i8* null, i64 16) nounwind ; <i8*> [#uses=1]
-; CHECK: %call4 =
-; CHECK: ==> 16 elements, 16 bytes allocated
- %call6 = tail call i32 @bar(i8* %call) nounwind ; <i32> [#uses=1]
- %call8 = tail call i32 @bar(i8* %call2) nounwind ; <i32> [#uses=1]
- %call10 = tail call i32 @bar(i8* %call4) nounwind ; <i32> [#uses=1]
- %add = add i32 %call8, %call6 ; <i32> [#uses=1]
- %add11 = add i32 %add, %call10 ; <i32> [#uses=1]
- ret i32 %add11
-}
-
-declare noalias i8* @malloc(i64) nounwind
-
-declare noalias i8* @calloc(i64, i64) nounwind
-
-declare noalias i8* @realloc(i8* nocapture, i64) nounwind
diff --git a/libclamav/c++/llvm/test/Analysis/PostDominators/2006-09-26-PostDominanceFrontier.ll b/libclamav/c++/llvm/test/Analysis/PostDominators/2006-09-26-PostDominanceFrontier.ll
deleted file mode 100644
index b73b7f0..0000000
--- a/libclamav/c++/llvm/test/Analysis/PostDominators/2006-09-26-PostDominanceFrontier.ll
+++ /dev/null
@@ -1,97 +0,0 @@
-; RUN: opt < %s -analyze -postdomfrontier \
-; RUN: -disable-verify
-; ModuleID = '2006-09-26-PostDominanceFrontier.bc'
-target datalayout = "e-p:64:64"
-target triple = "alphaev67-unknown-linux-gnu"
- %struct.FILE = type { i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, %struct._IO_marker*, %struct.FILE*, i32, i32, i64, i16, i8, [1 x i8], i8*, i64, i8*, i8*, i32, [44 x i8] }
- %struct._IO_marker = type { %struct._IO_marker*, %struct.FILE*, i32 }
- at TOP = external global i64* ; <i64**> [#uses=1]
- at BOT = external global i64* ; <i64**> [#uses=1]
- at str = external global [2 x i8] ; <[2 x i8]*> [#uses=0]
-
-declare void @fopen()
-
-define void @main(i8** %argv) {
-entry:
- %netSelect.i507 = alloca i64, align 8 ; <i64*> [#uses=0]
- %topStart.i = alloca i64, align 8 ; <i64*> [#uses=0]
- %topEnd.i = alloca i64, align 8 ; <i64*> [#uses=0]
- %botStart.i = alloca i64, align 8 ; <i64*> [#uses=0]
- %botEnd.i = alloca i64, align 8 ; <i64*> [#uses=0]
- %c1.i154 = alloca i32, align 4 ; <i32*> [#uses=0]
- %b1.i155 = alloca i32, align 4 ; <i32*> [#uses=0]
- %t1.i156 = alloca i32, align 4 ; <i32*> [#uses=0]
- %c1.i = alloca i32, align 4 ; <i32*> [#uses=0]
- %b1.i = alloca i32, align 4 ; <i32*> [#uses=0]
- %t1.i = alloca i32, align 4 ; <i32*> [#uses=0]
- %netSelect.i5 = alloca i64, align 8 ; <i64*> [#uses=0]
- %netSelect.i = alloca i64, align 8 ; <i64*> [#uses=0]
- %tmp2.i = getelementptr i8** %argv, i32 1 ; <i8**> [#uses=1]
- %tmp3.i4 = load i8** %tmp2.i ; <i8*> [#uses=0]
- call void @fopen( )
- br i1 false, label %DimensionChannel.exit, label %bb.backedge.i
-
-bb.backedge.i: ; preds = %entry
- ret void
-
-DimensionChannel.exit: ; preds = %entry
- %tmp13.i137 = malloc i64, i32 0 ; <i64*> [#uses=1]
- %tmp610.i = malloc i64, i32 0 ; <i64*> [#uses=1]
- br label %cond_true.i143
-
-cond_true.i143: ; preds = %cond_true.i143, %DimensionChannel.exit
- %tmp9.i140 = getelementptr i64* %tmp13.i137, i64 0 ; <i64*> [#uses=0]
- %tmp12.i = getelementptr i64* %tmp610.i, i64 0 ; <i64*> [#uses=0]
- br i1 false, label %bb18.i144, label %cond_true.i143
-
-bb18.i144: ; preds = %cond_true.i143
- call void @fopen( )
- %tmp76.i105 = malloc i64, i32 0 ; <i64*> [#uses=3]
- %tmp674.i = malloc i64, i32 0 ; <i64*> [#uses=2]
- %tmp1072.i = malloc i64, i32 0 ; <i64*> [#uses=2]
- %tmp1470.i = malloc i64, i32 0 ; <i64*> [#uses=1]
- br label %cond_true.i114
-
-cond_true.i114: ; preds = %cond_true.i114, %bb18.i144
- %tmp17.i108 = getelementptr i64* %tmp76.i105, i64 0 ; <i64*> [#uses=0]
- %tmp20.i = getelementptr i64* %tmp674.i, i64 0 ; <i64*> [#uses=0]
- %tmp23.i111 = getelementptr i64* %tmp1470.i, i64 0 ; <i64*> [#uses=0]
- br i1 false, label %cond_true40.i, label %cond_true.i114
-
-cond_true40.i: ; preds = %cond_true40.i, %cond_true.i114
- %tmp33.i115 = getelementptr i64* %tmp1072.i, i64 0 ; <i64*> [#uses=0]
- br i1 false, label %bb142.i, label %cond_true40.i
-
-cond_next54.i: ; preds = %cond_true76.i
- %tmp57.i = getelementptr i64* %tmp55.i, i64 0 ; <i64*> [#uses=0]
- br i1 false, label %bb64.i, label %bb69.i
-
-bb64.i: ; preds = %cond_true76.i, %cond_next54.i
- %tmp67.i117 = getelementptr i64* %tmp76.i105, i64 0 ; <i64*> [#uses=0]
- br i1 false, label %bb114.i, label %cond_true111.i
-
-bb69.i: ; preds = %cond_next54.i
- br i1 false, label %bb79.i, label %cond_true76.i
-
-cond_true76.i: ; preds = %bb142.i, %bb69.i
- %tmp48.i = getelementptr i64* %tmp46.i, i64 0 ; <i64*> [#uses=0]
- br i1 false, label %bb64.i, label %cond_next54.i
-
-bb79.i: ; preds = %bb69.i
- br i1 false, label %bb114.i, label %cond_true111.i
-
-cond_true111.i: ; preds = %bb79.i, %bb64.i
- %tmp84.i127 = getelementptr i64* %tmp46.i, i64 0 ; <i64*> [#uses=0]
- ret void
-
-bb114.i: ; preds = %bb142.i, %bb79.i, %bb64.i
- %tmp117.i = getelementptr i64* %tmp76.i105, i64 0 ; <i64*> [#uses=0]
- %tmp132.i131 = getelementptr i64* %tmp674.i, i64 0 ; <i64*> [#uses=0]
- %tmp122.i = getelementptr i64* %tmp1072.i, i64 0 ; <i64*> [#uses=0]
- ret void
-
-bb142.i: ; preds = %cond_true40.i
- %tmp46.i = load i64** @BOT ; <i64*> [#uses=2]
- %tmp55.i = load i64** @TOP ; <i64*> [#uses=1]
- br i1 false, label %bb114.i, label %cond_true76.i
-}
diff --git a/libclamav/c++/llvm/test/Analysis/PostDominators/2007-04-17-PostDominanceFrontier.ll b/libclamav/c++/llvm/test/Analysis/PostDominators/2007-04-17-PostDominanceFrontier.ll
deleted file mode 100644
index 1ec056b..0000000
--- a/libclamav/c++/llvm/test/Analysis/PostDominators/2007-04-17-PostDominanceFrontier.ll
+++ /dev/null
@@ -1,692 +0,0 @@
-; RUN: opt < %s -postdomfrontier -disable-output
-
-define void @SManager() {
-entry:
- br label %bb.outer
-
-bb.outer: ; preds = %bb193, %entry
- br label %bb.outer156
-
-bb.loopexit: ; preds = %bb442
- br label %bb.outer156
-
-bb.outer156: ; preds = %bb.loopexit, %bb.outer
- br label %bb
-
-bb: ; preds = %bb.backedge, %bb.outer156
- br i1 false, label %cond_true, label %bb.cond_next_crit_edge
-
-bb.cond_next_crit_edge: ; preds = %bb
- br label %cond_next
-
-cond_true: ; preds = %bb
- br label %cond_next
-
-cond_next: ; preds = %cond_true, %bb.cond_next_crit_edge
- br i1 false, label %cond_next.bb.backedge_crit_edge, label %cond_next107
-
-cond_next.bb.backedge_crit_edge: ; preds = %cond_next
- br label %bb.backedge
-
-bb.backedge: ; preds = %cond_true112.bb.backedge_crit_edge, %cond_next.bb.backedge_crit_edge
- br label %bb
-
-cond_next107: ; preds = %cond_next
- br i1 false, label %cond_true112, label %cond_next197
-
-cond_true112: ; preds = %cond_next107
- br i1 false, label %cond_true118, label %cond_true112.bb.backedge_crit_edge
-
-cond_true112.bb.backedge_crit_edge: ; preds = %cond_true112
- br label %bb.backedge
-
-cond_true118: ; preds = %cond_true112
- br i1 false, label %bb123.preheader, label %cond_true118.bb148_crit_edge
-
-cond_true118.bb148_crit_edge: ; preds = %cond_true118
- br label %bb148
-
-bb123.preheader: ; preds = %cond_true118
- br label %bb123
-
-bb123: ; preds = %bb142.bb123_crit_edge, %bb123.preheader
- br i1 false, label %bb123.bb142_crit_edge, label %cond_next.i57
-
-bb123.bb142_crit_edge: ; preds = %bb123
- br label %bb142
-
-cond_next.i57: ; preds = %bb123
- br i1 false, label %cond_true135, label %cond_next.i57.bb142_crit_edge
-
-cond_next.i57.bb142_crit_edge: ; preds = %cond_next.i57
- br label %bb142
-
-cond_true135: ; preds = %cond_next.i57
- br label %bb142
-
-bb142: ; preds = %cond_true135, %cond_next.i57.bb142_crit_edge, %bb123.bb142_crit_edge
- br i1 false, label %bb148.loopexit, label %bb142.bb123_crit_edge
-
-bb142.bb123_crit_edge: ; preds = %bb142
- br label %bb123
-
-bb148.loopexit: ; preds = %bb142
- br label %bb148
-
-bb148: ; preds = %bb148.loopexit, %cond_true118.bb148_crit_edge
- br i1 false, label %bb151.preheader, label %bb148.bb177_crit_edge
-
-bb148.bb177_crit_edge: ; preds = %bb148
- br label %bb177
-
-bb151.preheader: ; preds = %bb148
- br label %bb151
-
-bb151: ; preds = %bb171.bb151_crit_edge, %bb151.preheader
- br i1 false, label %bb151.bb171_crit_edge, label %cond_next.i49
-
-bb151.bb171_crit_edge: ; preds = %bb151
- br label %bb171
-
-cond_next.i49: ; preds = %bb151
- br i1 false, label %cond_true164, label %cond_next.i49.bb171_crit_edge
-
-cond_next.i49.bb171_crit_edge: ; preds = %cond_next.i49
- br label %bb171
-
-cond_true164: ; preds = %cond_next.i49
- br label %bb171
-
-bb171: ; preds = %cond_true164, %cond_next.i49.bb171_crit_edge, %bb151.bb171_crit_edge
- br i1 false, label %bb177.loopexit, label %bb171.bb151_crit_edge
-
-bb171.bb151_crit_edge: ; preds = %bb171
- br label %bb151
-
-bb177.loopexit: ; preds = %bb171
- br label %bb177
-
-bb177: ; preds = %bb177.loopexit, %bb148.bb177_crit_edge
- br i1 false, label %bb180.preheader, label %bb177.bb193_crit_edge
-
-bb177.bb193_crit_edge: ; preds = %bb177
- br label %bb193
-
-bb180.preheader: ; preds = %bb177
- br label %bb180
-
-bb180: ; preds = %bb180.bb180_crit_edge, %bb180.preheader
- br i1 false, label %bb193.loopexit, label %bb180.bb180_crit_edge
-
-bb180.bb180_crit_edge: ; preds = %bb180
- br label %bb180
-
-bb193.loopexit: ; preds = %bb180
- br label %bb193
-
-bb193: ; preds = %bb193.loopexit, %bb177.bb193_crit_edge
- br label %bb.outer
-
-cond_next197: ; preds = %cond_next107
- br i1 false, label %cond_next210, label %cond_true205
-
-cond_true205: ; preds = %cond_next197
- br i1 false, label %cond_true205.bb213_crit_edge, label %cond_true205.bb299_crit_edge
-
-cond_true205.bb299_crit_edge: ; preds = %cond_true205
- br label %bb299
-
-cond_true205.bb213_crit_edge: ; preds = %cond_true205
- br label %bb213
-
-cond_next210: ; preds = %cond_next197
- br label %bb293
-
-bb213: ; preds = %bb293.bb213_crit_edge, %cond_true205.bb213_crit_edge
- br i1 false, label %bb213.cond_next290_crit_edge, label %cond_true248
-
-bb213.cond_next290_crit_edge: ; preds = %bb213
- br label %cond_next290
-
-cond_true248: ; preds = %bb213
- br i1 false, label %cond_true248.cond_next290_crit_edge, label %cond_true255
-
-cond_true248.cond_next290_crit_edge: ; preds = %cond_true248
- br label %cond_next290
-
-cond_true255: ; preds = %cond_true248
- br i1 false, label %cond_true266, label %cond_true255.cond_next271_crit_edge
-
-cond_true255.cond_next271_crit_edge: ; preds = %cond_true255
- br label %cond_next271
-
-cond_true266: ; preds = %cond_true255
- br label %cond_next271
-
-cond_next271: ; preds = %cond_true266, %cond_true255.cond_next271_crit_edge
- br label %cond_next290
-
-cond_next290: ; preds = %cond_next271, %cond_true248.cond_next290_crit_edge, %bb213.cond_next290_crit_edge
- br label %bb293
-
-bb293: ; preds = %cond_next290, %cond_next210
- br i1 false, label %bb293.bb213_crit_edge, label %bb293.bb299_crit_edge
-
-bb293.bb299_crit_edge: ; preds = %bb293
- br label %bb299
-
-bb293.bb213_crit_edge: ; preds = %bb293
- br label %bb213
-
-bb299: ; preds = %bb293.bb299_crit_edge, %cond_true205.bb299_crit_edge
- br i1 false, label %bb302.preheader, label %bb299.bb390_crit_edge
-
-bb299.bb390_crit_edge: ; preds = %bb299
- br label %bb390
-
-bb302.preheader: ; preds = %bb299
- br label %bb302
-
-bb302: ; preds = %bb384.bb302_crit_edge, %bb302.preheader
- br i1 false, label %bb302.bb384_crit_edge, label %cond_true339
-
-bb302.bb384_crit_edge: ; preds = %bb302
- br label %bb384
-
-cond_true339: ; preds = %bb302
- br i1 false, label %cond_true339.bb384_crit_edge, label %cond_true346
-
-cond_true339.bb384_crit_edge: ; preds = %cond_true339
- br label %bb384
-
-cond_true346: ; preds = %cond_true339
- br i1 false, label %cond_true357, label %cond_true346.cond_next361_crit_edge
-
-cond_true346.cond_next361_crit_edge: ; preds = %cond_true346
- br label %cond_next361
-
-cond_true357: ; preds = %cond_true346
- br label %cond_next361
-
-cond_next361: ; preds = %cond_true357, %cond_true346.cond_next361_crit_edge
- br label %bb384
-
-bb384: ; preds = %cond_next361, %cond_true339.bb384_crit_edge, %bb302.bb384_crit_edge
- br i1 false, label %bb390.loopexit, label %bb384.bb302_crit_edge
-
-bb384.bb302_crit_edge: ; preds = %bb384
- br label %bb302
-
-bb390.loopexit: ; preds = %bb384
- br label %bb390
-
-bb390: ; preds = %bb390.loopexit, %bb299.bb390_crit_edge
- br i1 false, label %bb391.preheader, label %bb390.bb442.preheader_crit_edge
-
-bb390.bb442.preheader_crit_edge: ; preds = %bb390
- br label %bb442.preheader
-
-bb391.preheader: ; preds = %bb390
- br label %bb391
-
-bb391: ; preds = %bb413.bb391_crit_edge, %bb391.preheader
- br i1 false, label %bb391.bb413_crit_edge, label %cond_next404
-
-bb391.bb413_crit_edge: ; preds = %bb391
- br label %bb413
-
-cond_next404: ; preds = %bb391
- br i1 false, label %cond_next404.HWrite.exit_crit_edge, label %cond_next.i13
-
-cond_next404.HWrite.exit_crit_edge: ; preds = %cond_next404
- br label %HWrite.exit
-
-cond_next.i13: ; preds = %cond_next404
- br i1 false, label %cond_next.i13.cond_next13.i_crit_edge, label %cond_true12.i
-
-cond_next.i13.cond_next13.i_crit_edge: ; preds = %cond_next.i13
- br label %cond_next13.i
-
-cond_true12.i: ; preds = %cond_next.i13
- br label %cond_next13.i
-
-cond_next13.i: ; preds = %cond_true12.i, %cond_next.i13.cond_next13.i_crit_edge
- br i1 false, label %cond_next13.i.bb.i22_crit_edge, label %cond_next43.i
-
-cond_next13.i.bb.i22_crit_edge: ; preds = %cond_next13.i
- br label %bb.i22
-
-cond_next43.i: ; preds = %cond_next13.i
- br i1 false, label %cond_next43.i.bb.i22_crit_edge, label %bb60.i
-
-cond_next43.i.bb.i22_crit_edge: ; preds = %cond_next43.i
- br label %bb.i22
-
-bb.i22: ; preds = %cond_next43.i.bb.i22_crit_edge, %cond_next13.i.bb.i22_crit_edge
- br label %bb413
-
-bb60.i: ; preds = %cond_next43.i
- br i1 false, label %bb60.i.HWrite.exit_crit_edge, label %cond_true81.i
-
-bb60.i.HWrite.exit_crit_edge: ; preds = %bb60.i
- br label %HWrite.exit
-
-cond_true81.i: ; preds = %bb60.i
- br label %bb413
-
-HWrite.exit: ; preds = %bb60.i.HWrite.exit_crit_edge, %cond_next404.HWrite.exit_crit_edge
- br label %bb413
-
-bb413: ; preds = %HWrite.exit, %cond_true81.i, %bb.i22, %bb391.bb413_crit_edge
- br i1 false, label %bb442.preheader.loopexit, label %bb413.bb391_crit_edge
-
-bb413.bb391_crit_edge: ; preds = %bb413
- br label %bb391
-
-bb442.preheader.loopexit: ; preds = %bb413
- br label %bb442.preheader
-
-bb442.preheader: ; preds = %bb442.preheader.loopexit, %bb390.bb442.preheader_crit_edge
- br label %bb442.outer
-
-bb420: ; preds = %bb442
- br i1 false, label %bb439.loopexit, label %cond_next433
-
-cond_next433: ; preds = %bb420
- br i1 false, label %cond_next433.HRead.exit.loopexit_crit_edge, label %cond_next.i
-
-cond_next433.HRead.exit.loopexit_crit_edge: ; preds = %cond_next433
- br label %HRead.exit.loopexit
-
-cond_next.i: ; preds = %cond_next433
- br i1 false, label %cond_true9.i, label %cond_false223.i
-
-cond_true9.i: ; preds = %cond_next.i
- switch i32 0, label %cond_false.i [
- i32 1, label %cond_true9.i.cond_true15.i_crit_edge
- i32 5, label %cond_true9.i.cond_true15.i_crit_edge9
- ]
-
-cond_true9.i.cond_true15.i_crit_edge9: ; preds = %cond_true9.i
- br label %cond_true15.i
-
-cond_true9.i.cond_true15.i_crit_edge: ; preds = %cond_true9.i
- br label %cond_true15.i
-
-cond_true15.i: ; preds = %cond_true9.i.cond_true15.i_crit_edge, %cond_true9.i.cond_true15.i_crit_edge9
- br i1 false, label %cond_true15.i.cond_true44.i_crit_edge, label %cond_true15.i.cond_false49.i_crit_edge
-
-cond_true15.i.cond_false49.i_crit_edge: ; preds = %cond_true15.i
- br label %cond_false49.i
-
-cond_true15.i.cond_true44.i_crit_edge: ; preds = %cond_true15.i
- br label %cond_true44.i
-
-cond_false.i: ; preds = %cond_true9.i
- br i1 false, label %cond_false.i.cond_next39.i_crit_edge, label %cond_true30.i
-
-cond_false.i.cond_next39.i_crit_edge: ; preds = %cond_false.i
- br label %cond_next39.i
-
-cond_true30.i: ; preds = %cond_false.i
- br label %cond_next39.i
-
-cond_next39.i: ; preds = %cond_true30.i, %cond_false.i.cond_next39.i_crit_edge
- br i1 false, label %cond_next39.i.cond_true44.i_crit_edge, label %cond_next39.i.cond_false49.i_crit_edge
-
-cond_next39.i.cond_false49.i_crit_edge: ; preds = %cond_next39.i
- br label %cond_false49.i
-
-cond_next39.i.cond_true44.i_crit_edge: ; preds = %cond_next39.i
- br label %cond_true44.i
-
-cond_true44.i: ; preds = %cond_next39.i.cond_true44.i_crit_edge, %cond_true15.i.cond_true44.i_crit_edge
- br i1 false, label %cond_true44.i.cond_next70.i_crit_edge, label %cond_true44.i.cond_true61.i_crit_edge
-
-cond_true44.i.cond_true61.i_crit_edge: ; preds = %cond_true44.i
- br label %cond_true61.i
-
-cond_true44.i.cond_next70.i_crit_edge: ; preds = %cond_true44.i
- br label %cond_next70.i
-
-cond_false49.i: ; preds = %cond_next39.i.cond_false49.i_crit_edge, %cond_true15.i.cond_false49.i_crit_edge
- br i1 false, label %cond_false49.i.cond_next70.i_crit_edge, label %cond_false49.i.cond_true61.i_crit_edge
-
-cond_false49.i.cond_true61.i_crit_edge: ; preds = %cond_false49.i
- br label %cond_true61.i
-
-cond_false49.i.cond_next70.i_crit_edge: ; preds = %cond_false49.i
- br label %cond_next70.i
-
-cond_true61.i: ; preds = %cond_false49.i.cond_true61.i_crit_edge, %cond_true44.i.cond_true61.i_crit_edge
- br i1 false, label %cond_true61.i.cond_next70.i_crit_edge, label %cond_true67.i
-
-cond_true61.i.cond_next70.i_crit_edge: ; preds = %cond_true61.i
- br label %cond_next70.i
-
-cond_true67.i: ; preds = %cond_true61.i
- br label %cond_next70.i
-
-cond_next70.i: ; preds = %cond_true67.i, %cond_true61.i.cond_next70.i_crit_edge, %cond_false49.i.cond_next70.i_crit_edge, %cond_true44.i.cond_next70.i_crit_edge
- br i1 false, label %cond_true77.i, label %cond_next81.i
-
-cond_true77.i: ; preds = %cond_next70.i
- br label %bb442.outer.backedge
-
-cond_next81.i: ; preds = %cond_next70.i
- br i1 false, label %cond_true87.i, label %cond_false94.i
-
-cond_true87.i: ; preds = %cond_next81.i
- br i1 false, label %cond_true87.i.cond_true130.i_crit_edge, label %cond_true87.i.cond_next135.i_crit_edge
-
-cond_true87.i.cond_next135.i_crit_edge: ; preds = %cond_true87.i
- br label %cond_next135.i
-
-cond_true87.i.cond_true130.i_crit_edge: ; preds = %cond_true87.i
- br label %cond_true130.i
-
-cond_false94.i: ; preds = %cond_next81.i
- switch i32 0, label %cond_false94.i.cond_next125.i_crit_edge [
- i32 1, label %cond_false94.i.cond_true100.i_crit_edge
- i32 5, label %cond_false94.i.cond_true100.i_crit_edge10
- ]
-
-cond_false94.i.cond_true100.i_crit_edge10: ; preds = %cond_false94.i
- br label %cond_true100.i
-
-cond_false94.i.cond_true100.i_crit_edge: ; preds = %cond_false94.i
- br label %cond_true100.i
-
-cond_false94.i.cond_next125.i_crit_edge: ; preds = %cond_false94.i
- br label %cond_next125.i
-
-cond_true100.i: ; preds = %cond_false94.i.cond_true100.i_crit_edge, %cond_false94.i.cond_true100.i_crit_edge10
- br i1 false, label %cond_true107.i, label %cond_true100.i.cond_next109.i_crit_edge
-
-cond_true100.i.cond_next109.i_crit_edge: ; preds = %cond_true100.i
- br label %cond_next109.i
-
-cond_true107.i: ; preds = %cond_true100.i
- br label %cond_next109.i
-
-cond_next109.i: ; preds = %cond_true107.i, %cond_true100.i.cond_next109.i_crit_edge
- br i1 false, label %cond_next109.i.cond_next125.i_crit_edge, label %cond_true116.i
-
-cond_next109.i.cond_next125.i_crit_edge: ; preds = %cond_next109.i
- br label %cond_next125.i
-
-cond_true116.i: ; preds = %cond_next109.i
- br label %cond_next125.i
-
-cond_next125.i: ; preds = %cond_true116.i, %cond_next109.i.cond_next125.i_crit_edge, %cond_false94.i.cond_next125.i_crit_edge
- br i1 false, label %cond_next125.i.cond_true130.i_crit_edge, label %cond_next125.i.cond_next135.i_crit_edge
-
-cond_next125.i.cond_next135.i_crit_edge: ; preds = %cond_next125.i
- br label %cond_next135.i
-
-cond_next125.i.cond_true130.i_crit_edge: ; preds = %cond_next125.i
- br label %cond_true130.i
-
-cond_true130.i: ; preds = %cond_next125.i.cond_true130.i_crit_edge, %cond_true87.i.cond_true130.i_crit_edge
- br label %cond_next135.i
-
-cond_next135.i: ; preds = %cond_true130.i, %cond_next125.i.cond_next135.i_crit_edge, %cond_true87.i.cond_next135.i_crit_edge
- br i1 false, label %cond_true142.i, label %cond_next135.i.cond_next149.i_crit_edge
-
-cond_next135.i.cond_next149.i_crit_edge: ; preds = %cond_next135.i
- br label %cond_next149.i
-
-cond_true142.i: ; preds = %cond_next135.i
- br label %cond_next149.i
-
-cond_next149.i: ; preds = %cond_true142.i, %cond_next135.i.cond_next149.i_crit_edge
- br i1 false, label %cond_true156.i, label %cond_next149.i.cond_next163.i_crit_edge
-
-cond_next149.i.cond_next163.i_crit_edge: ; preds = %cond_next149.i
- br label %cond_next163.i
-
-cond_true156.i: ; preds = %cond_next149.i
- br label %cond_next163.i
-
-cond_next163.i: ; preds = %cond_true156.i, %cond_next149.i.cond_next163.i_crit_edge
- br i1 false, label %cond_true182.i, label %cond_next163.i.cond_next380.i_crit_edge
-
-cond_next163.i.cond_next380.i_crit_edge: ; preds = %cond_next163.i
- br label %cond_next380.i
-
-cond_true182.i: ; preds = %cond_next163.i
- br i1 false, label %cond_true182.i.cond_next380.i_crit_edge, label %cond_true196.i
-
-cond_true182.i.cond_next380.i_crit_edge: ; preds = %cond_true182.i
- br label %cond_next380.i
-
-cond_true196.i: ; preds = %cond_true182.i
- br i1 false, label %cond_true210.i, label %cond_true196.i.cond_next380.i_crit_edge
-
-cond_true196.i.cond_next380.i_crit_edge: ; preds = %cond_true196.i
- br label %cond_next380.i
-
-cond_true210.i: ; preds = %cond_true196.i
- br i1 false, label %cond_true216.i, label %cond_true210.i.cond_next380.i_crit_edge
-
-cond_true210.i.cond_next380.i_crit_edge: ; preds = %cond_true210.i
- br label %cond_next380.i
-
-cond_true216.i: ; preds = %cond_true210.i
- br label %cond_next380.i
-
-cond_false223.i: ; preds = %cond_next.i
- br i1 false, label %cond_true229.i, label %cond_false355.i
-
-cond_true229.i: ; preds = %cond_false223.i
- br i1 false, label %cond_true229.i.HRead.exit.loopexit_crit_edge, label %cond_next243.i
-
-cond_true229.i.HRead.exit.loopexit_crit_edge: ; preds = %cond_true229.i
- br label %HRead.exit.loopexit
-
-cond_next243.i: ; preds = %cond_true229.i
- br i1 false, label %cond_true248.i, label %cond_false255.i
-
-cond_true248.i: ; preds = %cond_next243.i
- br label %cond_next260.i
-
-cond_false255.i: ; preds = %cond_next243.i
- br label %cond_next260.i
-
-cond_next260.i: ; preds = %cond_false255.i, %cond_true248.i
- br i1 false, label %cond_true267.i, label %cond_next273.i
-
-cond_true267.i: ; preds = %cond_next260.i
- br label %bb442.backedge
-
-bb442.backedge: ; preds = %bb.i, %cond_true267.i
- br label %bb442
-
-cond_next273.i: ; preds = %cond_next260.i
- br i1 false, label %cond_true281.i, label %cond_next273.i.cond_next288.i_crit_edge
-
-cond_next273.i.cond_next288.i_crit_edge: ; preds = %cond_next273.i
- br label %cond_next288.i
-
-cond_true281.i: ; preds = %cond_next273.i
- br label %cond_next288.i
-
-cond_next288.i: ; preds = %cond_true281.i, %cond_next273.i.cond_next288.i_crit_edge
- br i1 false, label %cond_true295.i, label %cond_next288.i.cond_next302.i_crit_edge
-
-cond_next288.i.cond_next302.i_crit_edge: ; preds = %cond_next288.i
- br label %cond_next302.i
-
-cond_true295.i: ; preds = %cond_next288.i
- br label %cond_next302.i
-
-cond_next302.i: ; preds = %cond_true295.i, %cond_next288.i.cond_next302.i_crit_edge
- br i1 false, label %cond_next302.i.cond_next380.i_crit_edge, label %cond_true328.i
-
-cond_next302.i.cond_next380.i_crit_edge: ; preds = %cond_next302.i
- br label %cond_next380.i
-
-cond_true328.i: ; preds = %cond_next302.i
- br i1 false, label %cond_true343.i, label %cond_true328.i.cond_next380.i_crit_edge
-
-cond_true328.i.cond_next380.i_crit_edge: ; preds = %cond_true328.i
- br label %cond_next380.i
-
-cond_true343.i: ; preds = %cond_true328.i
- br i1 false, label %cond_true349.i, label %cond_true343.i.cond_next380.i_crit_edge
-
-cond_true343.i.cond_next380.i_crit_edge: ; preds = %cond_true343.i
- br label %cond_next380.i
-
-cond_true349.i: ; preds = %cond_true343.i
- br label %cond_next380.i
-
-cond_false355.i: ; preds = %cond_false223.i
- br i1 false, label %cond_false355.i.bb.i_crit_edge, label %cond_next363.i
-
-cond_false355.i.bb.i_crit_edge: ; preds = %cond_false355.i
- br label %bb.i
-
-cond_next363.i: ; preds = %cond_false355.i
- br i1 false, label %bb377.i, label %cond_next363.i.bb.i_crit_edge
-
-cond_next363.i.bb.i_crit_edge: ; preds = %cond_next363.i
- br label %bb.i
-
-bb.i: ; preds = %cond_next363.i.bb.i_crit_edge, %cond_false355.i.bb.i_crit_edge
- br label %bb442.backedge
-
-bb377.i: ; preds = %cond_next363.i
- br label %cond_next380.i
-
-cond_next380.i: ; preds = %bb377.i, %cond_true349.i, %cond_true343.i.cond_next380.i_crit_edge, %cond_true328.i.cond_next380.i_crit_edge, %cond_next302.i.cond_next380.i_crit_edge, %cond_true216.i, %cond_true210.i.cond_next380.i_crit_edge, %cond_true196.i.cond_next380.i_crit_edge, %cond_true182.i.cond_next380.i_crit_edge, %cond_next163.i.cond_next380.i_crit_edge
- br i1 false, label %cond_next380.i.HRead.exit_crit_edge, label %cond_true391.i
-
-cond_next380.i.HRead.exit_crit_edge: ; preds = %cond_next380.i
- br label %HRead.exit
-
-cond_true391.i: ; preds = %cond_next380.i
- br label %bb442.outer.backedge
-
-bb442.outer.backedge: ; preds = %bb439, %cond_true391.i, %cond_true77.i
- br label %bb442.outer
-
-HRead.exit.loopexit: ; preds = %cond_true229.i.HRead.exit.loopexit_crit_edge, %cond_next433.HRead.exit.loopexit_crit_edge
- br label %HRead.exit
-
-HRead.exit: ; preds = %HRead.exit.loopexit, %cond_next380.i.HRead.exit_crit_edge
- br label %bb439
-
-bb439.loopexit: ; preds = %bb420
- br label %bb439
-
-bb439: ; preds = %bb439.loopexit, %HRead.exit
- br label %bb442.outer.backedge
-
-bb442.outer: ; preds = %bb442.outer.backedge, %bb442.preheader
- br label %bb442
-
-bb442: ; preds = %bb442.outer, %bb442.backedge
- br i1 false, label %bb420, label %bb.loopexit
-}
-
-define void @Invalidate() {
-entry:
- br i1 false, label %cond_false, label %cond_true
-
-cond_true: ; preds = %entry
- br i1 false, label %cond_true40, label %cond_true.cond_next_crit_edge
-
-cond_true.cond_next_crit_edge: ; preds = %cond_true
- br label %cond_next
-
-cond_true40: ; preds = %cond_true
- br label %cond_next
-
-cond_next: ; preds = %cond_true40, %cond_true.cond_next_crit_edge
- br i1 false, label %cond_true68, label %cond_next.cond_next73_crit_edge
-
-cond_next.cond_next73_crit_edge: ; preds = %cond_next
- br label %cond_next73
-
-cond_true68: ; preds = %cond_next
- br label %cond_next73
-
-cond_next73: ; preds = %cond_true68, %cond_next.cond_next73_crit_edge
- br i1 false, label %cond_true91, label %cond_next73.cond_next96_crit_edge
-
-cond_next73.cond_next96_crit_edge: ; preds = %cond_next73
- br label %cond_next96
-
-cond_true91: ; preds = %cond_next73
- br label %cond_next96
-
-cond_next96: ; preds = %cond_true91, %cond_next73.cond_next96_crit_edge
- br i1 false, label %cond_next96.cond_next112_crit_edge, label %cond_true105
-
-cond_next96.cond_next112_crit_edge: ; preds = %cond_next96
- br label %cond_next112
-
-cond_true105: ; preds = %cond_next96
- br label %cond_next112
-
-cond_next112: ; preds = %cond_true105, %cond_next96.cond_next112_crit_edge
- br i1 false, label %cond_next112.cond_next127_crit_edge, label %cond_true119
-
-cond_next112.cond_next127_crit_edge: ; preds = %cond_next112
- br label %cond_next127
-
-cond_true119: ; preds = %cond_next112
- br label %cond_next127
-
-cond_next127: ; preds = %cond_true119, %cond_next112.cond_next127_crit_edge
- br i1 false, label %cond_next141, label %cond_true134
-
-cond_true134: ; preds = %cond_next127
- br i1 false, label %cond_true134.bb161_crit_edge, label %cond_true134.bb_crit_edge
-
-cond_true134.bb_crit_edge: ; preds = %cond_true134
- br label %bb
-
-cond_true134.bb161_crit_edge: ; preds = %cond_true134
- br label %bb161
-
-cond_next141: ; preds = %cond_next127
- br label %bb154
-
-bb: ; preds = %bb154.bb_crit_edge, %cond_true134.bb_crit_edge
- br label %bb154
-
-bb154: ; preds = %bb, %cond_next141
- br i1 false, label %bb154.bb161_crit_edge, label %bb154.bb_crit_edge
-
-bb154.bb_crit_edge: ; preds = %bb154
- br label %bb
-
-bb154.bb161_crit_edge: ; preds = %bb154
- br label %bb161
-
-bb161: ; preds = %bb154.bb161_crit_edge, %cond_true134.bb161_crit_edge
- br i1 false, label %bb161.cond_next201_crit_edge, label %cond_true198
-
-bb161.cond_next201_crit_edge: ; preds = %bb161
- br label %cond_next201
-
-cond_true198: ; preds = %bb161
- br label %cond_next201
-
-cond_next201: ; preds = %cond_true198, %bb161.cond_next201_crit_edge
- br i1 false, label %cond_next212, label %cond_true206
-
-cond_true206: ; preds = %cond_next201
- br label %UnifiedReturnBlock
-
-cond_false: ; preds = %entry
- br label %UnifiedReturnBlock
-
-cond_next212: ; preds = %cond_next201
- br label %UnifiedReturnBlock
-
-UnifiedReturnBlock: ; preds = %cond_next212, %cond_false, %cond_true206
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/PostDominators/2007-04-20-PostDom-Reset.ll b/libclamav/c++/llvm/test/Analysis/PostDominators/2007-04-20-PostDom-Reset.ll
deleted file mode 100644
index 767e5db..0000000
--- a/libclamav/c++/llvm/test/Analysis/PostDominators/2007-04-20-PostDom-Reset.ll
+++ /dev/null
@@ -1,28 +0,0 @@
-; RUN: opt < %s -postdomfrontier -disable-output
-
-define void @args_out_of_range() {
-entry:
- br label %bb
-
-bb: ; preds = %bb, %entry
- br label %bb
-}
-
-define void @args_out_of_range_3() {
-entry:
- br label %bb
-
-bb: ; preds = %bb, %entry
- br label %bb
-}
-
-define void @Feq() {
-entry:
- br i1 false, label %cond_true, label %cond_next
-
-cond_true: ; preds = %entry
- unreachable
-
-cond_next: ; preds = %entry
- unreachable
-}
diff --git a/libclamav/c++/llvm/test/Analysis/PostDominators/dg.exp b/libclamav/c++/llvm/test/Analysis/PostDominators/dg.exp
deleted file mode 100644
index f200589..0000000
--- a/libclamav/c++/llvm/test/Analysis/PostDominators/dg.exp
+++ /dev/null
@@ -1,3 +0,0 @@
-load_lib llvm.exp
-
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
diff --git a/libclamav/c++/llvm/test/Analysis/PostDominators/pr1098.ll b/libclamav/c++/llvm/test/Analysis/PostDominators/pr1098.ll
deleted file mode 100644
index afb4776..0000000
--- a/libclamav/c++/llvm/test/Analysis/PostDominators/pr1098.ll
+++ /dev/null
@@ -1,14 +0,0 @@
-; RUN: opt < %s -postdomtree -analyze | grep entry
-; PR932
-
-define void @foo(i1 %x) {
-entry:
- br i1 %x, label %bb1, label %bb0
-bb0: ; preds = %entry, bb0
- br label %bb0
-bb1: ; preds = %entry
- br label %bb2
-bb2: ; preds = %bb1
- ret void
-}
-
diff --git a/libclamav/c++/llvm/test/Analysis/PostDominators/pr6047_a.ll b/libclamav/c++/llvm/test/Analysis/PostDominators/pr6047_a.ll
deleted file mode 100644
index ec1455b..0000000
--- a/libclamav/c++/llvm/test/Analysis/PostDominators/pr6047_a.ll
+++ /dev/null
@@ -1,15 +0,0 @@
-; RUN: opt < %s -postdomtree -analyze | FileCheck %s
-define internal void @f() {
-entry:
- br i1 undef, label %bb35, label %bb3.i
-
-bb3.i:
- br label %bb3.i
-
-bb35.loopexit3:
- br label %bb35
-
-bb35:
- ret void
-}
-; CHECK: [3] %entry
diff --git a/libclamav/c++/llvm/test/Analysis/PostDominators/pr6047_b.ll b/libclamav/c++/llvm/test/Analysis/PostDominators/pr6047_b.ll
deleted file mode 100644
index 7bd2c86..0000000
--- a/libclamav/c++/llvm/test/Analysis/PostDominators/pr6047_b.ll
+++ /dev/null
@@ -1,19 +0,0 @@
-; RUN: opt < %s -postdomtree -analyze | FileCheck %s
-define internal void @f() {
-entry:
- br i1 undef, label %a, label %bb3.i
-
-a:
- br i1 undef, label %bb35, label %bb3.i
-
-bb3.i:
- br label %bb3.i
-
-
-bb35.loopexit3:
- br label %bb35
-
-bb35:
- ret void
-}
-; CHECK: [4] %entry
diff --git a/libclamav/c++/llvm/test/Analysis/PostDominators/pr6047_c.ll b/libclamav/c++/llvm/test/Analysis/PostDominators/pr6047_c.ll
deleted file mode 100644
index 08c9551..0000000
--- a/libclamav/c++/llvm/test/Analysis/PostDominators/pr6047_c.ll
+++ /dev/null
@@ -1,147 +0,0 @@
-; RUN: opt < %s -postdomtree -analyze | FileCheck %s
-define internal void @f() {
-entry:
- br i1 undef, label %bb35, label %bb3.i
-
-bb3.i:
- br label %bb3.i
-
-bb:
- br label %bb35
-
-bb.i:
- br label %bb35
-
-_float32_unpack.exit:
- br label %bb35
-
-bb.i5:
- br label %bb35
-
-_float32_unpack.exit8:
- br label %bb35
-
-bb32.preheader:
- br label %bb35
-
-bb3:
- br label %bb35
-
-bb3.split.us:
- br label %bb35
-
-bb.i4.us:
- br label %bb35
-
-bb7.i.us:
- br label %bb35
-
-bb.i4.us.backedge:
- br label %bb35
-
-bb1.i.us:
- br label %bb35
-
-bb6.i.us:
- br label %bb35
-
-bb4.i.us:
- br label %bb35
-
-bb8.i.us:
- br label %bb35
-
-bb3.i.loopexit.us:
- br label %bb35
-
-bb.nph21:
- br label %bb35
-
-bb4:
- br label %bb35
-
-bb5:
- br label %bb35
-
-bb14.preheader:
- br label %bb35
-
-bb.nph18:
- br label %bb35
-
-bb8.us.preheader:
- br label %bb35
-
-bb8.preheader:
- br label %bb35
-
-bb8.us:
- br label %bb35
-
-bb8:
- br label %bb35
-
-bb15.loopexit:
- br label %bb35
-
-bb15.loopexit2:
- br label %bb35
-
-bb15:
- br label %bb35
-
-bb16:
- br label %bb35
-
-bb17.loopexit.split:
- br label %bb35
-
-bb.nph14:
- br label %bb35
-
-bb19:
- br label %bb35
-
-bb20:
- br label %bb35
-
-bb29.preheader:
- br label %bb35
-
-bb.nph:
- br label %bb35
-
-bb23.us.preheader:
- br label %bb35
-
-bb23.preheader:
- br label %bb35
-
-bb23.us:
- br label %bb35
-
-bb23:
- br label %bb35
-
-bb30.loopexit:
- br label %bb35
-
-bb30.loopexit1:
- br label %bb35
-
-bb30:
- br label %bb35
-
-bb31:
- br label %bb35
-
-bb35.loopexit:
- br label %bb35
-
-bb35.loopexit3:
- br label %bb35
-
-bb35:
- ret void
-}
-; CHECK: [3] %entry
diff --git a/libclamav/c++/llvm/test/Analysis/PostDominators/pr6047_d.ll b/libclamav/c++/llvm/test/Analysis/PostDominators/pr6047_d.ll
deleted file mode 100644
index 4cfa880..0000000
--- a/libclamav/c++/llvm/test/Analysis/PostDominators/pr6047_d.ll
+++ /dev/null
@@ -1,24 +0,0 @@
-; RUN: opt < %s -postdomtree -analyze | FileCheck %s
-define internal void @f() {
-entry:
- br i1 1, label %a, label %b
-
-a:
-br label %c
-
-b:
-br label %c
-
-c:
- br i1 undef, label %bb35, label %bb3.i
-
-bb3.i:
- br label %bb3.i
-
-bb35.loopexit3:
- br label %bb35
-
-bb35:
- ret void
-}
-; CHECK: [4] %entry
diff --git a/libclamav/c++/llvm/test/Analysis/Profiling/dg.exp b/libclamav/c++/llvm/test/Analysis/Profiling/dg.exp
deleted file mode 100644
index 1eb4755..0000000
--- a/libclamav/c++/llvm/test/Analysis/Profiling/dg.exp
+++ /dev/null
@@ -1,4 +0,0 @@
-load_lib llvm.exp
-
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
-
diff --git a/libclamav/c++/llvm/test/Analysis/Profiling/edge-profiling.ll b/libclamav/c++/llvm/test/Analysis/Profiling/edge-profiling.ll
deleted file mode 100644
index cbaf476..0000000
--- a/libclamav/c++/llvm/test/Analysis/Profiling/edge-profiling.ll
+++ /dev/null
@@ -1,139 +0,0 @@
-; Test the edge profiling instrumentation.
-; RUN: opt < %s -insert-edge-profiling -S | FileCheck %s
-
-; ModuleID = '<stdin>'
-
- at .str = private constant [12 x i8] c"hello world\00", align 1 ; <[12 x i8]*> [#uses=1]
- at .str1 = private constant [6 x i8] c"franz\00", align 1 ; <[6 x i8]*> [#uses=1]
- at .str2 = private constant [9 x i8] c"argc > 2\00", align 1 ; <[9 x i8]*> [#uses=1]
- at .str3 = private constant [9 x i8] c"argc = 1\00", align 1 ; <[9 x i8]*> [#uses=1]
- at .str4 = private constant [6 x i8] c"fritz\00", align 1 ; <[6 x i8]*> [#uses=1]
- at .str5 = private constant [10 x i8] c"argc <= 1\00", align 1 ; <[10 x i8]*> [#uses=1]
-; CHECK:@EdgeProfCounters
-; CHECK:[19 x i32]
-; CHECK:zeroinitializer
-
-define void @oneblock() nounwind {
-entry:
-; CHECK:entry:
-; CHECK:%OldFuncCounter
-; CHECK:load
-; CHECK:getelementptr
-; CHECK:@EdgeProfCounters
-; CHECK:i32 0
-; CHECK:i32 0
-; CHECK:%NewFuncCounter
-; CHECK:add
-; CHECK:%OldFuncCounter
-; CHECK:store
-; CHECK:%NewFuncCounter
-; CHECK:getelementptr
-; CHECK:@EdgeProfCounters
- %0 = call i32 @puts(i8* getelementptr inbounds ([12 x i8]* @.str, i64 0, i64 0)) nounwind ; <i32> [#uses=0]
- ret void
-}
-
-declare i32 @puts(i8*)
-
-define i32 @main(i32 %argc, i8** %argv) nounwind {
-entry:
-; CHECK:entry:
- %argc_addr = alloca i32 ; <i32*> [#uses=4]
- %argv_addr = alloca i8** ; <i8***> [#uses=1]
- %retval = alloca i32 ; <i32*> [#uses=2]
- %j = alloca i32 ; <i32*> [#uses=4]
- %i = alloca i32 ; <i32*> [#uses=4]
- %0 = alloca i32 ; <i32*> [#uses=2]
-; CHECK:call
-; CHECK:@llvm_start_edge_profiling
-; CHECK:@EdgeProfCounters
- %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
- store i32 %argc, i32* %argc_addr
- store i8** %argv, i8*** %argv_addr
- store i32 0, i32* %i, align 4
- br label %bb10
-
-bb: ; preds = %bb10
-; CHECK:bb:
- %1 = load i32* %argc_addr, align 4 ; <i32> [#uses=1]
- %2 = icmp sgt i32 %1, 1 ; <i1> [#uses=1]
- br i1 %2, label %bb1, label %bb8
-
-bb1: ; preds = %bb
-; CHECK:bb1:
- store i32 0, i32* %j, align 4
- br label %bb6
-
-bb2: ; preds = %bb6
-; CHECK:bb2:
- %3 = call i32 @puts(i8* getelementptr inbounds ([6 x i8]* @.str1, i64 0, i64 0)) nounwind ; <i32> [#uses=0]
- %4 = load i32* %argc_addr, align 4 ; <i32> [#uses=1]
- %5 = icmp sgt i32 %4, 2 ; <i1> [#uses=1]
- br i1 %5, label %bb3, label %bb4
-
-bb3: ; preds = %bb2
-; CHECK:bb3:
- %6 = call i32 @puts(i8* getelementptr inbounds ([9 x i8]* @.str2, i64 0, i64 0)) nounwind ; <i32> [#uses=0]
- br label %bb5
-
-bb4: ; preds = %bb2
-; CHECK:bb4:
- %7 = call i32 @puts(i8* getelementptr inbounds ([9 x i8]* @.str3, i64 0, i64 0)) nounwind ; <i32> [#uses=0]
- br label %bb11
-
-bb5: ; preds = %bb3
-; CHECK:bb5:
- %8 = call i32 @puts(i8* getelementptr inbounds ([6 x i8]* @.str4, i64 0, i64 0)) nounwind ; <i32> [#uses=0]
- %9 = load i32* %j, align 4 ; <i32> [#uses=1]
- %10 = add nsw i32 %9, 1 ; <i32> [#uses=1]
- store i32 %10, i32* %j, align 4
- br label %bb6
-
-bb6: ; preds = %bb5, %bb1
-; CHECK:bb6:
- %11 = load i32* %j, align 4 ; <i32> [#uses=1]
- %12 = load i32* %argc_addr, align 4 ; <i32> [#uses=1]
- %13 = icmp slt i32 %11, %12 ; <i1> [#uses=1]
- br i1 %13, label %bb2, label %bb7
-
-bb7: ; preds = %bb6
-; CHECK:bb7:
- br label %bb9
-
-bb8: ; preds = %bb
-; CHECK:bb8:
- %14 = call i32 @puts(i8* getelementptr inbounds ([10 x i8]* @.str5, i64 0, i64 0)) nounwind ; <i32> [#uses=0]
- br label %bb9
-
-bb9: ; preds = %bb8, %bb7
-; CHECK:bb9:
- %15 = load i32* %i, align 4 ; <i32> [#uses=1]
- %16 = add nsw i32 %15, 1 ; <i32> [#uses=1]
- store i32 %16, i32* %i, align 4
- br label %bb10
-
-bb10: ; preds = %bb9, %entry
-; CHECK:bb10:
- %17 = load i32* %i, align 4 ; <i32> [#uses=1]
- %18 = icmp ne i32 %17, 3 ; <i1> [#uses=1]
- br i1 %18, label %bb, label %bb11
-; CHECK:br
-; CHECK:label %bb10.bb11_crit_edge
-
-; CHECK:bb10.bb11_crit_edge:
-; CHECK:br
-; CHECK:label %bb11
-
-bb11: ; preds = %bb10, %bb4
-; CHECK:bb11:
- call void @oneblock() nounwind
- store i32 0, i32* %0, align 4
- %19 = load i32* %0, align 4 ; <i32> [#uses=1]
- store i32 %19, i32* %retval, align 4
- br label %return
-
-return: ; preds = %bb11
-; CHECK:return:
- %retval12 = load i32* %retval ; <i32> [#uses=1]
- ret i32 %retval12
-}
diff --git a/libclamav/c++/llvm/test/Analysis/Profiling/profiling-tool-chain.ll b/libclamav/c++/llvm/test/Analysis/Profiling/profiling-tool-chain.ll
deleted file mode 100644
index 5ac31b5..0000000
--- a/libclamav/c++/llvm/test/Analysis/Profiling/profiling-tool-chain.ll
+++ /dev/null
@@ -1,212 +0,0 @@
-; RUN: llvm-as %s -o %t1
-
-; FIXME: The RUX parts of the test are disabled for now, they aren't working on
-; llvm-gcc-x86_64-darwin10-selfhost.
-
-; Test the edge optimal profiling instrumentation.
-; RUN: opt %t1 -insert-optimal-edge-profiling -o %t2
-; RUX: llvm-dis < %t2 | FileCheck --check-prefix=INST %s
-
-; Test the creation, reading and displaying of profile
-; RUX: rm -f llvmprof.out
-; RUX: lli -load %llvmlibsdir/profile_rt%shlibext %t2
-; RUX: lli -load %llvmlibsdir/profile_rt%shlibext %t2 1 2
-; RUX: llvm-prof -print-all-code %t1 | FileCheck --check-prefix=PROF %s
-
-; Test the loaded profile also with verifier.
-; RUX opt %t1 -profile-loader -profile-verifier -o %t3
-
-; Test profile estimator.
-; RUN: opt %t1 -profile-estimator -profile-verifier -o %t3
-
-; PROF: 1. 2/4 oneblock
-; PROF: 2. 2/4 main
-; PROF: 1. 15.7895% 12/76 main() - bb6
-; PROF: 2. 11.8421% 9/76 main() - bb2
-; PROF: 3. 11.8421% 9/76 main() - bb3
-; PROF: 4. 11.8421% 9/76 main() - bb5
-; PROF: 5. 10.5263% 8/76 main() - bb10
-; PROF: 6. 7.89474% 6/76 main() - bb
-; PROF: 7. 7.89474% 6/76 main() - bb9
-; PROF: 8. 3.94737% 3/76 main() - bb1
-; PROF: 9. 3.94737% 3/76 main() - bb7
-; PROF: 10. 3.94737% 3/76 main() - bb8
-; PROF: 11. 2.63158% 2/76 oneblock() - entry
-; PROF: 12. 2.63158% 2/76 main() - entry
-; PROF: 13. 2.63158% 2/76 main() - bb11
-; PROF: 14. 2.63158% 2/76 main() - return
-
-; ModuleID = '<stdin>'
-
- at .str = private constant [12 x i8] c"hello world\00", align 1 ; <[12 x i8]*> [#uses=1]
- at .str1 = private constant [6 x i8] c"franz\00", align 1 ; <[6 x i8]*> [#uses=1]
- at .str2 = private constant [9 x i8] c"argc > 2\00", align 1 ; <[9 x i8]*> [#uses=1]
- at .str3 = private constant [9 x i8] c"argc = 1\00", align 1 ; <[9 x i8]*> [#uses=1]
- at .str4 = private constant [6 x i8] c"fritz\00", align 1 ; <[6 x i8]*> [#uses=1]
- at .str5 = private constant [10 x i8] c"argc <= 1\00", align 1 ; <[10 x i8]*> [#uses=1]
-; INST:@OptEdgeProfCounters
-; INST:[21 x i32]
-; INST:[i32 0,
-; INST:i32 -1,
-; INST:i32 -1,
-; INST:i32 -1,
-; INST:i32 -1,
-; INST:i32 -1,
-; INST:i32 -1,
-; INST:i32 -1,
-; INST:i32 -1,
-; INST:i32 0,
-; INST:i32 0,
-; INST:i32 -1,
-; INST:i32 -1,
-; INST:i32 -1,
-; INST:i32 0,
-; INST:i32 0,
-; INST:i32 -1,
-; INST:i32 -1,
-; INST:i32 0,
-; INST:i32 -1,
-; INST:i32 -1]
-
-; PROF:;;; %oneblock called 2 times.
-; PROF:;;;
-define void @oneblock() nounwind {
-entry:
-; PROF:entry:
-; PROF: ;;; Basic block executed 2 times.
- %0 = call i32 @puts(i8* getelementptr inbounds ([12 x i8]* @.str, i64 0, i64 0)) nounwind ; <i32> [#uses=0]
- ret void
-}
-
-declare i32 @puts(i8*)
-
-; PROF:;;; %main called 2 times.
-; PROF:;;;
-define i32 @main(i32 %argc, i8** %argv) nounwind {
-entry:
-; PROF:entry:
-; PROF: ;;; Basic block executed 2 times.
- %argc_addr = alloca i32 ; <i32*> [#uses=4]
- %argv_addr = alloca i8** ; <i8***> [#uses=1]
- %retval = alloca i32 ; <i32*> [#uses=2]
- %j = alloca i32 ; <i32*> [#uses=4]
- %i = alloca i32 ; <i32*> [#uses=4]
- %0 = alloca i32 ; <i32*> [#uses=2]
-; INST:call
-; INST:@llvm_start_opt_edge_profiling
-; INST:@OptEdgeProfCounters
- %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
- store i32 %argc, i32* %argc_addr
- store i8** %argv, i8*** %argv_addr
- store i32 0, i32* %i, align 4
- br label %bb10
-; PROF: ;;; Out-edge counts: [2.000000e+00 -> bb10]
-
-bb: ; preds = %bb10
-; PROF:bb:
-; PROF: ;;; Basic block executed 6 times.
- %1 = load i32* %argc_addr, align 4 ; <i32> [#uses=1]
- %2 = icmp sgt i32 %1, 1 ; <i1> [#uses=1]
- br i1 %2, label %bb1, label %bb8
-; PROF: ;;; Out-edge counts: [3.000000e+00 -> bb1] [3.000000e+00 -> bb8]
-
-bb1: ; preds = %bb
-; PROF:bb1:
-; PROF: ;;; Basic block executed 3 times.
- store i32 0, i32* %j, align 4
- br label %bb6
-; PROF: ;;; Out-edge counts: [3.000000e+00 -> bb6]
-
-bb2: ; preds = %bb6
-; PROF:bb2:
-; PROF: ;;; Basic block executed 9 times.
- %3 = call i32 @puts(i8* getelementptr inbounds ([6 x i8]* @.str1, i64 0, i64 0)) nounwind ; <i32> [#uses=0]
- %4 = load i32* %argc_addr, align 4 ; <i32> [#uses=1]
- %5 = icmp sgt i32 %4, 2 ; <i1> [#uses=1]
- br i1 %5, label %bb3, label %bb4
-; PROF: ;;; Out-edge counts: [9.000000e+00 -> bb3]
-
-bb3: ; preds = %bb2
-; PROF:bb3:
-; PROF: ;;; Basic block executed 9 times.
- %6 = call i32 @puts(i8* getelementptr inbounds ([9 x i8]* @.str2, i64 0, i64 0)) nounwind ; <i32> [#uses=0]
- br label %bb5
-; PROF: ;;; Out-edge counts: [9.000000e+00 -> bb5]
-
-bb4: ; preds = %bb2
-; PROF:bb4:
-; PROF: ;;; Never executed!
- %7 = call i32 @puts(i8* getelementptr inbounds ([9 x i8]* @.str3, i64 0, i64 0)) nounwind ; <i32> [#uses=0]
- br label %bb11
-
-bb5: ; preds = %bb3
-; PROF:bb5:
-; PROF: ;;; Basic block executed 9 times.
- %8 = call i32 @puts(i8* getelementptr inbounds ([6 x i8]* @.str4, i64 0, i64 0)) nounwind ; <i32> [#uses=0]
- %9 = load i32* %j, align 4 ; <i32> [#uses=1]
- %10 = add nsw i32 %9, 1 ; <i32> [#uses=1]
- store i32 %10, i32* %j, align 4
- br label %bb6
-; PROF: ;;; Out-edge counts: [9.000000e+00 -> bb6]
-
-bb6: ; preds = %bb5, %bb1
-; PROF:bb6:
-; PROF: ;;; Basic block executed 12 times.
- %11 = load i32* %j, align 4 ; <i32> [#uses=1]
- %12 = load i32* %argc_addr, align 4 ; <i32> [#uses=1]
- %13 = icmp slt i32 %11, %12 ; <i1> [#uses=1]
- br i1 %13, label %bb2, label %bb7
-; PROF: ;;; Out-edge counts: [9.000000e+00 -> bb2] [3.000000e+00 -> bb7]
-
-bb7: ; preds = %bb6
-; PROF:bb7:
-; PROF: ;;; Basic block executed 3 times.
- br label %bb9
-; PROF: ;;; Out-edge counts: [3.000000e+00 -> bb9]
-
-bb8: ; preds = %bb
-; PROF:bb8:
-; PROF: ;;; Basic block executed 3 times.
- %14 = call i32 @puts(i8* getelementptr inbounds ([10 x i8]* @.str5, i64 0, i64 0)) nounwind ; <i32> [#uses=0]
- br label %bb9
-; PROF: ;;; Out-edge counts: [3.000000e+00 -> bb9]
-
-bb9: ; preds = %bb8, %bb7
-; PROF:bb9:
-; PROF: ;;; Basic block executed 6 times.
- %15 = load i32* %i, align 4 ; <i32> [#uses=1]
- %16 = add nsw i32 %15, 1 ; <i32> [#uses=1]
- store i32 %16, i32* %i, align 4
- br label %bb10
-; PROF: ;;; Out-edge counts: [6.000000e+00 -> bb10]
-
-bb10: ; preds = %bb9, %entry
-; PROF:bb10:
-; PROF: ;;; Basic block executed 8 times.
- %17 = load i32* %i, align 4 ; <i32> [#uses=1]
- %18 = icmp ne i32 %17, 3 ; <i1> [#uses=1]
- br i1 %18, label %bb, label %bb11
-; INST:br
-; INST:label %bb10.bb11_crit_edge
-; PROF: ;;; Out-edge counts: [6.000000e+00 -> bb] [2.000000e+00 -> bb11]
-
-; INST:bb10.bb11_crit_edge:
-; INST:br
-; INST:label %bb11
-
-bb11: ; preds = %bb10, %bb4
-; PROF:bb11:
-; PROF: ;;; Basic block executed 2 times.
- call void @oneblock() nounwind
- store i32 0, i32* %0, align 4
- %19 = load i32* %0, align 4 ; <i32> [#uses=1]
- store i32 %19, i32* %retval, align 4
- br label %return
-; PROF: ;;; Out-edge counts: [2.000000e+00 -> return]
-
-return: ; preds = %bb11
-; PROF:return:
-; PROF: ;;; Basic block executed 2 times.
- %retval12 = load i32* %retval ; <i32> [#uses=1]
- ret i32 %retval12
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2007-07-15-NegativeStride.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2007-07-15-NegativeStride.ll
deleted file mode 100644
index 7ff130f..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2007-07-15-NegativeStride.ll
+++ /dev/null
@@ -1,21 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution \
-; RUN: -scalar-evolution-max-iterations=0 | grep {Loop %bb: backedge-taken count is 100}
-; PR1533
-
- at array = weak global [101 x i32] zeroinitializer, align 32 ; <[100 x i32]*> [#uses=1]
-
-define void @loop(i32 %x) {
-entry:
- br label %bb
-
-bb: ; preds = %bb, %entry
- %i.01.0 = phi i32 [ 100, %entry ], [ %tmp4, %bb ] ; <i32> [#uses=2]
- %tmp1 = getelementptr [101 x i32]* @array, i32 0, i32 %i.01.0 ; <i32*> [#uses=1]
- store i32 %x, i32* %tmp1
- %tmp4 = add i32 %i.01.0, -1 ; <i32> [#uses=2]
- %tmp7 = icmp sgt i32 %tmp4, -1 ; <i1> [#uses=1]
- br i1 %tmp7, label %bb, label %return
-
-return: ; preds = %bb
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2007-08-06-MisinterpretBranch.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2007-08-06-MisinterpretBranch.ll
deleted file mode 100644
index e67e4d0..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2007-08-06-MisinterpretBranch.ll
+++ /dev/null
@@ -1,18 +0,0 @@
-; RUN: opt < %s -indvars -adce -simplifycfg -S | grep "icmp s"
-; PR1598
-
-define i32 @f(i32 %a, i32 %b, i32 %x, i32 %y) {
-entry:
- %tmp3 = icmp eq i32 %a, %b ; <i1> [#uses=1]
- br i1 %tmp3, label %return, label %bb
-
-bb: ; preds = %bb, %entry
- %x_addr.0 = phi i32 [ %tmp6, %bb ], [ %x, %entry ] ; <i32> [#uses=1]
- %tmp6 = add i32 %x_addr.0, 1 ; <i32> [#uses=3]
- %tmp9 = icmp slt i32 %tmp6, %y ; <i1> [#uses=1]
- br i1 %tmp9, label %bb, label %return
-
-return: ; preds = %bb, %entry
- %x_addr.1 = phi i32 [ %x, %entry ], [ %tmp6, %bb ] ; <i32> [#uses=1]
- ret i32 %x_addr.1
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2007-08-06-Unsigned.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2007-08-06-Unsigned.ll
deleted file mode 100644
index ab96243..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2007-08-06-Unsigned.ll
+++ /dev/null
@@ -1,30 +0,0 @@
-; RUN: opt < %s -scalar-evolution -analyze | grep {Loop %bb: backedge-taken count is (-1 + (-1 \\* %x) + %y)}
-; PR1597
-
-define i32 @f(i32 %x, i32 %y) {
-entry:
- %tmp63 = icmp ult i32 %x, %y ; <i1> [#uses=1]
- br i1 %tmp63, label %bb.preheader, label %bb8
-
-bb.preheader: ; preds = %entry
- br label %bb
-
-bb: ; preds = %bb3, %bb.preheader
- %x_addr.0 = phi i32 [ %tmp2, %bb3 ], [ %x, %bb.preheader ] ; <i32> [#uses=1]
- %tmp2 = add i32 %x_addr.0, 1 ; <i32> [#uses=3]
- br label %bb3
-
-bb3: ; preds = %bb
- %tmp6 = icmp ult i32 %tmp2, %y ; <i1> [#uses=1]
- br i1 %tmp6, label %bb, label %bb8.loopexit
-
-bb8.loopexit: ; preds = %bb3
- br label %bb8
-
-bb8: ; preds = %bb8.loopexit, %entry
- %x_addr.1 = phi i32 [ %x, %entry ], [ %tmp2, %bb8.loopexit ] ; <i32> [#uses=1]
- br label %return
-
-return: ; preds = %bb8
- ret i32 %x_addr.1
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2007-09-27-LargeStepping.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2007-09-27-LargeStepping.ll
deleted file mode 100644
index b678fee..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2007-09-27-LargeStepping.ll
+++ /dev/null
@@ -1,22 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution \
-; RUN: -scalar-evolution-max-iterations=0 | grep {backedge-taken count is 13}
-; PR1706
-
-define i32 @f() {
-entry:
- br label %bb5
-
-bb: ; preds = %bb5
- %tmp2 = shl i32 %j.0, 1 ; <i32> [#uses=1]
- %tmp4 = add i32 %i.0, 268435456 ; <i32> [#uses=1]
- br label %bb5
-
-bb5: ; preds = %bb, %entry
- %j.0 = phi i32 [ 1, %entry ], [ %tmp2, %bb ] ; <i32> [#uses=2]
- %i.0 = phi i32 [ -1879048192, %entry ], [ %tmp4, %bb ] ; <i32> [#uses=2]
- %tmp7 = icmp slt i32 %i.0, 1610612736 ; <i1> [#uses=1]
- br i1 %tmp7, label %bb, label %return
-
-return: ; preds = %bb5
- ret i32 %j.0
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2007-11-14-SignedAddRec.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2007-11-14-SignedAddRec.ll
deleted file mode 100644
index 514920f..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2007-11-14-SignedAddRec.ll
+++ /dev/null
@@ -1,24 +0,0 @@
-; RUN: opt < %s -indvars -S | grep printd | grep 1206807378
-; PR1798
-
-declare void @printd(i32)
-
-define i32 @test() {
-entry:
- br label %bb6
-
-bb: ; preds = %bb6
- %tmp3 = add i32 %x.0, %i.0 ; <i32> [#uses=1]
- %tmp5 = add i32 %i.0, 1 ; <i32> [#uses=1]
- br label %bb6
-
-bb6: ; preds = %bb, %entry
- %i.0 = phi i32 [ 0, %entry ], [ %tmp5, %bb ] ; <i32> [#uses=3]
- %x.0 = phi i32 [ 0, %entry ], [ %tmp3, %bb ] ; <i32> [#uses=3]
- %tmp8 = icmp slt i32 %i.0, 123456789 ; <i1> [#uses=1]
- br i1 %tmp8, label %bb, label %bb10
-
-bb10: ; preds = %bb6
- call void @printd(i32 %x.0)
- ret i32 0
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2007-11-18-OrInstruction.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2007-11-18-OrInstruction.ll
deleted file mode 100644
index c12721d..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2007-11-18-OrInstruction.ll
+++ /dev/null
@@ -1,21 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s
-; PR1810
-
-define void @fun() {
-entry:
- br label %header
-header:
- %i = phi i32 [ 1, %entry ], [ %i.next, %body ]
- %cond = icmp eq i32 %i, 10
- br i1 %cond, label %exit, label %body
-body:
- %a = mul i32 %i, 5
- %b = or i32 %a, 1
- %i.next = add i32 %i, 1
- br label %header
-exit:
- ret void
-}
-
-; CHECK: --> %b
-
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-02-11-ReversedCondition.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-02-11-ReversedCondition.ll
deleted file mode 100644
index fe3a7f4..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-02-11-ReversedCondition.ll
+++ /dev/null
@@ -1,15 +0,0 @@
-; RUN: opt < %s -scalar-evolution -analyze | grep {Loop %header: backedge-taken count is (0 smax %n)}
-
-define void @foo(i32 %n) {
-entry:
- br label %header
-header:
- %i = phi i32 [ 0, %entry ], [ %i.inc, %next ]
- %cond = icmp sgt i32 %n, %i
- br i1 %cond, label %next, label %return
-next:
- %i.inc = add i32 %i, 1
- br label %header
-return:
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-02-12-SMAXTripCount.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-02-12-SMAXTripCount.ll
deleted file mode 100644
index 4f14a0d..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-02-12-SMAXTripCount.ll
+++ /dev/null
@@ -1,16 +0,0 @@
-; RUN: opt < %s -scalar-evolution -analyze | grep {Loop %loop: backedge-taken count is (100 + (-100 smax %n))}
-; PR2002
-
-define void @foo(i8 %n) {
-entry:
- br label %loop
-loop:
- %i = phi i8 [ -100, %entry ], [ %i.inc, %next ]
- %cond = icmp slt i8 %i, %n
- br i1 %cond, label %next, label %return
-next:
- %i.inc = add i8 %i, 1
- br label %loop
-return:
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-02-15-UMax.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-02-15-UMax.ll
deleted file mode 100644
index 52c7985..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-02-15-UMax.ll
+++ /dev/null
@@ -1,17 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution | grep umax
-; PR2003
-
-define i32 @foo(i32 %n) {
-entry:
- br label %header
-header:
- %i = phi i32 [ 100, %entry ], [ %i.inc, %next ]
- %cond = icmp ult i32 %i, %n
- br i1 %cond, label %next, label %return
-next:
- %i.inc = add i32 %i, 1
- br label %header
-return:
- ret i32 %i
-}
-
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-05-25-NegativeStepToZero.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-05-25-NegativeStepToZero.ll
deleted file mode 100644
index bcc124d..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-05-25-NegativeStepToZero.ll
+++ /dev/null
@@ -1,22 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution \
-; RUN: -scalar-evolution-max-iterations=0 | grep {backedge-taken count is 61}
-; PR2364
-
-define i32 @func_6() nounwind {
-entry:
- br label %bb5
-
-bb: ; preds = %bb5
- %tmp2 = add i32 %i.0, 1 ; <i32> [#uses=1]
- %tmp4 = add i8 %x.0, -4 ; <i8> [#uses=1]
- br label %bb5
-
-bb5: ; preds = %bb, %entry
- %x.0 = phi i8 [ 0, %entry ], [ %tmp4, %bb ] ; <i8> [#uses=2]
- %i.0 = phi i32 [ 0, %entry ], [ %tmp2, %bb ] ; <i32> [#uses=2]
- %tmp7 = icmp eq i8 %x.0, 12 ; <i1> [#uses=1]
- br i1 %tmp7, label %return, label %bb
-
-return: ; preds = %bb5
- ret i32 %i.0
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-06-12-BinomialInt64.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-06-12-BinomialInt64.ll
deleted file mode 100644
index d503329..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-06-12-BinomialInt64.ll
+++ /dev/null
@@ -1,43 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution 2>/dev/null
-; PR2433
-
-define i32 @main1(i32 %argc, i8** %argv) nounwind {
-entry:
- br i1 false, label %bb10, label %bb23
-
-bb10: ; preds = %bb10, %entry
- %accum.03 = phi i64 [ %tmp14, %bb10 ], [ 0, %entry ] ; <i64> [#uses=1]
- %i.02 = phi i32 [ %tmp16, %bb10 ], [ 0, %entry ] ; <i32> [#uses=1]
- %d.1.01 = phi i64 [ %tmp5.i, %bb10 ], [ 0, %entry ] ; <i64> [#uses=1]
- %tmp5.i = add i64 %d.1.01, 1 ; <i64> [#uses=2]
- %tmp14 = add i64 %accum.03, %tmp5.i ; <i64> [#uses=2]
- %tmp16 = add i32 %i.02, 1 ; <i32> [#uses=2]
- %tmp20 = icmp slt i32 %tmp16, 0 ; <i1> [#uses=1]
- br i1 %tmp20, label %bb10, label %bb23
-
-bb23: ; preds = %bb10, %entry
- %accum.0.lcssa = phi i64 [ 0, %entry ], [ %tmp14, %bb10 ] ; <i64> [#uses=0]
- ret i32 0
-}
-
-define i32 @main2(i32 %argc, i8** %argv) {
-entry:
- %tmp8 = tail call i32 @atoi( i8* null ) nounwind readonly ; <i32> [#uses=1]
- br i1 false, label %bb9, label %bb21
-
-bb9: ; preds = %bb9, %entry
- %accum.03 = phi i64 [ %tmp12, %bb9 ], [ 0, %entry ] ; <i64> [#uses=1]
- %i.02 = phi i32 [ %tmp14, %bb9 ], [ 0, %entry ] ; <i32> [#uses=1]
- %d.1.01 = phi i64 [ %tmp4.i, %bb9 ], [ 0, %entry ] ; <i64> [#uses=1]
- %tmp4.i = add i64 %d.1.01, 1 ; <i64> [#uses=2]
- %tmp12 = add i64 %accum.03, %tmp4.i ; <i64> [#uses=2]
- %tmp14 = add i32 %i.02, 1 ; <i32> [#uses=2]
- %tmp18 = icmp slt i32 %tmp14, %tmp8 ; <i1> [#uses=1]
- br i1 %tmp18, label %bb9, label %bb21
-
-bb21: ; preds = %bb9, %entry
- %accum.0.lcssa = phi i64 [ 0, %entry ], [ %tmp12, %bb9 ] ; <i64> [#uses=0]
- ret i32 0
-}
-
-declare i32 @atoi(i8*) nounwind readonly
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-07-12-UnneededSelect1.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-07-12-UnneededSelect1.ll
deleted file mode 100644
index 9db9b71..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-07-12-UnneededSelect1.ll
+++ /dev/null
@@ -1,36 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution |& not grep smax
-; PR2261
-
- at lut = common global [256 x i8] zeroinitializer, align 32 ; <[256 x i8]*> [#uses=1]
-
-define void @foo(i32 %count, i32* %srcptr, i32* %dstptr) nounwind {
-entry:
- icmp sgt i32 %count, 0 ; <i1>:0 [#uses=1]
- br i1 %0, label %bb.nph, label %return
-
-bb.nph: ; preds = %entry
- br label %bb
-
-bb: ; preds = %bb1, %bb.nph
- %j.01 = phi i32 [ %8, %bb1 ], [ 0, %bb.nph ] ; <i32> [#uses=1]
- load i32* %srcptr, align 4 ; <i32>:1 [#uses=2]
- and i32 %1, 255 ; <i32>:2 [#uses=1]
- and i32 %1, -256 ; <i32>:3 [#uses=1]
- getelementptr [256 x i8]* @lut, i32 0, i32 %2 ; <i8*>:4 [#uses=1]
- load i8* %4, align 1 ; <i8>:5 [#uses=1]
- zext i8 %5 to i32 ; <i32>:6 [#uses=1]
- or i32 %6, %3 ; <i32>:7 [#uses=1]
- store i32 %7, i32* %dstptr, align 4
- add i32 %j.01, 1 ; <i32>:8 [#uses=2]
- br label %bb1
-
-bb1: ; preds = %bb
- icmp slt i32 %8, %count ; <i1>:9 [#uses=1]
- br i1 %9, label %bb, label %bb1.return_crit_edge
-
-bb1.return_crit_edge: ; preds = %bb1
- br label %return
-
-return: ; preds = %bb1.return_crit_edge, %entry
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-07-12-UnneededSelect2.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-07-12-UnneededSelect2.ll
deleted file mode 100644
index 1847665..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-07-12-UnneededSelect2.ll
+++ /dev/null
@@ -1,30 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution |& not grep smax
-; PR2070
-
-define i32 @a(i32 %x) nounwind {
-entry:
- icmp sgt i32 %x, 1 ; <i1>:0 [#uses=1]
- br i1 %0, label %bb.nph, label %bb2
-
-bb.nph: ; preds = %entry
- br label %bb
-
-bb: ; preds = %bb1, %bb.nph
- %z.02 = phi i32 [ %1, %bb1 ], [ 1, %bb.nph ] ; <i32> [#uses=1]
- %i.01 = phi i32 [ %2, %bb1 ], [ 1, %bb.nph ] ; <i32> [#uses=2]
- mul i32 %z.02, %i.01 ; <i32>:1 [#uses=2]
- add i32 %i.01, 1 ; <i32>:2 [#uses=2]
- br label %bb1
-
-bb1: ; preds = %bb
- icmp slt i32 %2, %x ; <i1>:3 [#uses=1]
- br i1 %3, label %bb, label %bb1.bb2_crit_edge
-
-bb1.bb2_crit_edge: ; preds = %bb1
- %.lcssa = phi i32 [ %1, %bb1 ] ; <i32> [#uses=1]
- br label %bb2
-
-bb2: ; preds = %bb1.bb2_crit_edge, %entry
- %z.0.lcssa = phi i32 [ %.lcssa, %bb1.bb2_crit_edge ], [ 1, %entry ] ; <i32> [#uses=1]
- ret i32 %z.0.lcssa
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-07-19-InfiniteLoop.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-07-19-InfiniteLoop.ll
deleted file mode 100644
index 1865c05..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-07-19-InfiniteLoop.ll
+++ /dev/null
@@ -1,15 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution \
-; RUN: -scalar-evolution-max-iterations=0 | grep Unpredictable
-; PR2088
-
-define void @fun() {
-entry:
- br label %loop
-loop:
- %i = phi i8 [ 0, %entry ], [ %i.next, %loop ]
- %i.next = add i8 %i, 4
- %cond = icmp ne i8 %i.next, 6
- br i1 %cond, label %loop, label %exit
-exit:
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-07-19-WrappingIV.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-07-19-WrappingIV.ll
deleted file mode 100644
index 86e07ec..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-07-19-WrappingIV.ll
+++ /dev/null
@@ -1,15 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution \
-; RUN: -scalar-evolution-max-iterations=0 | grep {backedge-taken count is 113}
-; PR2088
-
-define void @fun() {
-entry:
- br label %loop
-loop:
- %i = phi i8 [ 0, %entry ], [ %i.next, %loop ]
- %i.next = add i8 %i, 18
- %cond = icmp ne i8 %i.next, 4
- br i1 %cond, label %loop, label %exit
-exit:
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-07-29-SGTTripCount.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-07-29-SGTTripCount.ll
deleted file mode 100644
index 75bd634..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-07-29-SGTTripCount.ll
+++ /dev/null
@@ -1,28 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution \
-; RUN: -scalar-evolution-max-iterations=0 | FileCheck %s
-; PR2607
-
-define i32 @_Z1aj(i32 %j) nounwind {
-entry:
- icmp sgt i32 0, %j ; <i1>:0 [#uses=1]
- br i1 %0, label %bb.preheader, label %return
-
-bb.preheader: ; preds = %entry
- br label %bb
-
-bb: ; preds = %bb, %bb.preheader
- %i.01 = phi i32 [ %1, %bb ], [ 0, %bb.preheader ] ; <i32> [#uses=1]
- add i32 %i.01, -1 ; <i32>:1 [#uses=3]
- icmp sgt i32 %1, %j ; <i1>:2 [#uses=1]
- br i1 %2, label %bb, label %return.loopexit
-
-return.loopexit: ; preds = %bb
- br label %return
-
-return: ; preds = %return.loopexit, %entry
- %i.0.lcssa = phi i32 [ 0, %entry ], [ %1, %return.loopexit ] ; <i32> [#uses=1]
- ret i32 %i.0.lcssa
-}
-
-; CHECK: backedge-taken count is (-1 + (-1 * %j))
-
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-07-29-SMinExpr.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-07-29-SMinExpr.ll
deleted file mode 100644
index 1626c1f..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-07-29-SMinExpr.ll
+++ /dev/null
@@ -1,26 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution \
-; RUN: -scalar-evolution-max-iterations=0 | FileCheck %s
-; PR2607
-
-define i32 @b(i32 %x, i32 %y) nounwind {
-entry:
- %cmp2 = icmp slt i32 %y, %x
- %cond3 = select i1 %cmp2, i32 %y, i32 %x
- %cmp54 = icmp slt i32 %cond3, -2147483632
- br i1 %cmp54, label %forinc, label %afterfor
-
-forinc: ; preds = %forinc, %entry
- %j.01 = phi i32 [ %dec, %forinc ], [ -2147483632, %entry ]
- %dec = add i32 %j.01, -1
- %cmp = icmp slt i32 %y, %x
- %cond = select i1 %cmp, i32 %y, i32 %x
- %cmp5 = icmp sgt i32 %dec, %cond
- br i1 %cmp5, label %forinc, label %afterfor
-
-afterfor: ; preds = %forinc, %entry
- %j.0.lcssa = phi i32 [ -2147483632, %entry ], [ %dec, %forinc ]
- ret i32 %j.0.lcssa
-}
-
-; CHECK: backedge-taken count is (-2147483632 + ((-1 + (-1 * %x)) smax (-1 + (-1 * %y))))
-
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-08-04-IVOverflow.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-08-04-IVOverflow.ll
deleted file mode 100644
index 3b31d79..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-08-04-IVOverflow.ll
+++ /dev/null
@@ -1,27 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution \
-; RUN: -scalar-evolution-max-iterations=0 | FileCheck %s
-; PR2621
-
-define i32 @a() nounwind {
-entry:
- br label %bb1
-
-bb:
- trunc i32 %i.0 to i16
- add i16 %0, %x16.0
- add i32 %i.0, 1
- br label %bb1
-
-bb1:
- %i.0 = phi i32 [ 0, %entry ], [ %2, %bb ]
- %x16.0 = phi i16 [ 0, %entry ], [ %1, %bb ]
- icmp ult i32 %i.0, 888888
- br i1 %3, label %bb, label %bb2
-
-bb2:
- zext i16 %x16.0 to i32
- ret i32 %4
-}
-
-; CHECK: Exits: 20028
-
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-08-04-LongAddRec.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-08-04-LongAddRec.ll
deleted file mode 100644
index b296a19..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-08-04-LongAddRec.ll
+++ /dev/null
@@ -1,58 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution \
-; RUN: -scalar-evolution-max-iterations=0 | FileCheck %s
-; PR2621
-
-define i32 @a() nounwind {
-entry:
- br label %bb1
-
-bb: ; preds = %bb1
- add i16 %x17.0, 1 ; <i16>:0 [#uses=2]
- add i16 %0, %x16.0 ; <i16>:1 [#uses=2]
- add i16 %1, %x15.0 ; <i16>:2 [#uses=2]
- add i16 %2, %x14.0 ; <i16>:3 [#uses=2]
- add i16 %3, %x13.0 ; <i16>:4 [#uses=2]
- add i16 %4, %x12.0 ; <i16>:5 [#uses=2]
- add i16 %5, %x11.0 ; <i16>:6 [#uses=2]
- add i16 %6, %x10.0 ; <i16>:7 [#uses=2]
- add i16 %7, %x9.0 ; <i16>:8 [#uses=2]
- add i16 %8, %x8.0 ; <i16>:9 [#uses=2]
- add i16 %9, %x7.0 ; <i16>:10 [#uses=2]
- add i16 %10, %x6.0 ; <i16>:11 [#uses=2]
- add i16 %11, %x5.0 ; <i16>:12 [#uses=2]
- add i16 %12, %x4.0 ; <i16>:13 [#uses=2]
- add i16 %13, %x3.0 ; <i16>:14 [#uses=2]
- add i16 %14, %x2.0 ; <i16>:15 [#uses=2]
- add i16 %15, %x1.0 ; <i16>:16 [#uses=1]
- add i32 %i.0, 1 ; <i32>:17 [#uses=1]
- br label %bb1
-
-bb1: ; preds = %bb, %entry
- %x2.0 = phi i16 [ 0, %entry ], [ %15, %bb ] ; <i16> [#uses=1]
- %x3.0 = phi i16 [ 0, %entry ], [ %14, %bb ] ; <i16> [#uses=1]
- %x4.0 = phi i16 [ 0, %entry ], [ %13, %bb ] ; <i16> [#uses=1]
- %x5.0 = phi i16 [ 0, %entry ], [ %12, %bb ] ; <i16> [#uses=1]
- %x6.0 = phi i16 [ 0, %entry ], [ %11, %bb ] ; <i16> [#uses=1]
- %x7.0 = phi i16 [ 0, %entry ], [ %10, %bb ] ; <i16> [#uses=1]
- %x8.0 = phi i16 [ 0, %entry ], [ %9, %bb ] ; <i16> [#uses=1]
- %x9.0 = phi i16 [ 0, %entry ], [ %8, %bb ] ; <i16> [#uses=1]
- %x10.0 = phi i16 [ 0, %entry ], [ %7, %bb ] ; <i16> [#uses=1]
- %x11.0 = phi i16 [ 0, %entry ], [ %6, %bb ] ; <i16> [#uses=1]
- %x12.0 = phi i16 [ 0, %entry ], [ %5, %bb ] ; <i16> [#uses=1]
- %x13.0 = phi i16 [ 0, %entry ], [ %4, %bb ] ; <i16> [#uses=1]
- %x14.0 = phi i16 [ 0, %entry ], [ %3, %bb ] ; <i16> [#uses=1]
- %x15.0 = phi i16 [ 0, %entry ], [ %2, %bb ] ; <i16> [#uses=1]
- %x16.0 = phi i16 [ 0, %entry ], [ %1, %bb ] ; <i16> [#uses=1]
- %x17.0 = phi i16 [ 0, %entry ], [ %0, %bb ] ; <i16> [#uses=1]
- %i.0 = phi i32 [ 0, %entry ], [ %17, %bb ] ; <i32> [#uses=2]
- %x1.0 = phi i16 [ 0, %entry ], [ %16, %bb ] ; <i16> [#uses=2]
- icmp ult i32 %i.0, 8888 ; <i1>:18 [#uses=1]
- br i1 %18, label %bb, label %bb2
-
-bb2: ; preds = %bb1
- zext i16 %x1.0 to i32 ; <i32>:19 [#uses=1]
- ret i32 %19
-}
-
-; CHECK: Exits: -19168
-
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-11-02-QuadraticCrash.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-11-02-QuadraticCrash.ll
deleted file mode 100644
index 7722122..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-11-02-QuadraticCrash.ll
+++ /dev/null
@@ -1,21 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution
-; PR1827
-
-declare void @use(i32)
-
-define void @foo() {
-entry:
- br label %loop_1
-
-loop_1: ; preds = %loop_1, %entry
- %a = phi i32 [ 2, %entry ], [ %b, %loop_1 ] ; <i32> [#uses=2]
- %c = phi i32 [ 5, %entry ], [ %d, %loop_1 ] ; <i32> [#uses=1]
- %b = add i32 %a, 1 ; <i32> [#uses=1]
- %d = add i32 %c, %a ; <i32> [#uses=3]
- %A = icmp ult i32 %d, 50 ; <i1> [#uses=1]
- br i1 %A, label %loop_1, label %endloop
-
-endloop: ; preds = %loop_1
- call void @use(i32 %d)
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-11-15-CubicOOM.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-11-15-CubicOOM.ll
deleted file mode 100644
index 2e2aabc..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-11-15-CubicOOM.ll
+++ /dev/null
@@ -1,19 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution
-; PR2602
-
-define i32 @a() nounwind {
-entry:
- br label %bb
-
-bb: ; preds = %bb, %entry
- %w.0 = phi i32 [ 0, %entry ], [ %tmp, %bb ] ; <i32> [#uses=2]
- %e.0 = phi i32 [ 0, %entry ], [ %e.1, %bb ] ; <i32> [#uses=2]
- %w.1 = add i32 0, %w.0 ; <i32>:0 [#uses=1]
- %tmp = add i32 %e.0, %w.0 ; <i32>:1 [#uses=1]
- %e.1 = add i32 %e.0, 1 ; <i32>:2 [#uses=1]
- %cond = icmp eq i32 %w.1, -1 ; <i1>:3 [#uses=1]
- br i1 %cond, label %return, label %bb
-
-return: ; preds = %bb
- ret i32 undef
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-11-18-LessThanOrEqual.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-11-18-LessThanOrEqual.ll
deleted file mode 100644
index 06637b5..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-11-18-LessThanOrEqual.ll
+++ /dev/null
@@ -1,32 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution |& \
-; RUN: grep {Loop %bb: backedge-taken count is (7 + (-1 \\* %argc))}
-; XFAIL: *
-
-define i32 @main(i32 %argc, i8** %argv) nounwind {
-entry:
- %0 = icmp ugt i32 %argc, 7 ; <i1> [#uses=1]
- br i1 %0, label %bb2, label %bb.nph
-
-bb.nph: ; preds = %entry
- br label %bb
-
-bb: ; preds = %bb.nph, %bb1
- %indvar = phi i32 [ 0, %bb.nph ], [ %indvar.next, %bb1 ] ; <i32> [#uses=2]
- %argc_addr.04 = add i32 %indvar, %argc ; <i32> [#uses=1]
- tail call void (...)* @Test() nounwind
- %1 = add i32 %argc_addr.04, 1 ; <i32> [#uses=1]
- br label %bb1
-
-bb1: ; preds = %bb
- %phitmp = icmp ugt i32 %1, 7 ; <i1> [#uses=1]
- %indvar.next = add i32 %indvar, 1 ; <i32> [#uses=1]
- br i1 %phitmp, label %bb1.bb2_crit_edge, label %bb
-
-bb1.bb2_crit_edge: ; preds = %bb1
- br label %bb2
-
-bb2: ; preds = %bb1.bb2_crit_edge, %entry
- ret i32 0
-}
-
-declare void @Test(...)
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-11-18-Stride1.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-11-18-Stride1.ll
deleted file mode 100644
index db527fe..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-11-18-Stride1.ll
+++ /dev/null
@@ -1,35 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution \
-; RUN: | grep {Loop %bb: Unpredictable backedge-taken count\\.}
-
-; ScalarEvolution can't compute a trip count because it doesn't know if
-; dividing by the stride will have a remainder. This could theoretically
-; be teaching it how to use a more elaborate trip count computation.
-
-define i32 @f(i32 %x) nounwind readnone {
-entry:
- %0 = icmp ugt i32 %x, 4 ; <i1> [#uses=1]
- br i1 %0, label %bb.nph, label %bb2
-
-bb.nph: ; preds = %entry
- br label %bb
-
-bb: ; preds = %bb.nph, %bb1
- %indvar = phi i32 [ 0, %bb.nph ], [ %indvar.next, %bb1 ] ; <i32> [#uses=2]
- %tmp = mul i32 %indvar, -3 ; <i32> [#uses=1]
- %x_addr.04 = add i32 %tmp, %x ; <i32> [#uses=1]
- %1 = add i32 %x_addr.04, -3 ; <i32> [#uses=2]
- br label %bb1
-
-bb1: ; preds = %bb
- %2 = icmp ugt i32 %1, 4 ; <i1> [#uses=1]
- %indvar.next = add i32 %indvar, 1 ; <i32> [#uses=1]
- br i1 %2, label %bb, label %bb1.bb2_crit_edge
-
-bb1.bb2_crit_edge: ; preds = %bb1
- %.lcssa = phi i32 [ %1, %bb1 ] ; <i32> [#uses=1]
- br label %bb2
-
-bb2: ; preds = %bb1.bb2_crit_edge, %entry
- %x_addr.0.lcssa = phi i32 [ %.lcssa, %bb1.bb2_crit_edge ], [ %x, %entry ] ; <i32> [#uses=1]
- ret i32 %x_addr.0.lcssa
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-11-18-Stride2.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-11-18-Stride2.ll
deleted file mode 100644
index 102acc6..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-11-18-Stride2.ll
+++ /dev/null
@@ -1,31 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution |& grep {/u 3}
-; XFAIL: *
-
-define i32 @f(i32 %x) nounwind readnone {
-entry:
- %0 = icmp ugt i32 %x, 999 ; <i1> [#uses=1]
- br i1 %0, label %bb2, label %bb.nph
-
-bb.nph: ; preds = %entry
- br label %bb
-
-bb: ; preds = %bb.nph, %bb1
- %indvar = phi i32 [ 0, %bb.nph ], [ %indvar.next, %bb1 ] ; <i32> [#uses=2]
- %tmp = mul i32 %indvar, 3 ; <i32> [#uses=1]
- %x_addr.04 = add i32 %tmp, %x ; <i32> [#uses=1]
- %1 = add i32 %x_addr.04, 3 ; <i32> [#uses=2]
- br label %bb1
-
-bb1: ; preds = %bb
- %2 = icmp ugt i32 %1, 999 ; <i1> [#uses=1]
- %indvar.next = add i32 %indvar, 1 ; <i32> [#uses=1]
- br i1 %2, label %bb1.bb2_crit_edge, label %bb
-
-bb1.bb2_crit_edge: ; preds = %bb1
- %.lcssa = phi i32 [ %1, %bb1 ] ; <i32> [#uses=1]
- br label %bb2
-
-bb2: ; preds = %bb1.bb2_crit_edge, %entry
- %x_addr.0.lcssa = phi i32 [ %.lcssa, %bb1.bb2_crit_edge ], [ %x, %entry ] ; <i32> [#uses=1]
- ret i32 %x_addr.0.lcssa
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-12-08-FiniteSGE.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-12-08-FiniteSGE.ll
deleted file mode 100644
index 226221b..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-12-08-FiniteSGE.ll
+++ /dev/null
@@ -1,25 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution | grep {backedge-taken count is 255}
-; XFAIL: *
-
-define i32 @foo(i32 %x, i32 %y, i32* %lam, i32* %alp) nounwind {
-bb1.thread:
- br label %bb1
-
-bb1: ; preds = %bb1, %bb1.thread
- %indvar = phi i32 [ 0, %bb1.thread ], [ %indvar.next, %bb1 ] ; <i32> [#uses=4]
- %i.0.reg2mem.0 = sub i32 255, %indvar ; <i32> [#uses=2]
- %0 = getelementptr i32* %alp, i32 %i.0.reg2mem.0 ; <i32*> [#uses=1]
- %1 = load i32* %0, align 4 ; <i32> [#uses=1]
- %2 = getelementptr i32* %lam, i32 %i.0.reg2mem.0 ; <i32*> [#uses=1]
- store i32 %1, i32* %2, align 4
- %3 = sub i32 254, %indvar ; <i32> [#uses=1]
- %4 = icmp slt i32 %3, 0 ; <i1> [#uses=1]
- %indvar.next = add i32 %indvar, 1 ; <i32> [#uses=1]
- br i1 %4, label %bb2, label %bb1
-
-bb2: ; preds = %bb1
- %tmp10 = mul i32 %indvar, %x ; <i32> [#uses=1]
- %z.0.reg2mem.0 = add i32 %tmp10, %y ; <i32> [#uses=1]
- %5 = add i32 %z.0.reg2mem.0, %x ; <i32> [#uses=1]
- ret i32 %5
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-12-11-SMaxOverflow.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-12-11-SMaxOverflow.ll
deleted file mode 100644
index 33a7479..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-12-11-SMaxOverflow.ll
+++ /dev/null
@@ -1,28 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution | grep {0 smax}
-; XFAIL: *
-
-define i32 @f(i32 %c.idx.val) {
-
-bb2:
- %k.018 = add i32 %c.idx.val, -1 ; <i32> [#uses=2]
- %a14 = icmp slt i32 %k.018, 0 ; <i1> [#uses=1]
- br i1 %a14, label %bb19, label %bb16.preheader
-
-bb16.preheader:
- %k.019 = phi i32 [ %k.0, %bb18 ], [ %k.018, %bb2 ] ; <i32> [#uses=5]
- %x = phi i32 [ 0, %bb2 ], [ %x.1, %bb18]
- br label %bb18
-
-bb18: ; preds = %bb18.loopexit
- %x.1 = add i32 %x, 1
- %k.0 = add i32 %k.019, -1 ; <i32> [#uses=2]
- %a107 = icmp slt i32 %k.0, 0 ; <i1> [#uses=1]
- br i1 %a107, label %bb18.bb19_crit_edge, label %bb16.preheader
-
-bb18.bb19_crit_edge:
- ret i32 %x
-
-bb19:
- ret i32 0
-
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-12-14-StrideAndSigned.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-12-14-StrideAndSigned.ll
deleted file mode 100644
index 8152e98..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-12-14-StrideAndSigned.ll
+++ /dev/null
@@ -1,22 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution |& \
-; RUN: grep {(((-1 \\* %i0) + (100005 smax %i0)) /u 5)}
-; XFAIL: *
-
-define i32 @foo0(i32 %i0) nounwind {
-entry:
- br label %bb1
-
-bb: ; preds = %bb1
- %0 = add i32 %j.0, 1 ; <i32> [#uses=1]
- %1 = add i32 %i.0, 5 ; <i32> [#uses=1]
- br label %bb1
-
-bb1: ; preds = %bb, %entry
- %j.0 = phi i32 [ 0, %entry ], [ %0, %bb ] ; <i32> [#uses=2]
- %i.0 = phi i32 [ %i0, %entry ], [ %1, %bb ] ; <i32> [#uses=2]
- %2 = icmp sgt i32 %i.0, 100000 ; <i1> [#uses=1]
- br i1 %2, label %return, label %bb
-
-return: ; preds = %bb1
- ret i32 %j.0
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-12-15-DontUseSDiv.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-12-15-DontUseSDiv.ll
deleted file mode 100644
index 3eaa492..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2008-12-15-DontUseSDiv.ll
+++ /dev/null
@@ -1,21 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution |& grep {/u 5}
-; XFAIL: *
-
-define i8 @foo0(i8 %i0) nounwind {
-entry:
- br label %bb1
-
-bb: ; preds = %bb1
- %0 = add i8 %j.0, 1 ; <i8> [#uses=1]
- %1 = add i8 %i.0, 5 ; <i8> [#uses=1]
- br label %bb1
-
-bb1: ; preds = %bb, %entry
- %j.0 = phi i8 [ 0, %entry ], [ %0, %bb ] ; <i8> [#uses=2]
- %i.0 = phi i8 [ %i0, %entry ], [ %1, %bb ] ; <i8> [#uses=2]
- %2 = icmp sgt i8 %i.0, 100 ; <i1> [#uses=1]
- br i1 %2, label %return, label %bb
-
-return: ; preds = %bb1
- ret i8 %j.0
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2009-01-02-SignedNegativeStride.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2009-01-02-SignedNegativeStride.ll
deleted file mode 100644
index cc2a2e4..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2009-01-02-SignedNegativeStride.ll
+++ /dev/null
@@ -1,40 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution | not grep {/u -1}
-; PR3275
-
- at g_16 = external global i16 ; <i16*> [#uses=3]
- at .str = external constant [4 x i8] ; <[4 x i8]*> [#uses=0]
-
-define void @func_15() nounwind {
-entry:
- %0 = load i16* @g_16, align 2 ; <i16> [#uses=1]
- %1 = icmp sgt i16 %0, 0 ; <i1> [#uses=1]
- br i1 %1, label %bb2, label %bb.nph
-
-bb.nph: ; preds = %entry
- %g_16.promoted = load i16* @g_16 ; <i16> [#uses=1]
- br label %bb
-
-bb: ; preds = %bb1, %bb.nph
- %g_16.tmp.0 = phi i16 [ %g_16.promoted, %bb.nph ], [ %2, %bb1 ] ; <i16> [#uses=1]
- %2 = add i16 %g_16.tmp.0, -1 ; <i16> [#uses=3]
- br label %bb1
-
-bb1: ; preds = %bb
- %3 = icmp sgt i16 %2, 0 ; <i1> [#uses=1]
- br i1 %3, label %bb1.bb2_crit_edge, label %bb
-
-bb1.bb2_crit_edge: ; preds = %bb1
- store i16 %2, i16* @g_16
- br label %bb2
-
-bb2: ; preds = %bb1.bb2_crit_edge, %entry
- br label %return
-
-return: ; preds = %bb2
- ret void
-}
-
-declare i32 @main() nounwind
-
-declare i32 @printf(i8*, ...) nounwind
-
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2009-04-22-TruncCast.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2009-04-22-TruncCast.ll
deleted file mode 100644
index c2e108a..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2009-04-22-TruncCast.ll
+++ /dev/null
@@ -1,37 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution | grep {(trunc i} | not grep ext
-
-define i16 @test1(i8 %x) {
- %A = sext i8 %x to i32
- %B = trunc i32 %A to i16
- ret i16 %B
-}
-
-define i8 @test2(i16 %x) {
- %A = sext i16 %x to i32
- %B = trunc i32 %A to i8
- ret i8 %B
-}
-
-define i16 @test3(i16 %x) {
- %A = sext i16 %x to i32
- %B = trunc i32 %A to i16
- ret i16 %B
-}
-
-define i16 @test4(i8 %x) {
- %A = zext i8 %x to i32
- %B = trunc i32 %A to i16
- ret i16 %B
-}
-
-define i8 @test5(i16 %x) {
- %A = zext i16 %x to i32
- %B = trunc i32 %A to i8
- ret i8 %B
-}
-
-define i16 @test6(i16 %x) {
- %A = zext i16 %x to i32
- %B = trunc i32 %A to i16
- ret i16 %B
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2009-05-09-PointerEdgeCount.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2009-05-09-PointerEdgeCount.ll
deleted file mode 100644
index dc7bd29..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2009-05-09-PointerEdgeCount.ll
+++ /dev/null
@@ -1,28 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution | grep {count is 2}
-; PR3171
-target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
-
- %struct.Foo = type { i32 }
- %struct.NonPod = type { [2 x %struct.Foo] }
-
-define void @_Z3foov() nounwind {
-entry:
- %x = alloca %struct.NonPod, align 8 ; <%struct.NonPod*> [#uses=2]
- %0 = getelementptr %struct.NonPod* %x, i32 0, i32 0 ; <[2 x %struct.Foo]*> [#uses=1]
- %1 = getelementptr [2 x %struct.Foo]* %0, i32 1, i32 0 ; <%struct.Foo*> [#uses=1]
- br label %bb1.i
-
-bb1.i: ; preds = %bb2.i, %entry
- %.0.i = phi %struct.Foo* [ %1, %entry ], [ %4, %bb2.i ] ; <%struct.Foo*> [#uses=2]
- %2 = getelementptr %struct.NonPod* %x, i32 0, i32 0, i32 0 ; <%struct.Foo*> [#uses=1]
- %3 = icmp eq %struct.Foo* %.0.i, %2 ; <i1> [#uses=1]
- br i1 %3, label %_ZN6NonPodD1Ev.exit, label %bb2.i
-
-bb2.i: ; preds = %bb1.i
- %4 = getelementptr %struct.Foo* %.0.i, i32 -1 ; <%struct.Foo*> [#uses=1]
- br label %bb1.i
-
-_ZN6NonPodD1Ev.exit: ; preds = %bb1.i
- ret void
-}
-
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2009-07-04-GroupConstantsWidthMismatch.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2009-07-04-GroupConstantsWidthMismatch.ll
deleted file mode 100644
index a4358aa..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/2009-07-04-GroupConstantsWidthMismatch.ll
+++ /dev/null
@@ -1,16 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution
-; PR4501
-
-define void @test() {
-entry:
- %0 = load i16* undef, align 1
- %1 = lshr i16 %0, 8
- %2 = and i16 %1, 3
- %3 = zext i16 %2 to i32
- %4 = load i8* undef, align 1
- %5 = lshr i8 %4, 4
- %6 = and i8 %5, 1
- %7 = zext i8 %6 to i32
- %t1 = add i32 %3, %7
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/SolveQuadraticEquation.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/SolveQuadraticEquation.ll
deleted file mode 100644
index 9573aed..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/SolveQuadraticEquation.ll
+++ /dev/null
@@ -1,32 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution \
-; RUN: -scalar-evolution-max-iterations=0 | grep {backedge-taken count is 100}
-; PR1101
-
- at A = weak global [1000 x i32] zeroinitializer, align 32
-
-
-define void @test(i32 %N) {
-entry:
- "alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
- br label %bb3
-
-bb: ; preds = %bb3
- %tmp = getelementptr [1000 x i32]* @A, i32 0, i32 %i.0 ; <i32*> [#uses=1]
- store i32 123, i32* %tmp
- %tmp2 = add i32 %i.0, 1 ; <i32> [#uses=1]
- br label %bb3
-
-bb3: ; preds = %bb, %entry
- %i.0 = phi i32 [ 2, %entry ], [ %tmp2, %bb ] ; <i32> [#uses=3]
- %SQ = mul i32 %i.0, %i.0
- %tmp4 = mul i32 %i.0, 2
- %tmp5 = sub i32 %SQ, %tmp4
- %tmp3 = icmp sle i32 %tmp5, 9999 ; <i1> [#uses=1]
- br i1 %tmp3, label %bb, label %bb5
-
-bb5: ; preds = %bb3
- br label %return
-
-return: ; preds = %bb5
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/and-xor.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/and-xor.ll
deleted file mode 100644
index 1772573..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/and-xor.ll
+++ /dev/null
@@ -1,8 +0,0 @@
-; RUN: opt < %s -scalar-evolution -analyze \
-; RUN: | grep {\\--> (zext} | count 2
-
-define i32 @foo(i32 %x) {
- %n = and i32 %x, 255
- %y = xor i32 %n, 255
- ret i32 %y
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/avoid-infinite-recursion-0.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/avoid-infinite-recursion-0.ll
deleted file mode 100644
index 7eeb308..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/avoid-infinite-recursion-0.ll
+++ /dev/null
@@ -1,30 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution
-; PR4537
-
-; ModuleID = 'b.bc'
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
-target triple = "x86_64-unknown-linux-gnu"
-
-define i32 @test() {
-entry:
- %0 = load i32** undef, align 8 ; <i32*> [#uses=1]
- %1 = ptrtoint i32* %0 to i64 ; <i64> [#uses=1]
- %2 = sub i64 undef, %1 ; <i64> [#uses=1]
- %3 = lshr i64 %2, 3 ; <i64> [#uses=1]
- %4 = trunc i64 %3 to i32 ; <i32> [#uses=2]
- br i1 undef, label %bb10, label %bb4.i
-
-bb4.i: ; preds = %bb4.i, %entry
- %i.0.i6 = phi i32 [ %8, %bb4.i ], [ 0, %entry ] ; <i32> [#uses=2]
- %5 = sub i32 %4, %i.0.i6 ; <i32> [#uses=1]
- %6 = sext i32 %5 to i64 ; <i64> [#uses=1]
- %7 = udiv i64 undef, %6 ; <i64> [#uses=1]
- %8 = add i32 %i.0.i6, 1 ; <i32> [#uses=2]
- %phitmp = icmp eq i64 %7, 0 ; <i1> [#uses=1]
- %.not.i = icmp sge i32 %8, %4 ; <i1> [#uses=1]
- %or.cond.i = or i1 %phitmp, %.not.i ; <i1> [#uses=1]
- br i1 %or.cond.i, label %bb10, label %bb4.i
-
-bb10: ; preds = %bb4.i, %entry
- unreachable
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/avoid-infinite-recursion-1.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/avoid-infinite-recursion-1.ll
deleted file mode 100644
index 31b95e1..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/avoid-infinite-recursion-1.ll
+++ /dev/null
@@ -1,354 +0,0 @@
-; RUN: opt < %s -iv-users
-; PR4538
-
-; ModuleID = 'bugpoint-reduced-simplified.bc'
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
-target triple = "x86_64-unknown-freebsd8.0"
-module asm ".ident\09\22$FreeBSD: head/sys/kern/vfs_subr.c 195285 2009-07-02 14:19:33Z jamie $\22"
-module asm ".section set_pcpu, \22aw\22, @progbits"
-module asm ".previous"
- type <{ [40 x i8] }> ; type %0
- type <{ %struct.vm_object*, %struct.vm_object** }> ; type %1
- type <{ %struct.vm_object* }> ; type %2
- type <{ %struct.vm_page*, %struct.vm_page** }> ; type %3
- type <{ %struct.pv_entry*, %struct.pv_entry** }> ; type %4
- type <{ %struct.vm_reserv* }> ; type %5
- type <{ %struct.bufobj*, %struct.bufobj** }> ; type %6
- type <{ %struct.proc*, %struct.proc** }> ; type %7
- type <{ %struct.thread*, %struct.thread** }> ; type %8
- type <{ %struct.prison*, %struct.prison** }> ; type %9
- type <{ %struct.prison* }> ; type %10
- type <{ %struct.task* }> ; type %11
- type <{ %struct.osd*, %struct.osd** }> ; type %12
- type <{ %struct.proc* }> ; type %13
- type <{ %struct.ksiginfo*, %struct.ksiginfo** }> ; type %14
- type <{ %struct.pv_chunk*, %struct.pv_chunk** }> ; type %15
- type <{ %struct.pgrp*, %struct.pgrp** }> ; type %16
- type <{ %struct.knote*, %struct.knote** }> ; type %17
- type <{ %struct.ktr_request*, %struct.ktr_request** }> ; type %18
- type <{ %struct.mqueue_notifier* }> ; type %19
- type <{ %struct.turnstile* }> ; type %20
- type <{ %struct.namecache* }> ; type %21
- type <{ %struct.namecache*, %struct.namecache** }> ; type %22
- type <{ %struct.lockf*, %struct.lockf** }> ; type %23
- type <{ %struct.lockf_entry*, %struct.lockf_entry** }> ; type %24
- type <{ %struct.lockf_edge*, %struct.lockf_edge** }> ; type %25
- %struct.__siginfo = type <{ i32, i32, i32, i32, i32, i32, i8*, %union.sigval, %0 }>
- %struct.__sigset = type <{ [4 x i32] }>
- %struct.acl = type <{ i32, i32, [4 x i32], [254 x %struct.acl_entry] }>
- %struct.acl_entry = type <{ i32, i32, i32, i16, i16 }>
- %struct.au_mask = type <{ i32, i32 }>
- %struct.au_tid_addr = type <{ i32, i32, [4 x i32] }>
- %struct.auditinfo_addr = type <{ i32, %struct.au_mask, %struct.au_tid_addr, i32, i64 }>
- %struct.bintime = type <{ i64, i64 }>
- %struct.buf = type <{ %struct.bufobj*, i64, i8*, i8*, i32, i8, i8, i8, i8, i64, i64, void (%struct.buf*)*, i64, i64, %struct.buflists, %struct.buf*, %struct.buf*, i32, i8, i8, i8, i8, %struct.buflists, i16, i8, i8, i32, i8, i8, i8, i8, i8, i8, i8, i8, %struct.lock, i64, i64, i8*, i32, i8, i8, i8, i8, i64, %struct.vnode*, i32, i32, %struct.ucred*, %struct.ucred*, i8*, %union.pager_info, i8, i8, i8, i8, %union.anon, [32 x %struct.vm_page*], i32, i8, i8, i8, i8, %struct.workhead, i8*, i8*, i8*, i32, i8, i8, i8, i8 }>
- %struct.buf_ops = type <{ i8*, i32 (%struct.buf*)*, void (%struct.bufobj*, %struct.buf*)*, i32 (%struct.bufobj*, i32)*, void (%struct.bufobj*, %struct.buf*)* }>
- %struct.buflists = type <{ %struct.buf*, %struct.buf** }>
- %struct.bufobj = type <{ %struct.mtx, %struct.bufv, %struct.bufv, i64, i32, i8, i8, i8, i8, %struct.buf_ops*, i32, i8, i8, i8, i8, %struct.vm_object*, %6, i8*, %struct.vnode* }>
- %struct.bufv = type <{ %struct.buflists, %struct.buf*, i32, i8, i8, i8, i8 }>
- %struct.callout = type <{ %union.anon, i32, i8, i8, i8, i8, i8*, void (i8*)*, %struct.lock_object*, i32, i32 }>
- %struct.cdev_privdata = type opaque
- %struct.cluster_save = type <{ i64, i64, i8*, i32, i8, i8, i8, i8, %struct.buf** }>
- %struct.componentname = type <{ i64, i64, %struct.thread*, %struct.ucred*, i32, i8, i8, i8, i8, i8*, i8*, i64, i64 }>
- %struct.cpuset = type opaque
- %struct.cv = type <{ i8*, i32, i8, i8, i8, i8 }>
- %struct.fid = type <{ i16, i16, [16 x i8] }>
- %struct.file = type <{ i8*, %struct.fileops*, %struct.ucred*, %struct.vnode*, i16, i16, i32, i32, i32, i64, %struct.cdev_privdata*, i64, i8* }>
- %struct.filedesc = type opaque
- %struct.filedesc_to_leader = type opaque
- %struct.fileops = type <{ i32 (%struct.file*, %struct.uio*, %struct.ucred*, i32, %struct.thread*)*, i32 (%struct.file*, %struct.uio*, %struct.ucred*, i32, %struct.thread*)*, i32 (%struct.file*, i64, %struct.ucred*, %struct.thread*)*, i32 (%struct.file*, i64, i8*, %struct.ucred*, %struct.thread*)*, i32 (%struct.file*, i32, %struct.ucred*, %struct.thread*)*, i32 (%struct.file*, %struct.knote*)*, i32 (%struct.file*, %struct.stat*, %struct.ucred*, %struct.thread*)*, i32 (%struct.file*, %struct.thread*)*, i32, i8, i8, i8, i8 }>
- %struct.filterops = type <{ i32, i8, i8, i8, i8, i32 (%struct.knote*)*, void (%struct.knote*)*, i32 (%struct.knote*, i64)* }>
- %struct.flock = type <{ i64, i64, i32, i16, i16, i32, i8, i8, i8, i8 }>
- %struct.freelst = type <{ %struct.vnode*, %struct.vnode** }>
- %struct.fsid = type <{ [2 x i32] }>
- %struct.in6_addr = type opaque
- %struct.in_addr = type opaque
- %struct.inode = type opaque
- %struct.iovec = type <{ i8*, i64 }>
- %struct.itimers = type opaque
- %struct.itimerval = type <{ %struct.bintime, %struct.bintime }>
- %struct.kaioinfo = type opaque
- %struct.kaudit_record = type opaque
- %struct.kdtrace_proc = type opaque
- %struct.kdtrace_thread = type opaque
- %struct.kevent = type <{ i64, i16, i16, i32, i64, i8* }>
- %struct.klist = type <{ %struct.knote* }>
- %struct.knlist = type <{ %struct.klist, void (i8*)*, void (i8*)*, void (i8*)*, void (i8*)*, i8* }>
- %struct.knote = type <{ %struct.klist, %struct.klist, %struct.knlist*, %17, %struct.kqueue*, %struct.kevent, i32, i32, i64, %union.sigval, %struct.filterops*, i8* }>
- %struct.kqueue = type opaque
- %struct.ksiginfo = type <{ %14, %struct.__siginfo, i32, i8, i8, i8, i8, %struct.sigqueue* }>
- %struct.ktr_request = type opaque
- %struct.label = type opaque
- %struct.lock = type <{ %struct.lock_object, i64, i32, i32 }>
- %struct.lock_list_entry = type opaque
- %struct.lock_object = type <{ i8*, i32, i32, %struct.witness* }>
- %struct.lock_owner = type opaque
- %struct.lock_profile_object = type opaque
- %struct.lockf = type <{ %23, %struct.mtx, %struct.lockf_entry_list, %struct.lockf_entry_list, i32, i8, i8, i8, i8 }>
- %struct.lockf_edge = type <{ %25, %25, %struct.lockf_entry*, %struct.lockf_entry* }>
- %struct.lockf_edge_list = type <{ %struct.lockf_edge* }>
- %struct.lockf_entry = type <{ i16, i16, i8, i8, i8, i8, i64, i64, %struct.lock_owner*, %struct.vnode*, %struct.inode*, %struct.task*, %24, %struct.lockf_edge_list, %struct.lockf_edge_list, i32, i8, i8, i8, i8 }>
- %struct.lockf_entry_list = type <{ %struct.lockf_entry* }>
- %struct.lpohead = type <{ %struct.lock_profile_object* }>
- %struct.md_page = type <{ %4 }>
- %struct.mdproc = type <{ %struct.cv*, %struct.system_segment_descriptor }>
- %struct.mdthread = type <{ i32, i8, i8, i8, i8, i64 }>
- %struct.mntarg = type opaque
- %struct.mntlist = type <{ %struct.mount*, %struct.mount** }>
- %struct.mount = type <{ %struct.mtx, i32, i8, i8, i8, i8, %struct.mntlist, %struct.vfsops*, %struct.vfsconf*, %struct.vnode*, %struct.vnode*, i32, i8, i8, i8, i8, %struct.freelst, i32, i32, i32, i32, i32, i32, %struct.vfsoptlist*, %struct.vfsoptlist*, i32, i8, i8, i8, i8, %struct.statfs, %struct.ucred*, i8*, i64, i32, i8, i8, i8, i8, %struct.netexport*, %struct.label*, i32, i32, i32, i32, %struct.thread*, i8*, %struct.lock }>
- %struct.mqueue_notifier = type opaque
- %struct.mtx = type <{ %struct.lock_object, i64 }>
- %struct.namecache = type opaque
- %struct.netexport = type opaque
- %struct.nlminfo = type opaque
- %struct.osd = type <{ i32, i8, i8, i8, i8, i8**, %12 }>
- %struct.p_sched = type opaque
- %struct.pargs = type <{ i32, i32, [1 x i8], i8, i8, i8 }>
- %struct.pcb = type opaque
- %struct.pgrp = type <{ %16, %13, %struct.session*, %struct.sigiolst, i32, i32, %struct.mtx }>
- %struct.plimit = type opaque
- %struct.pmap = type <{ %struct.mtx, i64*, %15, i32, i8, i8, i8, i8, %struct.bintime, %struct.vm_page* }>
- %struct.prison = type <{ %9, i32, i32, i32, i32, %10, %9, %struct.prison*, %struct.mtx, %struct.task, %struct.osd, %struct.cpuset*, %struct.vnet*, %struct.vnode*, i32, i32, %struct.in_addr*, %struct.in6_addr*, [4 x i8*], i32, i32, i32, i32, i32, [5 x i32], i64, [256 x i8], [1024 x i8], [256 x i8], [256 x i8], [64 x i8] }>
- %struct.proc = type <{ %7, %8, %struct.mtx, %struct.ucred*, %struct.filedesc*, %struct.filedesc_to_leader*, %struct.pstats*, %struct.plimit*, %struct.callout, %struct.sigacts*, i32, i32, i32, i8, i8, i8, i8, %7, %7, %struct.proc*, %7, %13, %struct.mtx, %struct.ksiginfo*, %struct.sigqueue, i32, i8, i8, i8, i8, %struct.vmspace*, i32, i8, i8, i8, i8, %struct.itimerval, %struct.rusage, %struct.rusage_ext, %struct.rusage_ext, i32, i32, i32, i8, i8, i8, i8, %struct.vnode*, %struct.ucred*, %struct.vnode*, i32, i8, i8, i8, i8, %struct.sigiolst, i32, i32, i64, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, %struct.nlminfo*, %struct.kaioinfo*, %struct.thread*, i32, i8, i8, i8, i8, %struct.thread*, i32, i32, %struct.itimers*, i32, i32, [20 x i8], i8, i8, i8, i8, %struct.pgrp*, %struct.sysentvec*, %struct.pargs*, i64, i8, i8, i8, i8, i32, i16, i8, i8, i8, i8, i8, i8, %struct.knlist, i32, i8, i8, i8, i8, %struct.mdproc, %struct.callout, i16, i8, i8, i8, i8, i8, i8, %struct.proc*, %struct.proc*, i8*, %struct.label*, %struct.p_sched*, %18, %19, %struct.kdtrace_proc*, %struct.cv }>
- %struct.pstats = type opaque
- %struct.pv_chunk = type <{ %struct.pmap*, %15, [3 x i64], [2 x i64], [168 x %struct.pv_entry] }>
- %struct.pv_entry = type <{ i64, %4 }>
- %struct.rusage = type <{ %struct.bintime, %struct.bintime, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }>
- %struct.rusage_ext = type <{ i64, i64, i64, i64, i64, i64, i64 }>
- %struct.selfd = type opaque
- %struct.selfdlist = type <{ %struct.selfd*, %struct.selfd** }>
- %struct.selinfo = type <{ %struct.selfdlist, %struct.knlist, %struct.mtx* }>
- %struct.seltd = type opaque
- %struct.session = type <{ i32, i8, i8, i8, i8, %struct.proc*, %struct.vnode*, %struct.tty*, i32, [24 x i8], i8, i8, i8, i8, %struct.mtx }>
- %struct.shmmap_state = type opaque
- %struct.sigacts = type <{ [128 x void (i32)*], [128 x %struct.__sigset], %struct.__sigset, %struct.__sigset, %struct.__sigset, %struct.__sigset, %struct.__sigset, %struct.__sigset, %struct.__sigset, %struct.__sigset, %struct.__sigset, %struct.__sigset, i32, i32, %struct.mtx }>
- %struct.sigaltstack = type <{ i8*, i64, i32, i8, i8, i8, i8 }>
- %struct.sigio = type <{ %union.sigval, %struct.sigiolst, %struct.sigio**, %struct.ucred*, i32, i8, i8, i8, i8 }>
- %struct.sigiolst = type <{ %struct.sigio* }>
- %struct.sigqueue = type <{ %struct.__sigset, %struct.__sigset, %14, %struct.proc*, i32, i8, i8, i8, i8 }>
- %struct.sleepqueue = type opaque
- %struct.sockaddr = type opaque
- %struct.stat = type <{ i32, i32, i16, i16, i32, i32, i32, %struct.bintime, %struct.bintime, %struct.bintime, i64, i64, i32, i32, i32, i32, %struct.bintime }>
- %struct.statfs = type <{ i32, i32, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, [10 x i64], i32, i32, %struct.fsid, [80 x i8], [16 x i8], [88 x i8], [88 x i8] }>
- %struct.sysctl_req = type <{ %struct.thread*, i32, i8, i8, i8, i8, i8*, i64, i64, i32 (%struct.sysctl_req*, i8*, i64)*, i8*, i64, i64, i32 (%struct.sysctl_req*, i8*, i64)*, i64, i32, i8, i8, i8, i8 }>
- %struct.sysentvec = type opaque
- %struct.system_segment_descriptor = type <{ i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }>
- %struct.task = type <{ %11, i16, i16, i8, i8, i8, i8, void (i8*, i32)*, i8* }>
- %struct.td_sched = type opaque
- %struct.thread = type <{ %struct.mtx*, %struct.proc*, %8, %8, %8, %8, %struct.cpuset*, %struct.seltd*, %struct.sleepqueue*, %struct.turnstile*, %struct.umtx_q*, i32, i8, i8, i8, i8, %struct.sigqueue, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8*, i8*, i8, i8, i8, i8, i16, i16, i16, i8, i8, i8, i8, i8, i8, %struct.turnstile*, i8*, %20, %struct.lock_list_entry*, i32, i32, %struct.ucred*, i32, i32, %struct.rusage, i64, i64, i32, i32, i32, i32, i32, %struct.__sigset, %struct.__sigset, i32, %struct.sigaltstack, i32, i8, i8, i8, i8, i64, i32, [20 x i8], %struct.file*, i32, i32, %struct.osd, i8, i8, i8, i8, i8, i8, i8, i8, %struct.pcb*, i32, i8, i8, i8, i8, [2 x i64], %struct.callout, %struct.trapframe*, %struct.vm_object*, i64, i32, i8, i8, i8, i8, %struct.vm_object*, i64, i32, i32, %struct.mdthread, %struct.td_sched*, %struct.kaudit_record*, i32, i8, i8, i8, i8, [2 x %struct.lpohead], %struct.kdtrace_thread*, i32, i8, i8, i8, i8, %struct.vnet*, i8* }>
- %struct.trapframe = type <{ i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i32, i16, i16, i64, i32, i16, i16, i64, i64, i64, i64, i64, i64 }>
- %struct.tty = type opaque
- %struct.turnstile = type opaque
- %struct.ucred = type <{ i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, %struct.uidinfo*, %struct.uidinfo*, %struct.prison*, %struct.vimage*, i32, i8, i8, i8, i8, [2 x i8*], %struct.label*, %struct.auditinfo_addr, i32*, i32, i8, i8, i8, i8 }>
- %struct.uidinfo = type opaque
- %struct.uio = type <{ %struct.iovec*, i32, i8, i8, i8, i8, i64, i64, i32, i32, %struct.thread* }>
- %struct.umtx_q = type opaque
- %struct.vattr = type <{ i32, i16, i16, i32, i32, i32, i8, i8, i8, i8, i64, i64, i64, %struct.bintime, %struct.bintime, %struct.bintime, %struct.bintime, i64, i64, i32, i8, i8, i8, i8, i64, i64, i32, i8, i8, i8, i8, i64 }>
- %struct.vfsconf = type <{ i32, [16 x i8], i8, i8, i8, i8, %struct.vfsops*, i32, i32, i32, i8, i8, i8, i8, %struct.vfsoptdecl*, %struct.vfsconfhead }>
- %struct.vfsconfhead = type <{ %struct.vfsconf*, %struct.vfsconf** }>
- %struct.vfsops = type <{ i32 (%struct.mount*)*, i32 (%struct.mntarg*, i8*, i32)*, i32 (%struct.mount*, i32)*, i32 (%struct.mount*, i32, %struct.vnode**)*, i32 (%struct.mount*, i32, i32, i8*)*, i32 (%struct.mount*, %struct.statfs*)*, i32 (%struct.mount*, i32)*, i32 (%struct.mount*, i32, i32, %struct.vnode**)*, i32 (%struct.mount*, %struct.fid*, %struct.vnode**)*, i32 (%struct.mount*, %struct.sockaddr*, i32*, %struct.ucred**, i32*, i32**)*, i32 (%struct.vfsconf*)*, i32 (%struct.vfsconf*)*, i32 (%struct.mount*, i32, %struct.vnode*, i32, i8*)*, i32 (%struct.mount*, i32, %struct.sysctl_req*)*, void (%struct.mount*)* }>
- %struct.vfsopt = type <{ %struct.vfsoptlist, i8*, i8*, i32, i32, i32, i8, i8, i8, i8 }>
- %struct.vfsoptdecl = type opaque
- %struct.vfsoptlist = type <{ %struct.vfsopt*, %struct.vfsopt** }>
- %struct.vimage = type opaque
- %struct.vm_map = type <{ %struct.vm_map_entry, %struct.mtx, %struct.mtx, i32, i8, i8, i8, i8, i64, i32, i8, i8, i8, i8, %struct.vm_map_entry*, %struct.pmap*, %struct.vm_map_entry* }>
- %struct.vm_map_entry = type <{ %struct.vm_map_entry*, %struct.vm_map_entry*, %struct.vm_map_entry*, %struct.vm_map_entry*, i64, i64, i64, i64, i64, %union.sigval, i64, i32, i8, i8, i8, i8, i32, i8, i8, i8, i8, i64, %struct.uidinfo* }>
- %struct.vm_object = type <{ %struct.mtx, %1, %2, %1, %3, %struct.vm_page*, i64, i32, i32, i32, i8, i8, i16, i16, i16, i32, %struct.vm_object*, i64, %1, %5, %struct.vm_page*, i8*, %union.anon, %struct.uidinfo*, i64 }>
- %struct.vm_page = type <{ %3, %3, %struct.vm_page*, %struct.vm_page*, %struct.vm_object*, i64, i64, %struct.md_page, i8, i8, i16, i8, i8, i16, i32, i16, i16, i8, i8, i8, i8, i8, i8, i8, i8 }>
- %struct.vm_reserv = type opaque
- %struct.vmspace = type <{ %struct.vm_map, %struct.shmmap_state*, i64, i64, i64, i64, i8*, i8*, i8*, i32, i8, i8, i8, i8, %struct.pmap }>
- %struct.vnet = type opaque
- %struct.vnode = type <{ i32, i8, i8, i8, i8, i8*, %struct.vop_vector*, i8*, %struct.mount*, %struct.freelst, %union.sigval, %struct.freelst, i32, i8, i8, i8, i8, %21, %22, %struct.namecache*, i64, i64, i64, i32, i8, i8, i8, i8, %struct.lock, %struct.mtx, %struct.lock*, i32, i32, i64, i64, i32, i8, i8, i8, i8, %struct.freelst, %struct.bufobj, %struct.vpollinfo*, %struct.label*, %struct.lockf* }>
- %struct.vnodeop_desc = type <{ i8*, i32, i8, i8, i8, i8, i32 (%struct.vop_generic_args*)*, i32*, i32, i32, i32, i32 }>
- %struct.vop_access_args = type <{ %struct.vop_generic_args, %struct.vnode*, i32, i8, i8, i8, i8, %struct.ucred*, %struct.thread* }>
- %struct.vop_aclcheck_args = type <{ %struct.vop_generic_args, %struct.vnode*, i32, i8, i8, i8, i8, %struct.acl*, %struct.ucred*, %struct.thread* }>
- %struct.vop_advlock_args = type <{ %struct.vop_generic_args, %struct.vnode*, i8*, i32, i8, i8, i8, i8, %struct.flock*, i32, i8, i8, i8, i8 }>
- %struct.vop_advlockasync_args = type <{ %struct.vop_generic_args, %struct.vnode*, i8*, i32, i8, i8, i8, i8, %struct.flock*, i32, i8, i8, i8, i8, %struct.task*, i8** }>
- %struct.vop_bmap_args = type <{ %struct.vop_generic_args, %struct.vnode*, i64, %struct.bufobj**, i64*, i32*, i32* }>
- %struct.vop_cachedlookup_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.vnode**, %struct.componentname* }>
- %struct.vop_create_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.vnode**, %struct.componentname*, %struct.vattr* }>
- %struct.vop_deleteextattr_args = type <{ %struct.vop_generic_args, %struct.vnode*, i32, i8, i8, i8, i8, i8*, %struct.ucred*, %struct.thread* }>
- %struct.vop_fsync_args = type <{ %struct.vop_generic_args, %struct.vnode*, i32, i8, i8, i8, i8, %struct.thread* }>
- %struct.vop_generic_args = type <{ %struct.vnodeop_desc* }>
- %struct.vop_getattr_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.vattr*, %struct.ucred* }>
- %struct.vop_getextattr_args = type <{ %struct.vop_generic_args, %struct.vnode*, i32, i8, i8, i8, i8, i8*, %struct.uio*, i64*, %struct.ucred*, %struct.thread* }>
- %struct.vop_getpages_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.vm_page**, i32, i32, i64 }>
- %struct.vop_getwritemount_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.mount** }>
- %struct.vop_inactive_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.thread* }>
- %struct.vop_ioctl_args = type <{ %struct.vop_generic_args, %struct.vnode*, i64, i8*, i32, i8, i8, i8, i8, %struct.ucred*, %struct.thread* }>
- %struct.vop_islocked_args = type <{ %struct.vop_generic_args, %struct.vnode* }>
- %struct.vop_kqfilter_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.knote* }>
- %struct.vop_link_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.vnode*, %struct.componentname* }>
- %struct.vop_listextattr_args = type <{ %struct.vop_generic_args, %struct.vnode*, i32, i8, i8, i8, i8, %struct.uio*, i64*, %struct.ucred*, %struct.thread* }>
- %struct.vop_lock1_args = type <{ %struct.vop_generic_args, %struct.vnode*, i32, i8, i8, i8, i8, i8*, i32, i8, i8, i8, i8 }>
- %struct.vop_open_args = type <{ %struct.vop_generic_args, %struct.vnode*, i32, i8, i8, i8, i8, %struct.ucred*, %struct.thread*, %struct.file* }>
- %struct.vop_openextattr_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.ucred*, %struct.thread* }>
- %struct.vop_pathconf_args = type <{ %struct.vop_generic_args, %struct.vnode*, i32, i8, i8, i8, i8, i64* }>
- %struct.vop_putpages_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.vm_page**, i32, i32, i32*, i64 }>
- %struct.vop_read_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.uio*, i32, i8, i8, i8, i8, %struct.ucred* }>
- %struct.vop_readdir_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.uio*, %struct.ucred*, i32*, i32*, i64** }>
- %struct.vop_readlink_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.uio*, %struct.ucred* }>
- %struct.vop_reallocblks_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.cluster_save* }>
- %struct.vop_rename_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.vnode*, %struct.componentname*, %struct.vnode*, %struct.vnode*, %struct.componentname* }>
- %struct.vop_revoke_args = type <{ %struct.vop_generic_args, %struct.vnode*, i32, i8, i8, i8, i8 }>
- %struct.vop_setextattr_args = type <{ %struct.vop_generic_args, %struct.vnode*, i32, i8, i8, i8, i8, i8*, %struct.uio*, %struct.ucred*, %struct.thread* }>
- %struct.vop_setlabel_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.label*, %struct.ucred*, %struct.thread* }>
- %struct.vop_strategy_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.buf* }>
- %struct.vop_symlink_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.vnode**, %struct.componentname*, %struct.vattr*, i8* }>
- %struct.vop_vector = type <{ %struct.vop_vector*, i32 (%struct.vop_generic_args*)*, i32 (%struct.vop_islocked_args*)*, i32 (%struct.vop_cachedlookup_args*)*, i32 (%struct.vop_cachedlookup_args*)*, i32 (%struct.vop_create_args*)*, i32 (%struct.vop_whiteout_args*)*, i32 (%struct.vop_create_args*)*, i32 (%struct.vop_open_args*)*, i32 (%struct.vop_access_args*)*, i32 (%struct.vop_access_args*)*, i32 (%struct.vop_access_args*)*, i32 (%struct.vop_getattr_args*)*, i32 (%struct.vop_getattr_args*)*, i32 (%struct.vop_islocked_args*)*, i32 (%struct.vop_read_args*)*, i32 (%struct.vop_read_args*)*, i32 (%struct.vop_ioctl_args*)*, i32 (%struct.vop_access_args*)*, i32 (%struct.vop_kqfilter_args*)*, i32 (%struct.vop_revoke_args*)*, i32 (%struct.vop_fsync_args*)*, i32 (%struct.vop_link_args*)*, i32 (%struct.vop_link_args*)*, i32 (%struct.vop_rename_args*)*, i32 (%struct.vop_create_args*)*, i32 (%struct.vop_link_args*)*, i32 (%struct.vop_symlink_args*)*, i32 (%struct.vop_readdir_args*)*, i32 (%struct.vop_readlink_args*)*, i32 (%struct.vop_inactive_args*)*, i32 (%struct.vop_inactive_args*)*, i32 (%struct.vop_lock1_args*)*, i32 (%struct.vop_revoke_args*)*, i32 (%struct.vop_bmap_args*)*, i32 (%struct.vop_strategy_args*)*, i32 (%struct.vop_getwritemount_args*)*, i32 (%struct.vop_islocked_args*)*, i32 (%struct.vop_pathconf_args*)*, i32 (%struct.vop_advlock_args*)*, i32 (%struct.vop_advlockasync_args*)*, i32 (%struct.vop_reallocblks_args*)*, i32 (%struct.vop_getpages_args*)*, i32 (%struct.vop_putpages_args*)*, i32 (%struct.vop_aclcheck_args*)*, i32 (%struct.vop_aclcheck_args*)*, i32 (%struct.vop_aclcheck_args*)*, i32 (%struct.vop_access_args*)*, i32 (%struct.vop_getextattr_args*)*, i32 (%struct.vop_listextattr_args*)*, i32 (%struct.vop_openextattr_args*)*, i32 (%struct.vop_deleteextattr_args*)*, i32 (%struct.vop_setextattr_args*)*, i32 (%struct.vop_setlabel_args*)*, i32 (%struct.vop_vptofh_args*)*, i32 (%struct.vop_vptocnp_args*)* }>
- %struct.vop_vptocnp_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.vnode**, %struct.ucred*, i8*, i32* }>
- %struct.vop_vptofh_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.fid* }>
- %struct.vop_whiteout_args = type <{ %struct.vop_generic_args, %struct.vnode*, %struct.componentname*, i32, i8, i8, i8, i8 }>
- %struct.vpollinfo = type <{ %struct.mtx, %struct.selinfo, i16, i16, i8, i8, i8, i8 }>
- %struct.witness = type opaque
- %struct.workhead = type <{ %struct.worklist* }>
- %struct.worklist = type opaque
- %union.anon = type <{ [16 x i8] }>
- %union.pager_info = type <{ [4 x i8] }>
- %union.sigval = type <{ [8 x i8] }>
-
-define i32 @vlrureclaim(%struct.mount* %mp) nounwind {
-entry:
- br i1 undef, label %if.then11, label %do.end
-
-if.then11: ; preds = %entry
- br label %do.end
-
-do.end: ; preds = %if.then11, %entry
- br label %while.cond.outer
-
-while.cond.outer: ; preds = %while.cond.outer.backedge, %do.end
- %count.0.ph = phi i32 [ undef, %do.end ], [ undef, %while.cond.outer.backedge ] ; <i32> [#uses=1]
- br label %while.cond
-
-while.cond: ; preds = %next_iter, %while.cond.outer
- %count.0 = phi i32 [ %dec, %next_iter ], [ %count.0.ph, %while.cond.outer ] ; <i32> [#uses=2]
- %cmp21 = icmp eq i32 %count.0, 0 ; <i1> [#uses=1]
- br i1 %cmp21, label %do.body288.loopexit4, label %while.body
-
-while.body: ; preds = %while.cond
- br label %while.cond27
-
-while.cond27: ; preds = %while.body36, %while.body
- br i1 undef, label %do.body288.loopexit, label %land.rhs
-
-land.rhs: ; preds = %while.cond27
- br i1 undef, label %while.body36, label %while.end
-
-while.body36: ; preds = %land.rhs
- br label %while.cond27
-
-while.end: ; preds = %land.rhs
- br i1 undef, label %do.body288.loopexit4, label %do.body46
-
-do.body46: ; preds = %while.end
- br i1 undef, label %if.else64, label %if.then53
-
-if.then53: ; preds = %do.body46
- br label %if.end72
-
-if.else64: ; preds = %do.body46
- br label %if.end72
-
-if.end72: ; preds = %if.else64, %if.then53
- %dec = add i32 %count.0, -1 ; <i32> [#uses=2]
- br i1 undef, label %next_iter, label %if.end111
-
-if.end111: ; preds = %if.end72
- br i1 undef, label %lor.lhs.false, label %do.body145
-
-lor.lhs.false: ; preds = %if.end111
- br i1 undef, label %lor.lhs.false122, label %do.body145
-
-lor.lhs.false122: ; preds = %lor.lhs.false
- br i1 undef, label %lor.lhs.false128, label %do.body145
-
-lor.lhs.false128: ; preds = %lor.lhs.false122
- br i1 undef, label %do.body162, label %land.lhs.true
-
-land.lhs.true: ; preds = %lor.lhs.false128
- br i1 undef, label %do.body145, label %do.body162
-
-do.body145: ; preds = %land.lhs.true, %lor.lhs.false122, %lor.lhs.false, %if.end111
- br i1 undef, label %if.then156, label %next_iter
-
-if.then156: ; preds = %do.body145
- br label %next_iter
-
-do.body162: ; preds = %land.lhs.true, %lor.lhs.false128
- br i1 undef, label %if.then173, label %do.end177
-
-if.then173: ; preds = %do.body162
- br label %do.end177
-
-do.end177: ; preds = %if.then173, %do.body162
- br i1 undef, label %do.body185, label %if.then182
-
-if.then182: ; preds = %do.end177
- br label %next_iter_mntunlocked
-
-do.body185: ; preds = %do.end177
- br i1 undef, label %if.then196, label %do.end202
-
-if.then196: ; preds = %do.body185
- br label %do.end202
-
-do.end202: ; preds = %if.then196, %do.body185
- br i1 undef, label %lor.lhs.false207, label %if.then231
-
-lor.lhs.false207: ; preds = %do.end202
- br i1 undef, label %lor.lhs.false214, label %if.then231
-
-lor.lhs.false214: ; preds = %lor.lhs.false207
- br i1 undef, label %do.end236, label %land.lhs.true221
-
-land.lhs.true221: ; preds = %lor.lhs.false214
- br i1 undef, label %if.then231, label %do.end236
-
-if.then231: ; preds = %land.lhs.true221, %lor.lhs.false207, %do.end202
- br label %next_iter_mntunlocked
-
-do.end236: ; preds = %land.lhs.true221, %lor.lhs.false214
- br label %next_iter_mntunlocked
-
-next_iter_mntunlocked: ; preds = %do.end236, %if.then231, %if.then182
- br i1 undef, label %yield, label %do.body269
-
-next_iter: ; preds = %if.then156, %do.body145, %if.end72
- %rem2482 = and i32 %dec, 255 ; <i32> [#uses=1]
- %cmp249 = icmp eq i32 %rem2482, 0 ; <i1> [#uses=1]
- br i1 %cmp249, label %do.body253, label %while.cond
-
-do.body253: ; preds = %next_iter
- br i1 undef, label %if.then264, label %yield
-
-if.then264: ; preds = %do.body253
- br label %yield
-
-yield: ; preds = %if.then264, %do.body253, %next_iter_mntunlocked
- br label %do.body269
-
-do.body269: ; preds = %yield, %next_iter_mntunlocked
- br i1 undef, label %if.then280, label %while.cond.outer.backedge
-
-if.then280: ; preds = %do.body269
- br label %while.cond.outer.backedge
-
-while.cond.outer.backedge: ; preds = %if.then280, %do.body269
- br label %while.cond.outer
-
-do.body288.loopexit: ; preds = %while.cond27
- br label %do.body288
-
-do.body288.loopexit4: ; preds = %while.end, %while.cond
- br label %do.body288
-
-do.body288: ; preds = %do.body288.loopexit4, %do.body288.loopexit
- br i1 undef, label %if.then299, label %do.end303
-
-if.then299: ; preds = %do.body288
- br label %do.end303
-
-do.end303: ; preds = %if.then299, %do.body288
- ret i32 undef
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/avoid-smax-0.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/avoid-smax-0.ll
deleted file mode 100644
index 24275f9..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/avoid-smax-0.ll
+++ /dev/null
@@ -1,35 +0,0 @@
-; RUN: opt < %s -scalar-evolution -analyze | grep {Loop %bb3: backedge-taken count is (-1 + %n)}
-
-; We don't want to use a max in the trip count expression in
-; this testcase.
-
-define void @foo(i32 %n, i32* %p, i32* %q) nounwind {
-entry:
- icmp sgt i32 %n, 0
- br i1 %0, label %bb, label %return
-
-bb:
- load i32* %q, align 4
- icmp eq i32 %1, 0
- br i1 %2, label %return, label %bb3.preheader
-
-bb3.preheader:
- br label %bb3
-
-bb3:
- %i.0 = phi i32 [ %7, %bb3 ], [ 0, %bb3.preheader ]
- getelementptr i32* %p, i32 %i.0
- load i32* %3, align 4
- add i32 %4, 1
- getelementptr i32* %p, i32 %i.0
- store i32 %5, i32* %6, align 4
- add i32 %i.0, 1
- icmp slt i32 %7, %n
- br i1 %8, label %bb3, label %return.loopexit
-
-return.loopexit:
- br label %return
-
-return:
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/avoid-smax-1.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/avoid-smax-1.ll
deleted file mode 100644
index 0bc9ce8..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/avoid-smax-1.ll
+++ /dev/null
@@ -1,236 +0,0 @@
-; RUN: opt < %s -indvars -S > %t
-; RUN: grep select %t | count 2
-; RUN: grep {icmp ne i32.\* %w } %t
-
-; Indvars should be able to insert a canonical induction variable
-; for the bb6 loop without using a maximum calculation (icmp, select)
-; because it should be able to prove that the comparison is guarded
-; by an appropriate conditional branch. Unfortunately, indvars is
-; not yet able to find the comparison for the other two loops in
-; this testcase.
-
-target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
-target triple = "i386-apple-darwin9"
-
-define void @foo(i8* %r, i32 %s, i32 %w, i32 %x, i8* %j, i32 %d) nounwind {
-entry:
- %0 = mul i32 %x, %w ; <i32> [#uses=2]
- %1 = mul i32 %x, %w ; <i32> [#uses=1]
- %2 = sdiv i32 %1, 4 ; <i32> [#uses=1]
- %.sum2 = add i32 %2, %0 ; <i32> [#uses=2]
- %cond = icmp eq i32 %d, 1 ; <i1> [#uses=1]
- br i1 %cond, label %bb29, label %bb10.preheader
-
-bb10.preheader: ; preds = %entry
- %3 = icmp sgt i32 %x, 0 ; <i1> [#uses=1]
- br i1 %3, label %bb.nph9, label %bb18.loopexit
-
-bb.nph7: ; preds = %bb7.preheader
- %4 = mul i32 %y.08, %w ; <i32> [#uses=1]
- %5 = mul i32 %y.08, %s ; <i32> [#uses=1]
- %6 = add i32 %5, 1 ; <i32> [#uses=1]
- br label %bb6
-
-bb6: ; preds = %bb7, %bb.nph7
- %x.06 = phi i32 [ %13, %bb7 ], [ 0, %bb.nph7 ] ; <i32> [#uses=3]
- %7 = add i32 %x.06, %4 ; <i32> [#uses=1]
- %8 = shl i32 %x.06, 1 ; <i32> [#uses=1]
- %9 = add i32 %6, %8 ; <i32> [#uses=1]
- %10 = getelementptr i8* %r, i32 %9 ; <i8*> [#uses=1]
- %11 = load i8* %10, align 1 ; <i8> [#uses=1]
- %12 = getelementptr i8* %j, i32 %7 ; <i8*> [#uses=1]
- store i8 %11, i8* %12, align 1
- %13 = add i32 %x.06, 1 ; <i32> [#uses=2]
- br label %bb7
-
-bb7: ; preds = %bb6
- %14 = icmp slt i32 %13, %w ; <i1> [#uses=1]
- br i1 %14, label %bb6, label %bb7.bb9_crit_edge
-
-bb7.bb9_crit_edge: ; preds = %bb7
- br label %bb9
-
-bb9: ; preds = %bb7.preheader, %bb7.bb9_crit_edge
- %15 = add i32 %y.08, 1 ; <i32> [#uses=2]
- br label %bb10
-
-bb10: ; preds = %bb9
- %16 = icmp slt i32 %15, %x ; <i1> [#uses=1]
- br i1 %16, label %bb7.preheader, label %bb10.bb18.loopexit_crit_edge
-
-bb10.bb18.loopexit_crit_edge: ; preds = %bb10
- br label %bb10.bb18.loopexit_crit_edge.split
-
-bb10.bb18.loopexit_crit_edge.split: ; preds = %bb.nph9, %bb10.bb18.loopexit_crit_edge
- br label %bb18.loopexit
-
-bb.nph9: ; preds = %bb10.preheader
- %17 = icmp sgt i32 %w, 0 ; <i1> [#uses=1]
- br i1 %17, label %bb.nph9.split, label %bb10.bb18.loopexit_crit_edge.split
-
-bb.nph9.split: ; preds = %bb.nph9
- br label %bb7.preheader
-
-bb7.preheader: ; preds = %bb.nph9.split, %bb10
- %y.08 = phi i32 [ %15, %bb10 ], [ 0, %bb.nph9.split ] ; <i32> [#uses=3]
- br i1 true, label %bb.nph7, label %bb9
-
-bb.nph5: ; preds = %bb18.loopexit
- %18 = sdiv i32 %w, 2 ; <i32> [#uses=1]
- %19 = icmp slt i32 %w, 2 ; <i1> [#uses=1]
- %20 = sdiv i32 %x, 2 ; <i32> [#uses=1]
- br i1 %19, label %bb18.bb20_crit_edge.split, label %bb.nph5.split
-
-bb.nph5.split: ; preds = %bb.nph5
- br label %bb13
-
-bb13: ; preds = %bb18, %bb.nph5.split
- %y.14 = phi i32 [ %42, %bb18 ], [ 0, %bb.nph5.split ] ; <i32> [#uses=4]
- %21 = mul i32 %18, %y.14 ; <i32> [#uses=2]
- %22 = shl i32 %y.14, 1 ; <i32> [#uses=1]
- %23 = srem i32 %y.14, 2 ; <i32> [#uses=1]
- %24 = add i32 %23, %22 ; <i32> [#uses=1]
- %25 = mul i32 %24, %s ; <i32> [#uses=2]
- br i1 true, label %bb.nph3, label %bb17
-
-bb.nph3: ; preds = %bb13
- %26 = add i32 %21, %0 ; <i32> [#uses=1]
- %27 = add i32 %21, %.sum2 ; <i32> [#uses=1]
- %28 = sdiv i32 %w, 2 ; <i32> [#uses=1]
- br label %bb14
-
-bb14: ; preds = %bb15, %bb.nph3
- %x.12 = phi i32 [ %40, %bb15 ], [ 0, %bb.nph3 ] ; <i32> [#uses=5]
- %29 = shl i32 %x.12, 2 ; <i32> [#uses=1]
- %30 = add i32 %29, %25 ; <i32> [#uses=1]
- %31 = getelementptr i8* %r, i32 %30 ; <i8*> [#uses=1]
- %32 = load i8* %31, align 1 ; <i8> [#uses=1]
- %.sum = add i32 %26, %x.12 ; <i32> [#uses=1]
- %33 = getelementptr i8* %j, i32 %.sum ; <i8*> [#uses=1]
- store i8 %32, i8* %33, align 1
- %34 = shl i32 %x.12, 2 ; <i32> [#uses=1]
- %35 = or i32 %34, 2 ; <i32> [#uses=1]
- %36 = add i32 %35, %25 ; <i32> [#uses=1]
- %37 = getelementptr i8* %r, i32 %36 ; <i8*> [#uses=1]
- %38 = load i8* %37, align 1 ; <i8> [#uses=1]
- %.sum6 = add i32 %27, %x.12 ; <i32> [#uses=1]
- %39 = getelementptr i8* %j, i32 %.sum6 ; <i8*> [#uses=1]
- store i8 %38, i8* %39, align 1
- %40 = add i32 %x.12, 1 ; <i32> [#uses=2]
- br label %bb15
-
-bb15: ; preds = %bb14
- %41 = icmp sgt i32 %28, %40 ; <i1> [#uses=1]
- br i1 %41, label %bb14, label %bb15.bb17_crit_edge
-
-bb15.bb17_crit_edge: ; preds = %bb15
- br label %bb17
-
-bb17: ; preds = %bb15.bb17_crit_edge, %bb13
- %42 = add i32 %y.14, 1 ; <i32> [#uses=2]
- br label %bb18
-
-bb18.loopexit: ; preds = %bb10.bb18.loopexit_crit_edge.split, %bb10.preheader
- %43 = icmp slt i32 %x, 2 ; <i1> [#uses=1]
- br i1 %43, label %bb20, label %bb.nph5
-
-bb18: ; preds = %bb17
- %44 = icmp sgt i32 %20, %42 ; <i1> [#uses=1]
- br i1 %44, label %bb13, label %bb18.bb20_crit_edge
-
-bb18.bb20_crit_edge: ; preds = %bb18
- br label %bb18.bb20_crit_edge.split
-
-bb18.bb20_crit_edge.split: ; preds = %bb18.bb20_crit_edge, %bb.nph5
- br label %bb20
-
-bb20: ; preds = %bb18.bb20_crit_edge.split, %bb18.loopexit
- switch i32 %d, label %return [
- i32 3, label %bb22
- i32 1, label %bb29
- ]
-
-bb22: ; preds = %bb20
- %45 = mul i32 %x, %w ; <i32> [#uses=1]
- %46 = sdiv i32 %45, 4 ; <i32> [#uses=1]
- %.sum3 = add i32 %46, %.sum2 ; <i32> [#uses=2]
- %47 = add i32 %x, 15 ; <i32> [#uses=1]
- %48 = and i32 %47, -16 ; <i32> [#uses=1]
- %49 = add i32 %w, 15 ; <i32> [#uses=1]
- %50 = and i32 %49, -16 ; <i32> [#uses=1]
- %51 = mul i32 %48, %s ; <i32> [#uses=1]
- %52 = icmp sgt i32 %x, 0 ; <i1> [#uses=1]
- br i1 %52, label %bb.nph, label %bb26
-
-bb.nph: ; preds = %bb22
- br label %bb23
-
-bb23: ; preds = %bb24, %bb.nph
- %y.21 = phi i32 [ %57, %bb24 ], [ 0, %bb.nph ] ; <i32> [#uses=3]
- %53 = mul i32 %y.21, %50 ; <i32> [#uses=1]
- %.sum1 = add i32 %53, %51 ; <i32> [#uses=1]
- %54 = getelementptr i8* %r, i32 %.sum1 ; <i8*> [#uses=1]
- %55 = mul i32 %y.21, %w ; <i32> [#uses=1]
- %.sum5 = add i32 %55, %.sum3 ; <i32> [#uses=1]
- %56 = getelementptr i8* %j, i32 %.sum5 ; <i8*> [#uses=1]
- tail call void @llvm.memcpy.i32(i8* %56, i8* %54, i32 %w, i32 1)
- %57 = add i32 %y.21, 1 ; <i32> [#uses=2]
- br label %bb24
-
-bb24: ; preds = %bb23
- %58 = icmp slt i32 %57, %x ; <i1> [#uses=1]
- br i1 %58, label %bb23, label %bb24.bb26_crit_edge
-
-bb24.bb26_crit_edge: ; preds = %bb24
- br label %bb26
-
-bb26: ; preds = %bb24.bb26_crit_edge, %bb22
- %59 = mul i32 %x, %w ; <i32> [#uses=1]
- %.sum4 = add i32 %.sum3, %59 ; <i32> [#uses=1]
- %60 = getelementptr i8* %j, i32 %.sum4 ; <i8*> [#uses=1]
- %61 = mul i32 %x, %w ; <i32> [#uses=1]
- %62 = sdiv i32 %61, 2 ; <i32> [#uses=1]
- tail call void @llvm.memset.i32(i8* %60, i8 -128, i32 %62, i32 1)
- ret void
-
-bb29: ; preds = %bb20, %entry
- %63 = add i32 %w, 15 ; <i32> [#uses=1]
- %64 = and i32 %63, -16 ; <i32> [#uses=1]
- %65 = icmp sgt i32 %x, 0 ; <i1> [#uses=1]
- br i1 %65, label %bb.nph11, label %bb33
-
-bb.nph11: ; preds = %bb29
- br label %bb30
-
-bb30: ; preds = %bb31, %bb.nph11
- %y.310 = phi i32 [ %70, %bb31 ], [ 0, %bb.nph11 ] ; <i32> [#uses=3]
- %66 = mul i32 %y.310, %64 ; <i32> [#uses=1]
- %67 = getelementptr i8* %r, i32 %66 ; <i8*> [#uses=1]
- %68 = mul i32 %y.310, %w ; <i32> [#uses=1]
- %69 = getelementptr i8* %j, i32 %68 ; <i8*> [#uses=1]
- tail call void @llvm.memcpy.i32(i8* %69, i8* %67, i32 %w, i32 1)
- %70 = add i32 %y.310, 1 ; <i32> [#uses=2]
- br label %bb31
-
-bb31: ; preds = %bb30
- %71 = icmp slt i32 %70, %x ; <i1> [#uses=1]
- br i1 %71, label %bb30, label %bb31.bb33_crit_edge
-
-bb31.bb33_crit_edge: ; preds = %bb31
- br label %bb33
-
-bb33: ; preds = %bb31.bb33_crit_edge, %bb29
- %72 = mul i32 %x, %w ; <i32> [#uses=1]
- %73 = getelementptr i8* %j, i32 %72 ; <i8*> [#uses=1]
- %74 = mul i32 %x, %w ; <i32> [#uses=1]
- %75 = sdiv i32 %74, 2 ; <i32> [#uses=1]
- tail call void @llvm.memset.i32(i8* %73, i8 -128, i32 %75, i32 1)
- ret void
-
-return: ; preds = %bb20
- ret void
-}
-
-declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) nounwind
-
-declare void @llvm.memset.i32(i8*, i8, i32, i32) nounwind
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/dg.exp b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/dg.exp
deleted file mode 100644
index b65a250..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/dg.exp
+++ /dev/null
@@ -1,3 +0,0 @@
-load_lib llvm.exp
-
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.ll]]
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/div-overflow.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/div-overflow.ll
deleted file mode 100644
index 4f6f1e2..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/div-overflow.ll
+++ /dev/null
@@ -1,10 +0,0 @@
-; RUN: opt < %s -scalar-evolution -analyze \
-; RUN: | grep {\\--> ((-128 \\* %a) /u -128)}
-
-; Don't let ScalarEvolution fold this div away.
-
-define i8 @foo(i8 %a) {
- %t0 = shl i8 %a, 7
- %t1 = lshr i8 %t0, 7
- ret i8 %t1
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/do-loop.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/do-loop.ll
deleted file mode 100644
index 6e3295a..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/do-loop.ll
+++ /dev/null
@@ -1,18 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution | grep smax
-; PR1614
-
-define i32 @f(i32 %x, i32 %y) {
-entry:
- br label %bb
-
-bb: ; preds = %bb, %entry
- %indvar = phi i32 [ 0, %entry ], [ %indvar.next, %bb ] ; <i32> [#uses=2]
- %x_addr.0 = add i32 %indvar, %x ; <i32> [#uses=1]
- %tmp2 = add i32 %x_addr.0, 1 ; <i32> [#uses=2]
- %tmp5 = icmp slt i32 %tmp2, %y ; <i1> [#uses=1]
- %indvar.next = add i32 %indvar, 1 ; <i32> [#uses=1]
- br i1 %tmp5, label %bb, label %bb7
-
-bb7: ; preds = %bb
- ret i32 %tmp2
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/max-trip-count.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/max-trip-count.ll
deleted file mode 100644
index a8966be..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/max-trip-count.ll
+++ /dev/null
@@ -1,34 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution \
-; RUN: | grep {\{%d,+,\[^\{\}\]\*\}<%bb>}
-
-; ScalarEvolution should be able to understand the loop and eliminate the casts.
-
-define void @foo(i32* nocapture %d, i32 %n) nounwind {
-entry:
- %0 = icmp sgt i32 %n, 0 ; <i1> [#uses=1]
- br i1 %0, label %bb.nph, label %return
-
-bb.nph: ; preds = %entry
- br label %bb
-
-bb: ; preds = %bb1, %bb.nph
- %i.02 = phi i32 [ %5, %bb1 ], [ 0, %bb.nph ] ; <i32> [#uses=2]
- %p.01 = phi i8 [ %4, %bb1 ], [ -1, %bb.nph ] ; <i8> [#uses=2]
- %1 = sext i8 %p.01 to i32 ; <i32> [#uses=1]
- %2 = sext i32 %i.02 to i64 ; <i64> [#uses=1]
- %3 = getelementptr i32* %d, i64 %2 ; <i32*> [#uses=1]
- store i32 %1, i32* %3, align 4
- %4 = add i8 %p.01, 1 ; <i8> [#uses=1]
- %5 = add i32 %i.02, 1 ; <i32> [#uses=2]
- br label %bb1
-
-bb1: ; preds = %bb
- %6 = icmp slt i32 %5, %n ; <i1> [#uses=1]
- br i1 %6, label %bb, label %bb1.return_crit_edge
-
-bb1.return_crit_edge: ; preds = %bb1
- br label %return
-
-return: ; preds = %bb1.return_crit_edge, %entry
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/nsw-offset.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/nsw-offset.ll
deleted file mode 100644
index 4cd9a6d..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/nsw-offset.ll
+++ /dev/null
@@ -1,77 +0,0 @@
-; RUN: opt < %s -S -analyze -scalar-evolution | FileCheck %s
-
-; ScalarEvolution should be able to fold away the sign-extensions
-; on this loop with a primary induction variable incremented with
-; a nsw add of 2.
-
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
-
-define void @foo(i32 %no, double* nocapture %d, double* nocapture %q) nounwind {
-entry:
- %n = and i32 %no, 4294967294
- %0 = icmp sgt i32 %n, 0 ; <i1> [#uses=1]
- br i1 %0, label %bb.nph, label %return
-
-bb.nph: ; preds = %entry
- br label %bb
-
-bb: ; preds = %bb.nph, %bb1
- %i.01 = phi i32 [ %16, %bb1 ], [ 0, %bb.nph ] ; <i32> [#uses=5]
-
-; CHECK: %1 = sext i32 %i.01 to i64
-; CHECK: --> {0,+,2}<%bb>
- %1 = sext i32 %i.01 to i64 ; <i64> [#uses=1]
-
-; CHECK: %2 = getelementptr inbounds double* %d, i64 %1
-; CHECK: --> {%d,+,16}<%bb>
- %2 = getelementptr inbounds double* %d, i64 %1 ; <double*> [#uses=1]
-
- %3 = load double* %2, align 8 ; <double> [#uses=1]
- %4 = sext i32 %i.01 to i64 ; <i64> [#uses=1]
- %5 = getelementptr inbounds double* %q, i64 %4 ; <double*> [#uses=1]
- %6 = load double* %5, align 8 ; <double> [#uses=1]
- %7 = or i32 %i.01, 1 ; <i32> [#uses=1]
-
-; CHECK: %8 = sext i32 %7 to i64
-; CHECK: --> {1,+,2}<%bb>
- %8 = sext i32 %7 to i64 ; <i64> [#uses=1]
-
-; CHECK: %9 = getelementptr inbounds double* %q, i64 %8
-; CHECK: {(8 + %q),+,16}<%bb>
- %9 = getelementptr inbounds double* %q, i64 %8 ; <double*> [#uses=1]
-
-; Artificially repeat the above three instructions, this time using
-; add nsw instead of or.
- %t7 = add nsw i32 %i.01, 1 ; <i32> [#uses=1]
-
-; CHECK: %t8 = sext i32 %t7 to i64
-; CHECK: --> {1,+,2}<%bb>
- %t8 = sext i32 %t7 to i64 ; <i64> [#uses=1]
-
-; CHECK: %t9 = getelementptr inbounds double* %q, i64 %t8
-; CHECK: {(8 + %q),+,16}<%bb>
- %t9 = getelementptr inbounds double* %q, i64 %t8 ; <double*> [#uses=1]
-
- %10 = load double* %9, align 8 ; <double> [#uses=1]
- %11 = fadd double %6, %10 ; <double> [#uses=1]
- %12 = fadd double %11, 3.200000e+00 ; <double> [#uses=1]
- %13 = fmul double %3, %12 ; <double> [#uses=1]
- %14 = sext i32 %i.01 to i64 ; <i64> [#uses=1]
- %15 = getelementptr inbounds double* %d, i64 %14 ; <double*> [#uses=1]
- store double %13, double* %15, align 8
- %16 = add nsw i32 %i.01, 2 ; <i32> [#uses=2]
- br label %bb1
-
-bb1: ; preds = %bb
- %17 = icmp slt i32 %16, %n ; <i1> [#uses=1]
- br i1 %17, label %bb, label %bb1.return_crit_edge
-
-bb1.return_crit_edge: ; preds = %bb1
- br label %return
-
-return: ; preds = %bb1.return_crit_edge, %entry
- ret void
-}
-
-; CHECK: Loop %bb: backedge-taken count is ((-1 + %n) /u 2)
-; CHECK: Loop %bb: max backedge-taken count is 1073741822
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/nsw.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/nsw.ll
deleted file mode 100644
index 456f3f0..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/nsw.ll
+++ /dev/null
@@ -1,40 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution | grep { --> {.*,+,.*}<%bb>} | count 8
-
-; The addrecs in this loop are analyzable only by using nsw information.
-
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64"
-
-define void @foo(double* %p) nounwind {
-entry:
- %tmp = load double* %p, align 8 ; <double> [#uses=1]
- %tmp1 = fcmp ogt double %tmp, 2.000000e+00 ; <i1> [#uses=1]
- br i1 %tmp1, label %bb.nph, label %return
-
-bb.nph: ; preds = %entry
- br label %bb
-
-bb: ; preds = %bb1, %bb.nph
- %i.01 = phi i32 [ %tmp8, %bb1 ], [ 0, %bb.nph ] ; <i32> [#uses=3]
- %tmp2 = sext i32 %i.01 to i64 ; <i64> [#uses=1]
- %tmp3 = getelementptr double* %p, i64 %tmp2 ; <double*> [#uses=1]
- %tmp4 = load double* %tmp3, align 8 ; <double> [#uses=1]
- %tmp5 = fmul double %tmp4, 9.200000e+00 ; <double> [#uses=1]
- %tmp6 = sext i32 %i.01 to i64 ; <i64> [#uses=1]
- %tmp7 = getelementptr double* %p, i64 %tmp6 ; <double*> [#uses=1]
- store double %tmp5, double* %tmp7, align 8
- %tmp8 = add nsw i32 %i.01, 1 ; <i32> [#uses=2]
- br label %bb1
-
-bb1: ; preds = %bb
- %phitmp = sext i32 %tmp8 to i64 ; <i64> [#uses=1]
- %tmp9 = getelementptr double* %p, i64 %phitmp ; <double*> [#uses=1]
- %tmp10 = load double* %tmp9, align 8 ; <double> [#uses=1]
- %tmp11 = fcmp ogt double %tmp10, 2.000000e+00 ; <i1> [#uses=1]
- br i1 %tmp11, label %bb, label %bb1.return_crit_edge
-
-bb1.return_crit_edge: ; preds = %bb1
- br label %return
-
-return: ; preds = %bb1.return_crit_edge, %entry
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/pointer-sign-bits.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/pointer-sign-bits.ll
deleted file mode 100644
index b2cec2d..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/pointer-sign-bits.ll
+++ /dev/null
@@ -1,220 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution
-
-target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
- %JavaObject = type { [0 x i32 (...)*]*, i8* }
-
-define void @JnJVM_antlr_CSharpCodeGenerator_genBitSet__Lantlr_collections_impl_BitSet_2I(%JavaObject*, %JavaObject*, i32) {
-start:
- br i1 undef, label %"stack overflow", label %"no stack overflow"
-
-"GOTO or IF*2": ; preds = %"true verifyAndComputePtr89", %verifyNullCont84
- unreachable
-
-"GOTO or IF*5": ; preds = %"true verifyAndComputePtr127", %"GOTO or IF*6"
- unreachable
-
-"GOTO or IF*6": ; preds = %"true verifyAndComputePtr131.GOTO or IF*6_crit_edge", %"true verifyAndComputePtr89"
- %indvar = phi i32 [ %indvar.next, %"true verifyAndComputePtr131.GOTO or IF*6_crit_edge" ], [ 0, %"true verifyAndComputePtr89" ] ; <i32> [#uses=2]
- %.0.in = add i32 %indvar, 0 ; <i32> [#uses=1]
- %.0 = add i32 %.0.in, 1 ; <i32> [#uses=1]
- %3 = icmp slt i32 %.0, %4 ; <i1> [#uses=1]
- br i1 %3, label %verifyNullCont126, label %"GOTO or IF*5"
-
-end: ; preds = %"no exception block35"
- ret void
-
-"stack overflow": ; preds = %start
- ret void
-
-"no stack overflow": ; preds = %start
- br i1 undef, label %verifyNullCont, label %"no stack overflow.end_crit_edge"
-
-"no stack overflow.end_crit_edge": ; preds = %"no stack overflow"
- ret void
-
-verifyNullCont: ; preds = %"no stack overflow"
- br i1 undef, label %verifyNullCont9, label %verifyNullCont.end_crit_edge
-
-verifyNullCont.end_crit_edge: ; preds = %verifyNullCont
- ret void
-
-verifyNullCont9: ; preds = %verifyNullCont
- br i1 undef, label %verifyNullCont12, label %verifyNullCont9.end_crit_edge
-
-verifyNullCont9.end_crit_edge: ; preds = %verifyNullCont9
- ret void
-
-verifyNullCont12: ; preds = %verifyNullCont9
- br i1 undef, label %"no exception block13", label %verifyNullCont12.end_crit_edge
-
-verifyNullCont12.end_crit_edge: ; preds = %verifyNullCont12
- ret void
-
-"no exception block13": ; preds = %verifyNullCont12
- br i1 undef, label %verifyNullExit14, label %verifyNullCont15
-
-verifyNullExit14: ; preds = %"no exception block13"
- ret void
-
-verifyNullCont15: ; preds = %"no exception block13"
- br i1 undef, label %"no exception block16", label %verifyNullCont15.end_crit_edge
-
-verifyNullCont15.end_crit_edge: ; preds = %verifyNullCont15
- ret void
-
-"no exception block16": ; preds = %verifyNullCont15
- br i1 undef, label %verifyNullExit17, label %verifyNullCont18
-
-verifyNullExit17: ; preds = %"no exception block16"
- ret void
-
-verifyNullCont18: ; preds = %"no exception block16"
- br i1 undef, label %"no exception block19", label %verifyNullCont18.end_crit_edge
-
-verifyNullCont18.end_crit_edge: ; preds = %verifyNullCont18
- ret void
-
-"no exception block19": ; preds = %verifyNullCont18
- br i1 undef, label %verifyNullExit20, label %verifyNullCont21
-
-verifyNullExit20: ; preds = %"no exception block19"
- ret void
-
-verifyNullCont21: ; preds = %"no exception block19"
- br i1 undef, label %verifyNullCont24, label %verifyNullCont21.end_crit_edge
-
-verifyNullCont21.end_crit_edge: ; preds = %verifyNullCont21
- ret void
-
-verifyNullCont24: ; preds = %verifyNullCont21
- br i1 undef, label %verifyNullCont27, label %verifyNullCont24.end_crit_edge
-
-verifyNullCont24.end_crit_edge: ; preds = %verifyNullCont24
- ret void
-
-verifyNullCont27: ; preds = %verifyNullCont24
- br i1 undef, label %verifyNullCont32, label %verifyNullCont27.end_crit_edge
-
-verifyNullCont27.end_crit_edge: ; preds = %verifyNullCont27
- ret void
-
-verifyNullCont32: ; preds = %verifyNullCont27
- br i1 undef, label %verifyNullExit33, label %verifyNullCont34
-
-verifyNullExit33: ; preds = %verifyNullCont32
- ret void
-
-verifyNullCont34: ; preds = %verifyNullCont32
- br i1 undef, label %"no exception block35", label %verifyNullCont34.end_crit_edge
-
-verifyNullCont34.end_crit_edge: ; preds = %verifyNullCont34
- ret void
-
-"no exception block35": ; preds = %verifyNullCont34
- br i1 undef, label %end, label %verifyNullCont60
-
-verifyNullCont60: ; preds = %"no exception block35"
- br i1 undef, label %verifyNullCont63, label %verifyNullCont60.end_crit_edge
-
-verifyNullCont60.end_crit_edge: ; preds = %verifyNullCont60
- ret void
-
-verifyNullCont63: ; preds = %verifyNullCont60
- br i1 undef, label %"no exception block64", label %verifyNullCont63.end_crit_edge
-
-verifyNullCont63.end_crit_edge: ; preds = %verifyNullCont63
- ret void
-
-"no exception block64": ; preds = %verifyNullCont63
- br i1 undef, label %verifyNullExit65, label %verifyNullCont66
-
-verifyNullExit65: ; preds = %"no exception block64"
- ret void
-
-verifyNullCont66: ; preds = %"no exception block64"
- br i1 undef, label %"no exception block67", label %verifyNullCont66.end_crit_edge
-
-verifyNullCont66.end_crit_edge: ; preds = %verifyNullCont66
- ret void
-
-"no exception block67": ; preds = %verifyNullCont66
- br i1 undef, label %verifyNullExit68, label %verifyNullCont69
-
-verifyNullExit68: ; preds = %"no exception block67"
- ret void
-
-verifyNullCont69: ; preds = %"no exception block67"
- br i1 undef, label %"no exception block70", label %verifyNullCont69.end_crit_edge
-
-verifyNullCont69.end_crit_edge: ; preds = %verifyNullCont69
- ret void
-
-"no exception block70": ; preds = %verifyNullCont69
- br i1 undef, label %verifyNullExit71, label %verifyNullCont72
-
-verifyNullExit71: ; preds = %"no exception block70"
- ret void
-
-verifyNullCont72: ; preds = %"no exception block70"
- br i1 undef, label %verifyNullCont75, label %verifyNullCont72.end_crit_edge
-
-verifyNullCont72.end_crit_edge: ; preds = %verifyNullCont72
- ret void
-
-verifyNullCont75: ; preds = %verifyNullCont72
- br i1 undef, label %verifyNullCont78, label %verifyNullCont75.end_crit_edge
-
-verifyNullCont75.end_crit_edge: ; preds = %verifyNullCont75
- ret void
-
-verifyNullCont78: ; preds = %verifyNullCont75
- br i1 undef, label %"verifyNullCont78.GOTO or IF*4_crit_edge", label %verifyNullCont78.end_crit_edge
-
-"verifyNullCont78.GOTO or IF*4_crit_edge": ; preds = %verifyNullCont78
- br i1 undef, label %verifyNullExit80, label %verifyNullCont81
-
-verifyNullCont78.end_crit_edge: ; preds = %verifyNullCont78
- ret void
-
-verifyNullExit80: ; preds = %"verifyNullCont78.GOTO or IF*4_crit_edge"
- ret void
-
-verifyNullCont81: ; preds = %"verifyNullCont78.GOTO or IF*4_crit_edge"
- %4 = ptrtoint i8* undef to i32 ; <i32> [#uses=2]
- %5 = icmp slt i32 0, %4 ; <i1> [#uses=1]
- br i1 %5, label %verifyNullCont84, label %verifyNullCont172
-
-verifyNullCont84: ; preds = %verifyNullCont81
- br i1 undef, label %"GOTO or IF*2", label %verifyNullCont86
-
-verifyNullCont86: ; preds = %verifyNullCont84
- br i1 undef, label %"true verifyAndComputePtr", label %"false verifyAndComputePtr"
-
-"true verifyAndComputePtr": ; preds = %verifyNullCont86
- br i1 undef, label %"true verifyAndComputePtr89", label %"false verifyAndComputePtr90"
-
-"false verifyAndComputePtr": ; preds = %verifyNullCont86
- ret void
-
-"true verifyAndComputePtr89": ; preds = %"true verifyAndComputePtr"
- br i1 undef, label %"GOTO or IF*6", label %"GOTO or IF*2"
-
-"false verifyAndComputePtr90": ; preds = %"true verifyAndComputePtr"
- ret void
-
-verifyNullCont126: ; preds = %"GOTO or IF*6"
- br i1 undef, label %"true verifyAndComputePtr127", label %"false verifyAndComputePtr128"
-
-"true verifyAndComputePtr127": ; preds = %verifyNullCont126
- br i1 undef, label %"true verifyAndComputePtr131.GOTO or IF*6_crit_edge", label %"GOTO or IF*5"
-
-"false verifyAndComputePtr128": ; preds = %verifyNullCont126
- ret void
-
-"true verifyAndComputePtr131.GOTO or IF*6_crit_edge": ; preds = %"true verifyAndComputePtr127"
- %indvar.next = add i32 %indvar, 1 ; <i32> [#uses=1]
- br label %"GOTO or IF*6"
-
-verifyNullCont172: ; preds = %verifyNullCont81
- unreachable
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/pr3909.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/pr3909.ll
deleted file mode 100644
index 10e328d..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/pr3909.ll
+++ /dev/null
@@ -1,30 +0,0 @@
-; RUN: opt < %s -indvars -disable-output
-; PR 3909
-
-
- type { i32, %1* } ; type %0
- type { i32, i8* } ; type %1
-
-define x86_stdcallcc i32 @_Dmain(%0 %unnamed) {
-entry:
- br label %whilebody
-
-whilebody: ; preds = %endwhile5, %entry
- %i.0 = phi i64 [ 0, %entry ], [ %tmp11, %endwhile5 ] ; <i64> [#uses=1]
- %m.0 = phi i64 [ 0, %entry ], [ %tmp11, %endwhile5 ] ; <i64> [#uses=2]
- %tmp2 = mul i64 %m.0, %m.0 ; <i64> [#uses=1]
- br label %whilecond3
-
-whilecond3: ; preds = %whilebody4, %whilebody
- %j.0 = phi i64 [ %tmp2, %whilebody ], [ %tmp9, %whilebody4 ] ; <i64> [#uses=2]
- %tmp7 = icmp ne i64 %j.0, 0 ; <i1> [#uses=1]
- br i1 %tmp7, label %whilebody4, label %endwhile5
-
-whilebody4: ; preds = %whilecond3
- %tmp9 = add i64 %j.0, 1 ; <i64> [#uses=1]
- br label %whilecond3
-
-endwhile5: ; preds = %whilecond3
- %tmp11 = add i64 %i.0, 1 ; <i64> [#uses=2]
- br label %whilebody
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/scev-aa.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/scev-aa.ll
deleted file mode 100644
index e07aca2..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/scev-aa.ll
+++ /dev/null
@@ -1,194 +0,0 @@
-; RUN: opt < %s -scev-aa -aa-eval -print-all-alias-modref-info \
-; RUN: |& FileCheck %s
-
-; At the time of this writing, -basicaa only misses the example of the form
-; A[i+(j+1)] != A[i+j], which can arise from multi-dimensional array references.
-
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64"
-
-; p[i] and p[i+1] don't alias.
-
-; CHECK: Function: loop: 3 pointers, 0 call sites
-; CHECK: NoAlias: double* %pi, double* %pi.next
-
-define void @loop(double* nocapture %p, i64 %n) nounwind {
-entry:
- %j = icmp sgt i64 %n, 0
- br i1 %j, label %bb, label %return
-
-bb:
- %i = phi i64 [ 0, %entry ], [ %i.next, %bb ]
- %pi = getelementptr double* %p, i64 %i
- %i.next = add i64 %i, 1
- %pi.next = getelementptr double* %p, i64 %i.next
- %x = load double* %pi
- %y = load double* %pi.next
- %z = fmul double %x, %y
- store double %z, double* %pi
- %exitcond = icmp eq i64 %i.next, %n
- br i1 %exitcond, label %return, label %bb
-
-return:
- ret void
-}
-
-; Slightly more involved: p[j][i], p[j][i+1], and p[j+1][i] don't alias.
-
-; CHECK: Function: nestedloop: 4 pointers, 0 call sites
-; CHECK: NoAlias: double* %pi.j, double* %pi.next.j
-; CHECK: NoAlias: double* %pi.j, double* %pi.j.next
-; CHECK: NoAlias: double* %pi.j.next, double* %pi.next.j
-
-define void @nestedloop(double* nocapture %p, i64 %m) nounwind {
-entry:
- %k = icmp sgt i64 %m, 0
- br i1 %k, label %guard, label %return
-
-guard:
- %l = icmp sgt i64 91, 0
- br i1 %l, label %outer.loop, label %return
-
-outer.loop:
- %j = phi i64 [ 0, %guard ], [ %j.next, %outer.latch ]
- br label %bb
-
-bb:
- %i = phi i64 [ 0, %outer.loop ], [ %i.next, %bb ]
- %i.next = add i64 %i, 1
-
- %e = add i64 %i, %j
- %pi.j = getelementptr double* %p, i64 %e
- %f = add i64 %i.next, %j
- %pi.next.j = getelementptr double* %p, i64 %f
- %x = load double* %pi.j
- %y = load double* %pi.next.j
- %z = fmul double %x, %y
- store double %z, double* %pi.j
-
- %o = add i64 %j, 91
- %g = add i64 %i, %o
- %pi.j.next = getelementptr double* %p, i64 %g
- %a = load double* %pi.j.next
- %b = fmul double %x, %a
- store double %b, double* %pi.j.next
-
- %exitcond = icmp eq i64 %i.next, 91
- br i1 %exitcond, label %outer.latch, label %bb
-
-outer.latch:
- %j.next = add i64 %j, 91
- %h = icmp eq i64 %j.next, %m
- br i1 %h, label %return, label %outer.loop
-
-return:
- ret void
-}
-
-; Even more involved: same as nestedloop, but with a variable extent.
-; When n is 1, p[j+1][i] does alias p[j][i+1], and there's no way to
-; prove whether n will be greater than 1, so that relation will always
-; by MayAlias. The loop is guarded by a n > 0 test though, so
-; p[j+1][i] and p[j][i] can theoretically be determined to be NoAlias,
-; however the analysis currently doesn't do that.
-; TODO: Make the analysis smarter and turn that MayAlias into a NoAlias.
-
-; CHECK: Function: nestedloop_more: 4 pointers, 0 call sites
-; CHECK: NoAlias: double* %pi.j, double* %pi.next.j
-; CHECK: MayAlias: double* %pi.j, double* %pi.j.next
-
-define void @nestedloop_more(double* nocapture %p, i64 %n, i64 %m) nounwind {
-entry:
- %k = icmp sgt i64 %m, 0
- br i1 %k, label %guard, label %return
-
-guard:
- %l = icmp sgt i64 %n, 0
- br i1 %l, label %outer.loop, label %return
-
-outer.loop:
- %j = phi i64 [ 0, %guard ], [ %j.next, %outer.latch ]
- br label %bb
-
-bb:
- %i = phi i64 [ 0, %outer.loop ], [ %i.next, %bb ]
- %i.next = add i64 %i, 1
-
- %e = add i64 %i, %j
- %pi.j = getelementptr double* %p, i64 %e
- %f = add i64 %i.next, %j
- %pi.next.j = getelementptr double* %p, i64 %f
- %x = load double* %pi.j
- %y = load double* %pi.next.j
- %z = fmul double %x, %y
- store double %z, double* %pi.j
-
- %o = add i64 %j, %n
- %g = add i64 %i, %o
- %pi.j.next = getelementptr double* %p, i64 %g
- %a = load double* %pi.j.next
- %b = fmul double %x, %a
- store double %b, double* %pi.j.next
-
- %exitcond = icmp eq i64 %i.next, %n
- br i1 %exitcond, label %outer.latch, label %bb
-
-outer.latch:
- %j.next = add i64 %j, %n
- %h = icmp eq i64 %j.next, %m
- br i1 %h, label %return, label %outer.loop
-
-return:
- ret void
-}
-
-; ScalarEvolution expands field offsets into constants, which allows it to
-; do aggressive analysis. Contrast this with BasicAA, which works by
-; recognizing GEP idioms.
-
-%struct.A = type { %struct.B, i32, i32 }
-%struct.B = type { double }
-
-; CHECK: Function: foo: 7 pointers, 0 call sites
-; CHECK: NoAlias: %struct.B* %B, i32* %Z
-; CHECK: NoAlias: %struct.B* %B, %struct.B* %C
-; CHECK: MustAlias: %struct.B* %C, i32* %Z
-; CHECK: NoAlias: %struct.B* %B, i32* %X
-; CHECK: MustAlias: i32* %X, i32* %Z
-; CHECK: MustAlias: %struct.B* %C, i32* %Y
-; CHECK: MustAlias: i32* %X, i32* %Y
-
-define void @foo() {
-entry:
- %A = alloca %struct.A
- %B = getelementptr %struct.A* %A, i32 0, i32 0
- %Q = bitcast %struct.B* %B to %struct.A*
- %Z = getelementptr %struct.A* %Q, i32 0, i32 1
- %C = getelementptr %struct.B* %B, i32 1
- %X = bitcast %struct.B* %C to i32*
- %Y = getelementptr %struct.A* %A, i32 0, i32 1
- ret void
-}
-
-; CHECK: Function: bar: 7 pointers, 0 call sites
-; CHECK: NoAlias: %struct.B* %N, i32* %P
-; CHECK: NoAlias: %struct.B* %N, %struct.B* %R
-; CHECK: MustAlias: %struct.B* %R, i32* %P
-; CHECK: NoAlias: %struct.B* %N, i32* %W
-; CHECK: MustAlias: i32* %P, i32* %W
-; CHECK: MustAlias: %struct.B* %R, i32* %V
-; CHECK: MustAlias: i32* %V, i32* %W
-
-define void @bar() {
- %M = alloca %struct.A
- %N = getelementptr %struct.A* %M, i32 0, i32 0
- %O = bitcast %struct.B* %N to %struct.A*
- %P = getelementptr %struct.A* %O, i32 0, i32 1
- %R = getelementptr %struct.B* %N, i32 1
- %W = bitcast %struct.B* %R to i32*
- %V = getelementptr %struct.A* %M, i32 0, i32 1
- ret void
-}
-
-; CHECK: 13 no alias responses
-; CHECK: 26 may alias responses
-; CHECK: 18 must alias responses
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/sext-inreg.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/sext-inreg.ll
deleted file mode 100644
index 23e1210..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/sext-inreg.ll
+++ /dev/null
@@ -1,30 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution > %t
-; RUN: grep {sext i57 \{0,+,199\}<%bb> to i64} %t | count 1
-; RUN: grep {sext i59 \{0,+,199\}<%bb> to i64} %t | count 1
-
-target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
-target triple = "i386-apple-darwin9.6"
-
-define i64 @foo(i64* nocapture %x, i64 %n) nounwind {
-entry:
- %t0 = icmp sgt i64 %n, 0 ; <i1> [#uses=1]
- br i1 %t0, label %bb, label %return
-
-bb: ; preds = %bb, %entry
- %i.01 = phi i64 [ 0, %entry ], [ %indvar.next, %bb ] ; <i32> [#uses=2]
- %t1 = shl i64 %i.01, 7 ; <i32> [#uses=1]
- %t2 = ashr i64 %t1, 7 ; <i32> [#uses=1]
- %s1 = shl i64 %i.01, 5 ; <i32> [#uses=1]
- %s2 = ashr i64 %s1, 5 ; <i32> [#uses=1]
- %t3 = getelementptr i64* %x, i64 %i.01 ; <i64*> [#uses=1]
- store i64 0, i64* %t3, align 1
- %indvar.next = add i64 %i.01, 199 ; <i32> [#uses=2]
- %exitcond = icmp eq i64 %indvar.next, %n ; <i1> [#uses=1]
- br i1 %exitcond, label %return, label %bb
-
-return: ; preds = %bb, %entry
- %p = phi i64 [ 0, %entry ], [ %t2, %bb ]
- %q = phi i64 [ 0, %entry ], [ %s2, %bb ]
- %v = xor i64 %p, %q
- ret i64 %v
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/sext-iv-0.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/sext-iv-0.ll
deleted file mode 100644
index 2af794f..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/sext-iv-0.ll
+++ /dev/null
@@ -1,31 +0,0 @@
-; RUN: opt < %s -scalar-evolution -analyze \
-; RUN: | grep { --> \{-128,+,1\}<%bb1> Exits: 127} | count 5
-
-; Convert (sext {-128,+,1}) to {sext(-128),+,sext(1)}, since the
-; trip count is within range where this is safe.
-
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
-target triple = "x86_64-unknown-linux-gnu"
-
-define void @foo(double* nocapture %x) nounwind {
-bb1.thread:
- br label %bb1
-
-bb1: ; preds = %bb1, %bb1.thread
- %i.0.reg2mem.0 = phi i64 [ -128, %bb1.thread ], [ %8, %bb1 ] ; <i64> [#uses=3]
- %0 = trunc i64 %i.0.reg2mem.0 to i8 ; <i8> [#uses=1]
- %1 = trunc i64 %i.0.reg2mem.0 to i9 ; <i8> [#uses=1]
- %2 = sext i9 %1 to i64 ; <i64> [#uses=1]
- %3 = getelementptr double* %x, i64 %2 ; <double*> [#uses=1]
- %4 = load double* %3, align 8 ; <double> [#uses=1]
- %5 = fmul double %4, 3.900000e+00 ; <double> [#uses=1]
- %6 = sext i8 %0 to i64 ; <i64> [#uses=1]
- %7 = getelementptr double* %x, i64 %6 ; <double*> [#uses=1]
- store double %5, double* %7, align 8
- %8 = add i64 %i.0.reg2mem.0, 1 ; <i64> [#uses=2]
- %9 = icmp sgt i64 %8, 127 ; <i1> [#uses=1]
- br i1 %9, label %return, label %bb1
-
-return: ; preds = %bb1
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/sext-iv-1.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/sext-iv-1.ll
deleted file mode 100644
index 9063cbb..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/sext-iv-1.ll
+++ /dev/null
@@ -1,100 +0,0 @@
-; RUN: opt < %s -scalar-evolution -analyze \
-; RUN: | grep { --> (sext i. \{.\*,+,.\*\}<%bb1> to i64)} | count 5
-
-; Don't convert (sext {...,+,...}) to {sext(...),+,sext(...)} in cases
-; where the trip count is not within range.
-
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
-target triple = "x86_64-unknown-linux-gnu"
-
-define void @foo0(double* nocapture %x) nounwind {
-bb1.thread:
- br label %bb1
-
-bb1: ; preds = %bb1, %bb1.thread
- %i.0.reg2mem.0 = phi i64 [ -128, %bb1.thread ], [ %8, %bb1 ] ; <i64> [#uses=3]
- %0 = trunc i64 %i.0.reg2mem.0 to i7 ; <i8> [#uses=1]
- %1 = trunc i64 %i.0.reg2mem.0 to i9 ; <i8> [#uses=1]
- %2 = sext i9 %1 to i64 ; <i64> [#uses=1]
- %3 = getelementptr double* %x, i64 %2 ; <double*> [#uses=1]
- %4 = load double* %3, align 8 ; <double> [#uses=1]
- %5 = fmul double %4, 3.900000e+00 ; <double> [#uses=1]
- %6 = sext i7 %0 to i64 ; <i64> [#uses=1]
- %7 = getelementptr double* %x, i64 %6 ; <double*> [#uses=1]
- store double %5, double* %7, align 8
- %8 = add i64 %i.0.reg2mem.0, 1 ; <i64> [#uses=2]
- %9 = icmp sgt i64 %8, 127 ; <i1> [#uses=1]
- br i1 %9, label %return, label %bb1
-
-return: ; preds = %bb1
- ret void
-}
-
-define void @foo1(double* nocapture %x) nounwind {
-bb1.thread:
- br label %bb1
-
-bb1: ; preds = %bb1, %bb1.thread
- %i.0.reg2mem.0 = phi i64 [ -128, %bb1.thread ], [ %8, %bb1 ] ; <i64> [#uses=3]
- %0 = trunc i64 %i.0.reg2mem.0 to i8 ; <i8> [#uses=1]
- %1 = trunc i64 %i.0.reg2mem.0 to i9 ; <i8> [#uses=1]
- %2 = sext i9 %1 to i64 ; <i64> [#uses=1]
- %3 = getelementptr double* %x, i64 %2 ; <double*> [#uses=1]
- %4 = load double* %3, align 8 ; <double> [#uses=1]
- %5 = fmul double %4, 3.900000e+00 ; <double> [#uses=1]
- %6 = sext i8 %0 to i64 ; <i64> [#uses=1]
- %7 = getelementptr double* %x, i64 %6 ; <double*> [#uses=1]
- store double %5, double* %7, align 8
- %8 = add i64 %i.0.reg2mem.0, 1 ; <i64> [#uses=2]
- %9 = icmp sgt i64 %8, 128 ; <i1> [#uses=1]
- br i1 %9, label %return, label %bb1
-
-return: ; preds = %bb1
- ret void
-}
-
-define void @foo2(double* nocapture %x) nounwind {
-bb1.thread:
- br label %bb1
-
-bb1: ; preds = %bb1, %bb1.thread
- %i.0.reg2mem.0 = phi i64 [ -129, %bb1.thread ], [ %8, %bb1 ] ; <i64> [#uses=3]
- %0 = trunc i64 %i.0.reg2mem.0 to i8 ; <i8> [#uses=1]
- %1 = trunc i64 %i.0.reg2mem.0 to i9 ; <i8> [#uses=1]
- %2 = sext i9 %1 to i64 ; <i64> [#uses=1]
- %3 = getelementptr double* %x, i64 %2 ; <double*> [#uses=1]
- %4 = load double* %3, align 8 ; <double> [#uses=1]
- %5 = fmul double %4, 3.900000e+00 ; <double> [#uses=1]
- %6 = sext i8 %0 to i64 ; <i64> [#uses=1]
- %7 = getelementptr double* %x, i64 %6 ; <double*> [#uses=1]
- store double %5, double* %7, align 8
- %8 = add i64 %i.0.reg2mem.0, 1 ; <i64> [#uses=2]
- %9 = icmp sgt i64 %8, 127 ; <i1> [#uses=1]
- br i1 %9, label %return, label %bb1
-
-return: ; preds = %bb1
- ret void
-}
-
-define void @foo3(double* nocapture %x) nounwind {
-bb1.thread:
- br label %bb1
-
-bb1: ; preds = %bb1, %bb1.thread
- %i.0.reg2mem.0 = phi i64 [ -128, %bb1.thread ], [ %8, %bb1 ] ; <i64> [#uses=3]
- %0 = trunc i64 %i.0.reg2mem.0 to i8 ; <i8> [#uses=1]
- %1 = trunc i64 %i.0.reg2mem.0 to i9 ; <i8> [#uses=1]
- %2 = sext i9 %1 to i64 ; <i64> [#uses=1]
- %3 = getelementptr double* %x, i64 %2 ; <double*> [#uses=1]
- %4 = load double* %3, align 8 ; <double> [#uses=1]
- %5 = fmul double %4, 3.900000e+00 ; <double> [#uses=1]
- %6 = sext i8 %0 to i64 ; <i64> [#uses=1]
- %7 = getelementptr double* %x, i64 %6 ; <double*> [#uses=1]
- store double %5, double* %7, align 8
- %8 = add i64 %i.0.reg2mem.0, -1 ; <i64> [#uses=2]
- %9 = icmp sgt i64 %8, 127 ; <i1> [#uses=1]
- br i1 %9, label %return, label %bb1
-
-return: ; preds = %bb1
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/sext-iv-2.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/sext-iv-2.ll
deleted file mode 100644
index 97e252c..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/sext-iv-2.ll
+++ /dev/null
@@ -1,74 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s
-
-; CHECK: %tmp3 = sext i8 %tmp2 to i32
-; CHECK: --> (sext i8 {0,+,1}<%bb1> to i32) Exits: -1
-; CHECK: %tmp4 = mul i32 %tmp3, %i.02
-; CHECK: --> ((sext i8 {0,+,1}<%bb1> to i32) * {0,+,1}<%bb>) Exits: {0,+,-1}<%bb>
-
-; These sexts are not foldable.
-
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64"
-
- at table = common global [32 x [256 x i32]] zeroinitializer, align 32 ; <[32 x [256 x i32]]*> [#uses=2]
-
-define i32 @main() nounwind {
-entry:
- br i1 false, label %bb5, label %bb.nph3
-
-bb.nph3: ; preds = %entry
- br label %bb
-
-bb: ; preds = %bb4, %bb.nph3
- %i.02 = phi i32 [ %tmp10, %bb4 ], [ 0, %bb.nph3 ] ; <i32> [#uses=3]
- br i1 false, label %bb3, label %bb.nph
-
-bb.nph: ; preds = %bb
- br label %bb1
-
-bb1: ; preds = %bb2, %bb.nph
- %j.01 = phi i32 [ %tmp8, %bb2 ], [ 0, %bb.nph ] ; <i32> [#uses=3]
- %tmp2 = trunc i32 %j.01 to i8 ; <i8> [#uses=1]
- %tmp3 = sext i8 %tmp2 to i32 ; <i32> [#uses=1]
- %tmp4 = mul i32 %tmp3, %i.02 ; <i32> [#uses=1]
- %tmp5 = sext i32 %i.02 to i64 ; <i64> [#uses=1]
- %tmp6 = sext i32 %j.01 to i64 ; <i64> [#uses=1]
- %tmp7 = getelementptr [32 x [256 x i32]]* @table, i64 0, i64 %tmp5, i64 %tmp6 ; <i32*> [#uses=1]
- store i32 %tmp4, i32* %tmp7, align 4
- %tmp8 = add i32 %j.01, 1 ; <i32> [#uses=2]
- br label %bb2
-
-bb2: ; preds = %bb1
- %phitmp1 = icmp sgt i32 %tmp8, 255 ; <i1> [#uses=1]
- br i1 %phitmp1, label %bb2.bb3_crit_edge, label %bb1
-
-bb2.bb3_crit_edge: ; preds = %bb2
- br label %bb3
-
-bb3: ; preds = %bb2.bb3_crit_edge, %bb
- %tmp10 = add i32 %i.02, 1 ; <i32> [#uses=2]
- br label %bb4
-
-bb4: ; preds = %bb3
- %phitmp = icmp sgt i32 %tmp10, 31 ; <i1> [#uses=1]
- br i1 %phitmp, label %bb4.bb5_crit_edge, label %bb
-
-bb4.bb5_crit_edge: ; preds = %bb4
- br label %bb5
-
-bb5: ; preds = %bb4.bb5_crit_edge, %entry
- %tmp12 = load i32* getelementptr ([32 x [256 x i32]]* @table, i64 0, i64 9, i64 132), align 16 ; <i32> [#uses=1]
- %tmp13 = icmp eq i32 %tmp12, -1116 ; <i1> [#uses=1]
- br i1 %tmp13, label %bb7, label %bb6
-
-bb6: ; preds = %bb5
- call void @abort() noreturn nounwind
- unreachable
-
-bb7: ; preds = %bb5
- br label %return
-
-return: ; preds = %bb7
- ret i32 0
-}
-
-declare void @abort() noreturn nounwind
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/smax.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/smax.ll
deleted file mode 100644
index 15dd744..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/smax.ll
+++ /dev/null
@@ -1,12 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution | grep smax | count 2
-; RUN: opt < %s -analyze -scalar-evolution | grep \
-; RUN: {%. smax %. smax %.}
-; PR1614
-
-define i32 @x(i32 %a, i32 %b, i32 %c) {
- %A = icmp sgt i32 %a, %b
- %B = select i1 %A, i32 %a, i32 %b
- %C = icmp sle i32 %c, %B
- %D = select i1 %C, i32 %B, i32 %c
- ret i32 %D
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count.ll
deleted file mode 100644
index d750d4a..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count.ll
+++ /dev/null
@@ -1,29 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution \
-; RUN: -scalar-evolution-max-iterations=0 | grep {backedge-taken count is 10000}
-; PR1101
-
- at A = weak global [1000 x i32] zeroinitializer, align 32
-
-
-define void @test(i32 %N) {
-entry:
- "alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
- br label %bb3
-
-bb: ; preds = %bb3
- %tmp = getelementptr [1000 x i32]* @A, i32 0, i32 %i.0 ; <i32*> [#uses=1]
- store i32 123, i32* %tmp
- %tmp2 = add i32 %i.0, 1 ; <i32> [#uses=1]
- br label %bb3
-
-bb3: ; preds = %bb, %entry
- %i.0 = phi i32 [ 0, %entry ], [ %tmp2, %bb ] ; <i32> [#uses=3]
- %tmp3 = icmp sle i32 %i.0, 9999 ; <i1> [#uses=1]
- br i1 %tmp3, label %bb, label %bb5
-
-bb5: ; preds = %bb3
- br label %return
-
-return: ; preds = %bb5
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count10.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count10.ll
deleted file mode 100644
index 0a992f9..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count10.ll
+++ /dev/null
@@ -1,76 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s
-
-; Trip counts with trivial exit conditions.
-
-; CHECK: Determining loop execution counts for: @a
-; CHECK: Loop %loop: Unpredictable backedge-taken count.
-; CHECK: Loop %loop: Unpredictable max backedge-taken count.
-
-; CHECK: Determining loop execution counts for: @b
-; CHECK: Loop %loop: backedge-taken count is false
-; CHECK: Loop %loop: max backedge-taken count is false
-
-; CHECK: Determining loop execution counts for: @c
-; CHECK: Loop %loop: backedge-taken count is false
-; CHECK: Loop %loop: max backedge-taken count is false
-
-; CHECK: Determining loop execution counts for: @d
-; CHECK: Loop %loop: Unpredictable backedge-taken count.
-; CHECK: Loop %loop: Unpredictable max backedge-taken count.
-
-define void @a(i64 %n) nounwind {
-entry:
- %t0 = icmp sgt i64 %n, 0
- br i1 %t0, label %loop, label %return
-
-loop:
- %i = phi i64 [ %i.next, %loop ], [ 0, %entry ]
- %i.next = add nsw i64 %i, 1
- %exitcond = icmp eq i64 %i.next, %n
- br i1 false, label %return, label %loop
-
-return:
- ret void
-}
-define void @b(i64 %n) nounwind {
-entry:
- %t0 = icmp sgt i64 %n, 0
- br i1 %t0, label %loop, label %return
-
-loop:
- %i = phi i64 [ %i.next, %loop ], [ 0, %entry ]
- %i.next = add nsw i64 %i, 1
- %exitcond = icmp eq i64 %i.next, %n
- br i1 true, label %return, label %loop
-
-return:
- ret void
-}
-define void @c(i64 %n) nounwind {
-entry:
- %t0 = icmp sgt i64 %n, 0
- br i1 %t0, label %loop, label %return
-
-loop:
- %i = phi i64 [ %i.next, %loop ], [ 0, %entry ]
- %i.next = add nsw i64 %i, 1
- %exitcond = icmp eq i64 %i.next, %n
- br i1 false, label %loop, label %return
-
-return:
- ret void
-}
-define void @d(i64 %n) nounwind {
-entry:
- %t0 = icmp sgt i64 %n, 0
- br i1 %t0, label %loop, label %return
-
-loop:
- %i = phi i64 [ %i.next, %loop ], [ 0, %entry ]
- %i.next = add nsw i64 %i, 1
- %exitcond = icmp eq i64 %i.next, %n
- br i1 true, label %loop, label %return
-
-return:
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count2.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count2.ll
deleted file mode 100644
index 79f3161..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count2.ll
+++ /dev/null
@@ -1,35 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution | \
-; RUN: grep {backedge-taken count is 4}
-; PR1101
-
- at A = weak global [1000 x i32] zeroinitializer, align 32
-
-
-define void @test(i32 %N) {
-entry:
- "alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
- br label %bb3
-
-bb: ; preds = %bb3
- %tmp = getelementptr [1000 x i32]* @A, i32 0, i32 %i.0 ; <i32*> [#uses=1]
- store i32 123, i32* %tmp
- %tmp4 = mul i32 %i.0, 4 ; <i32> [#uses=1]
- %tmp5 = or i32 %tmp4, 1
- %tmp61 = xor i32 %tmp5, -2147483648
- %tmp6 = trunc i32 %tmp61 to i16
- %tmp71 = shl i16 %tmp6, 2
- %tmp7 = zext i16 %tmp71 to i32
- %tmp2 = add i32 %tmp7, %i.0
- br label %bb3
-
-bb3: ; preds = %bb, %entry
- %i.0 = phi i32 [ 0, %entry ], [ %tmp2, %bb ] ; <i32> [#uses=3]
- %tmp3 = icmp sle i32 %i.0, 9999 ; <i1> [#uses=1]
- br i1 %tmp3, label %bb, label %bb5
-
-bb5: ; preds = %bb3
- br label %return
-
-return: ; preds = %bb5
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count3.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count3.ll
deleted file mode 100644
index 10b798b..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count3.ll
+++ /dev/null
@@ -1,78 +0,0 @@
-; RUN: opt < %s -scalar-evolution -analyze \
-; RUN: | grep {Loop %bb3\\.i: Unpredictable backedge-taken count\\.}
-
-; ScalarEvolution can't compute a trip count because it doesn't know if
-; dividing by the stride will have a remainder. This could theoretically
-; be teaching it how to use a more elaborate trip count computation.
-
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
-target triple = "x86_64-unknown-linux-gnu"
- %struct.FILE = type { i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, %struct._IO_marker*, %struct.FILE*, i32, i32, i64, i16, i8, [1 x i8], i8*, i64, i8*, i8*, i8*, i8*, i64, i32, [20 x i8] }
- %struct.SHA_INFO = type { [5 x i32], i32, i32, [16 x i32] }
- %struct._IO_marker = type { %struct._IO_marker*, %struct.FILE*, i32 }
- at _2E_str = external constant [26 x i8] ; <[26 x i8]*> [#uses=0]
- at stdin = external global %struct.FILE* ; <%struct.FILE**> [#uses=0]
- at _2E_str1 = external constant [3 x i8] ; <[3 x i8]*> [#uses=0]
- at _2E_str12 = external constant [30 x i8] ; <[30 x i8]*> [#uses=0]
-
-declare void @sha_init(%struct.SHA_INFO* nocapture) nounwind
-
-declare fastcc void @sha_transform(%struct.SHA_INFO* nocapture) nounwind
-
-declare void @sha_print(%struct.SHA_INFO* nocapture) nounwind
-
-declare i32 @printf(i8* nocapture, ...) nounwind
-
-declare void @sha_final(%struct.SHA_INFO* nocapture) nounwind
-
-declare void @llvm.memset.i64(i8* nocapture, i8, i64, i32) nounwind
-
-declare void @sha_update(%struct.SHA_INFO* nocapture, i8* nocapture, i32) nounwind
-
-declare void @llvm.memcpy.i64(i8* nocapture, i8* nocapture, i64, i32) nounwind
-
-declare i64 @fread(i8* noalias nocapture, i64, i64, %struct.FILE* noalias nocapture) nounwind
-
-declare i32 @main(i32, i8** nocapture) nounwind
-
-declare noalias %struct.FILE* @fopen(i8* noalias nocapture, i8* noalias nocapture) nounwind
-
-declare i32 @fclose(%struct.FILE* nocapture) nounwind
-
-declare void @sha_stream(%struct.SHA_INFO* nocapture, %struct.FILE* nocapture) nounwind
-
-define void @sha_stream_bb3_2E_i(%struct.SHA_INFO* %sha_info, i8* %data1, i32, i8** %buffer_addr.0.i.out, i32* %count_addr.0.i.out) nounwind {
-newFuncRoot:
- br label %bb3.i
-
-sha_update.exit.exitStub: ; preds = %bb3.i
- store i8* %buffer_addr.0.i, i8** %buffer_addr.0.i.out
- store i32 %count_addr.0.i, i32* %count_addr.0.i.out
- ret void
-
-bb2.i: ; preds = %bb3.i
- %1 = getelementptr %struct.SHA_INFO* %sha_info, i64 0, i32 3 ; <[16 x i32]*> [#uses=1]
- %2 = bitcast [16 x i32]* %1 to i8* ; <i8*> [#uses=1]
- call void @llvm.memcpy.i64(i8* %2, i8* %buffer_addr.0.i, i64 64, i32 1) nounwind
- %3 = getelementptr %struct.SHA_INFO* %sha_info, i64 0, i32 3, i64 0 ; <i32*> [#uses=1]
- %4 = bitcast i32* %3 to i8* ; <i8*> [#uses=1]
- br label %codeRepl
-
-codeRepl: ; preds = %bb2.i
- call void @sha_stream_bb3_2E_i_bb1_2E_i_2E_i(i8* %4)
- br label %byte_reverse.exit.i
-
-byte_reverse.exit.i: ; preds = %codeRepl
- call fastcc void @sha_transform(%struct.SHA_INFO* %sha_info) nounwind
- %5 = getelementptr i8* %buffer_addr.0.i, i64 64 ; <i8*> [#uses=1]
- %6 = add i32 %count_addr.0.i, -64 ; <i32> [#uses=1]
- br label %bb3.i
-
-bb3.i: ; preds = %byte_reverse.exit.i, %newFuncRoot
- %buffer_addr.0.i = phi i8* [ %data1, %newFuncRoot ], [ %5, %byte_reverse.exit.i ] ; <i8*> [#uses=3]
- %count_addr.0.i = phi i32 [ %0, %newFuncRoot ], [ %6, %byte_reverse.exit.i ] ; <i32> [#uses=3]
- %7 = icmp sgt i32 %count_addr.0.i, 63 ; <i1> [#uses=1]
- br i1 %7, label %bb2.i, label %sha_update.exit.exitStub
-}
-
-declare void @sha_stream_bb3_2E_i_bb1_2E_i_2E_i(i8*) nounwind
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count4.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count4.ll
deleted file mode 100644
index 116f62d..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count4.ll
+++ /dev/null
@@ -1,24 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution \
-; RUN: | grep {sext.*trunc.*Exits: 11}
-
-; ScalarEvolution should be able to compute a loop exit value for %indvar.i8.
-
-define void @another_count_down_signed(double* %d, i64 %n) nounwind {
-entry:
- br label %loop
-
-loop: ; preds = %loop, %entry
- %indvar = phi i64 [ %n, %entry ], [ %indvar.next, %loop ] ; <i64> [#uses=4]
- %s0 = shl i64 %indvar, 8 ; <i64> [#uses=1]
- %indvar.i8 = ashr i64 %s0, 8 ; <i64> [#uses=1]
- %t0 = getelementptr double* %d, i64 %indvar.i8 ; <double*> [#uses=2]
- %t1 = load double* %t0 ; <double> [#uses=1]
- %t2 = fmul double %t1, 1.000000e-01 ; <double> [#uses=1]
- store double %t2, double* %t0
- %indvar.next = sub i64 %indvar, 1 ; <i64> [#uses=2]
- %exitcond = icmp eq i64 %indvar.next, 10 ; <i1> [#uses=1]
- br i1 %exitcond, label %return, label %loop
-
-return: ; preds = %loop
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count5.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count5.ll
deleted file mode 100644
index 1194a1d..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count5.ll
+++ /dev/null
@@ -1,48 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution > %t
-; RUN: grep sext %t | count 2
-; RUN: not grep {(sext} %t
-
-; ScalarEvolution should be able to compute a maximum trip count
-; value sufficient to fold away both sext casts.
-
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
-
-define float @t(float* %pTmp1, float* %peakWeight, float* %nrgReducePeakrate, i32 %bim) nounwind {
-entry:
- %tmp3 = load float* %peakWeight, align 4 ; <float> [#uses=2]
- %tmp2538 = icmp sgt i32 %bim, 0 ; <i1> [#uses=1]
- br i1 %tmp2538, label %bb.nph, label %bb4
-
-bb.nph: ; preds = %entry
- br label %bb
-
-bb: ; preds = %bb1, %bb.nph
- %distERBhi.036 = phi float [ %tmp10, %bb1 ], [ 0.000000e+00, %bb.nph ] ; <float> [#uses=1]
- %hiPart.035 = phi i32 [ %tmp12, %bb1 ], [ 0, %bb.nph ] ; <i32> [#uses=2]
- %peakCount.034 = phi float [ %tmp19, %bb1 ], [ %tmp3, %bb.nph ] ; <float> [#uses=1]
- %tmp6 = sext i32 %hiPart.035 to i64 ; <i64> [#uses=1]
- %tmp7 = getelementptr float* %pTmp1, i64 %tmp6 ; <float*> [#uses=1]
- %tmp8 = load float* %tmp7, align 4 ; <float> [#uses=1]
- %tmp10 = fadd float %tmp8, %distERBhi.036 ; <float> [#uses=3]
- %tmp12 = add i32 %hiPart.035, 1 ; <i32> [#uses=3]
- %tmp15 = sext i32 %tmp12 to i64 ; <i64> [#uses=1]
- %tmp16 = getelementptr float* %peakWeight, i64 %tmp15 ; <float*> [#uses=1]
- %tmp17 = load float* %tmp16, align 4 ; <float> [#uses=1]
- %tmp19 = fadd float %tmp17, %peakCount.034 ; <float> [#uses=2]
- br label %bb1
-
-bb1: ; preds = %bb
- %tmp21 = fcmp olt float %tmp10, 2.500000e+00 ; <i1> [#uses=1]
- %tmp25 = icmp slt i32 %tmp12, %bim ; <i1> [#uses=1]
- %tmp27 = and i1 %tmp21, %tmp25 ; <i1> [#uses=1]
- br i1 %tmp27, label %bb, label %bb1.bb4_crit_edge
-
-bb1.bb4_crit_edge: ; preds = %bb1
- br label %bb4
-
-bb4: ; preds = %bb1.bb4_crit_edge, %entry
- %distERBhi.0.lcssa = phi float [ %tmp10, %bb1.bb4_crit_edge ], [ 0.000000e+00, %entry ] ; <float> [#uses=1]
- %peakCount.0.lcssa = phi float [ %tmp19, %bb1.bb4_crit_edge ], [ %tmp3, %entry ] ; <float> [#uses=1]
- %tmp31 = fdiv float %peakCount.0.lcssa, %distERBhi.0.lcssa ; <float> [#uses=1]
- ret float %tmp31
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count6.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count6.ll
deleted file mode 100644
index 956fb81..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count6.ll
+++ /dev/null
@@ -1,37 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution \
-; RUN: | grep {max backedge-taken count is 1\$}
-
- at mode_table = global [4 x i32] zeroinitializer ; <[4 x i32]*> [#uses=1]
-
-define i8 @f() {
-entry:
- tail call i32 @fegetround( ) ; <i32>:0 [#uses=1]
- br label %bb
-
-bb: ; preds = %bb4, %entry
- %mode.0 = phi i8 [ 0, %entry ], [ %indvar.next, %bb4 ] ; <i8> [#uses=4]
- zext i8 %mode.0 to i32 ; <i32>:1 [#uses=1]
- getelementptr [4 x i32]* @mode_table, i32 0, i32 %1 ; <i32*>:2 [#uses=1]
- load i32* %2, align 4 ; <i32>:3 [#uses=1]
- icmp eq i32 %3, %0 ; <i1>:4 [#uses=1]
- br i1 %4, label %bb1, label %bb2
-
-bb1: ; preds = %bb
- ret i8 %mode.0
-
-bb2: ; preds = %bb
- icmp eq i8 %mode.0, 1 ; <i1>:5 [#uses=1]
- br i1 %5, label %bb5, label %bb4
-
-bb4: ; preds = %bb2
- %indvar.next = add i8 %mode.0, 1 ; <i8> [#uses=1]
- br label %bb
-
-bb5: ; preds = %bb2
- tail call void @raise_exception( ) noreturn
- unreachable
-}
-
-declare i32 @fegetround()
-
-declare void @raise_exception() noreturn
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count7.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count7.ll
deleted file mode 100644
index a8b797e..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count7.ll
+++ /dev/null
@@ -1,150 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution \
-; RUN: | grep {Loop %bb7.i: Unpredictable backedge-taken count\\.}
-
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
-
- %struct.complex = type { float, float }
- %struct.element = type { i32, i32 }
- %struct.node = type { %struct.node*, %struct.node*, i32 }
- at seed = external global i64 ; <i64*> [#uses=0]
- at _2E_str = external constant [18 x i8], align 1 ; <[18 x i8]*> [#uses=0]
- at _2E_str1 = external constant [4 x i8], align 1 ; <[4 x i8]*> [#uses=0]
- at value = external global float ; <float*> [#uses=0]
- at fixed = external global float ; <float*> [#uses=0]
- at floated = external global float ; <float*> [#uses=0]
- at permarray = external global [11 x i32], align 32 ; <[11 x i32]*> [#uses=0]
- at pctr = external global i32 ; <i32*> [#uses=0]
- at tree = external global %struct.node* ; <%struct.node**> [#uses=0]
- at stack = external global [4 x i32], align 16 ; <[4 x i32]*> [#uses=0]
- at cellspace = external global [19 x %struct.element], align 32 ; <[19 x %struct.element]*> [#uses=0]
- at freelist = external global i32 ; <i32*> [#uses=0]
- at movesdone = external global i32 ; <i32*> [#uses=0]
- at ima = external global [41 x [41 x i32]], align 32 ; <[41 x [41 x i32]]*> [#uses=0]
- at imb = external global [41 x [41 x i32]], align 32 ; <[41 x [41 x i32]]*> [#uses=0]
- at imr = external global [41 x [41 x i32]], align 32 ; <[41 x [41 x i32]]*> [#uses=0]
- at rma = external global [41 x [41 x float]], align 32 ; <[41 x [41 x float]]*> [#uses=0]
- at rmb = external global [41 x [41 x float]], align 32 ; <[41 x [41 x float]]*> [#uses=0]
- at rmr = external global [41 x [41 x float]], align 32 ; <[41 x [41 x float]]*> [#uses=0]
- at piececount = external global [4 x i32], align 16 ; <[4 x i32]*> [#uses=0]
- at class = external global [13 x i32], align 32 ; <[13 x i32]*> [#uses=0]
- at piecemax = external global [13 x i32], align 32 ; <[13 x i32]*> [#uses=0]
- at puzzl = external global [512 x i32], align 32 ; <[512 x i32]*> [#uses=0]
- at p = external global [13 x [512 x i32]], align 32 ; <[13 x [512 x i32]]*> [#uses=0]
- at n = external global i32 ; <i32*> [#uses=0]
- at kount = external global i32 ; <i32*> [#uses=0]
- at sortlist = external global [5001 x i32], align 32 ; <[5001 x i32]*> [#uses=0]
- at biggest = external global i32 ; <i32*> [#uses=0]
- at littlest = external global i32 ; <i32*> [#uses=0]
- at top = external global i32 ; <i32*> [#uses=0]
- at z = external global [257 x %struct.complex], align 32 ; <[257 x %struct.complex]*> [#uses=0]
- at w = external global [257 x %struct.complex], align 32 ; <[257 x %struct.complex]*> [#uses=0]
- at e = external global [130 x %struct.complex], align 32 ; <[130 x %struct.complex]*> [#uses=0]
- at zr = external global float ; <float*> [#uses=0]
- at zi = external global float ; <float*> [#uses=0]
-
-declare void @Initrand() nounwind
-
-declare i32 @Rand() nounwind
-
-declare void @Try(i32, i32*, i32*, i32*, i32*, i32*) nounwind
-
-declare i32 @puts(i8* nocapture) nounwind
-
-declare void @Queens(i32) nounwind
-
-declare i32 @printf(i8* nocapture, ...) nounwind
-
-declare i32 @main() nounwind
-
-declare void @Doit() nounwind
-
-declare void @Doit_bb7([15 x i32]*, [17 x i32]*, [9 x i32]*) nounwind
-
-define void @Doit_bb7_2E_i([9 x i32]* %x1, [15 x i32]* %c, [17 x i32]* %b, [9 x i32]* %a, i32* %q, i32* %x1.sub, i32* %b9, i32* %a10, i32* %c11) nounwind {
-newFuncRoot:
- br label %bb7.i
-
-Try.exit.exitStub: ; preds = %bb7.i
- ret void
-
-bb.i: ; preds = %bb7.i
- %tmp = add i32 %j.0.i, 1 ; <i32> [#uses=5]
- store i32 0, i32* %q, align 4
- %tmp1 = sext i32 %tmp to i64 ; <i64> [#uses=1]
- %tmp2 = getelementptr [9 x i32]* %a, i64 0, i64 %tmp1 ; <i32*> [#uses=1]
- %tmp3 = load i32* %tmp2, align 4 ; <i32> [#uses=1]
- %tmp4 = icmp eq i32 %tmp3, 0 ; <i1> [#uses=1]
- br i1 %tmp4, label %bb.i.bb7.i.backedge_crit_edge, label %bb1.i
-
-bb1.i: ; preds = %bb.i
- %tmp5 = add i32 %j.0.i, 2 ; <i32> [#uses=1]
- %tmp6 = sext i32 %tmp5 to i64 ; <i64> [#uses=1]
- %tmp7 = getelementptr [17 x i32]* %b, i64 0, i64 %tmp6 ; <i32*> [#uses=1]
- %tmp8 = load i32* %tmp7, align 4 ; <i32> [#uses=1]
- %tmp9 = icmp eq i32 %tmp8, 0 ; <i1> [#uses=1]
- br i1 %tmp9, label %bb1.i.bb7.i.backedge_crit_edge, label %bb2.i
-
-bb2.i: ; preds = %bb1.i
- %tmp10 = sub i32 7, %j.0.i ; <i32> [#uses=1]
- %tmp11 = sext i32 %tmp10 to i64 ; <i64> [#uses=1]
- %tmp12 = getelementptr [15 x i32]* %c, i64 0, i64 %tmp11 ; <i32*> [#uses=1]
- %tmp13 = load i32* %tmp12, align 4 ; <i32> [#uses=1]
- %tmp14 = icmp eq i32 %tmp13, 0 ; <i1> [#uses=1]
- br i1 %tmp14, label %bb2.i.bb7.i.backedge_crit_edge, label %bb3.i
-
-bb3.i: ; preds = %bb2.i
- %tmp15 = getelementptr [9 x i32]* %x1, i64 0, i64 1 ; <i32*> [#uses=1]
- store i32 %tmp, i32* %tmp15, align 4
- %tmp16 = sext i32 %tmp to i64 ; <i64> [#uses=1]
- %tmp17 = getelementptr [9 x i32]* %a, i64 0, i64 %tmp16 ; <i32*> [#uses=1]
- store i32 0, i32* %tmp17, align 4
- %tmp18 = add i32 %j.0.i, 2 ; <i32> [#uses=1]
- %tmp19 = sext i32 %tmp18 to i64 ; <i64> [#uses=1]
- %tmp20 = getelementptr [17 x i32]* %b, i64 0, i64 %tmp19 ; <i32*> [#uses=1]
- store i32 0, i32* %tmp20, align 4
- %tmp21 = sub i32 7, %j.0.i ; <i32> [#uses=1]
- %tmp22 = sext i32 %tmp21 to i64 ; <i64> [#uses=1]
- %tmp23 = getelementptr [15 x i32]* %c, i64 0, i64 %tmp22 ; <i32*> [#uses=1]
- store i32 0, i32* %tmp23, align 4
- call void @Try(i32 2, i32* %q, i32* %b9, i32* %a10, i32* %c11, i32* %x1.sub) nounwind
- %tmp24 = load i32* %q, align 4 ; <i32> [#uses=1]
- %tmp25 = icmp eq i32 %tmp24, 0 ; <i1> [#uses=1]
- br i1 %tmp25, label %bb5.i, label %bb3.i.bb7.i.backedge_crit_edge
-
-bb5.i: ; preds = %bb3.i
- %tmp26 = sext i32 %tmp to i64 ; <i64> [#uses=1]
- %tmp27 = getelementptr [9 x i32]* %a, i64 0, i64 %tmp26 ; <i32*> [#uses=1]
- store i32 1, i32* %tmp27, align 4
- %tmp28 = add i32 %j.0.i, 2 ; <i32> [#uses=1]
- %tmp29 = sext i32 %tmp28 to i64 ; <i64> [#uses=1]
- %tmp30 = getelementptr [17 x i32]* %b, i64 0, i64 %tmp29 ; <i32*> [#uses=1]
- store i32 1, i32* %tmp30, align 4
- %tmp31 = sub i32 7, %j.0.i ; <i32> [#uses=1]
- %tmp32 = sext i32 %tmp31 to i64 ; <i64> [#uses=1]
- %tmp33 = getelementptr [15 x i32]* %c, i64 0, i64 %tmp32 ; <i32*> [#uses=1]
- store i32 1, i32* %tmp33, align 4
- br label %bb7.i.backedge
-
-bb7.i.backedge: ; preds = %bb3.i.bb7.i.backedge_crit_edge, %bb2.i.bb7.i.backedge_crit_edge, %bb1.i.bb7.i.backedge_crit_edge, %bb.i.bb7.i.backedge_crit_edge, %bb5.i
- br label %bb7.i
-
-bb7.i: ; preds = %bb7.i.backedge, %newFuncRoot
- %j.0.i = phi i32 [ 0, %newFuncRoot ], [ %tmp, %bb7.i.backedge ] ; <i32> [#uses=8]
- %tmp34 = load i32* %q, align 4 ; <i32> [#uses=1]
- %tmp35 = icmp eq i32 %tmp34, 0 ; <i1> [#uses=1]
- %tmp36 = icmp ne i32 %j.0.i, 8 ; <i1> [#uses=1]
- %tmp37 = and i1 %tmp35, %tmp36 ; <i1> [#uses=1]
- br i1 %tmp37, label %bb.i, label %Try.exit.exitStub
-
-bb.i.bb7.i.backedge_crit_edge: ; preds = %bb.i
- br label %bb7.i.backedge
-
-bb1.i.bb7.i.backedge_crit_edge: ; preds = %bb1.i
- br label %bb7.i.backedge
-
-bb2.i.bb7.i.backedge_crit_edge: ; preds = %bb2.i
- br label %bb7.i.backedge
-
-bb3.i.bb7.i.backedge_crit_edge: ; preds = %bb3.i
- br label %bb7.i.backedge
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count8.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count8.ll
deleted file mode 100644
index ac5ee60..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count8.ll
+++ /dev/null
@@ -1,37 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution \
-; RUN: | grep {Loop %for\\.body: backedge-taken count is (-1 + \[%\]ecx)}
-; PR4599
-
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
-
-define i32 @foo(i32 %ecx) nounwind {
-entry:
- %cmp2 = icmp eq i32 %ecx, 0 ; <i1> [#uses=1]
- br i1 %cmp2, label %for.end, label %bb.nph
-
-for.cond: ; preds = %for.inc
- %cmp = icmp ult i32 %inc, %ecx ; <i1> [#uses=1]
- br i1 %cmp, label %for.body, label %for.cond.for.end_crit_edge
-
-for.cond.for.end_crit_edge: ; preds = %for.cond
- %phitmp = add i32 %i.01, 2 ; <i32> [#uses=1]
- br label %for.end
-
-bb.nph: ; preds = %entry
- br label %for.body
-
-for.body: ; preds = %bb.nph, %for.cond
- %i.01 = phi i32 [ %inc, %for.cond ], [ 0, %bb.nph ] ; <i32> [#uses=3]
- %call = call i32 @bar(i32 %i.01) nounwind ; <i32> [#uses=0]
- br label %for.inc
-
-for.inc: ; preds = %for.body
- %inc = add i32 %i.01, 1 ; <i32> [#uses=2]
- br label %for.cond
-
-for.end: ; preds = %for.cond.for.end_crit_edge, %entry
- %i.0.lcssa = phi i32 [ %phitmp, %for.cond.for.end_crit_edge ], [ 1, %entry ] ; <i32> [#uses=1]
- ret i32 %i.0.lcssa
-}
-
-declare i32 @bar(i32)
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count9.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count9.ll
deleted file mode 100644
index 9180f2b..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/trip-count9.ll
+++ /dev/null
@@ -1,408 +0,0 @@
-; RUN: opt -analyze -scalar-evolution -S < %s | FileCheck %s
-
-; Every combination of
-; - starting at 0, 1, or %x
-; - steping by 1 or 2
-; - stopping at %n or %n*2
-; - using nsw, or not
-
-; Some of these represent missed opportunities.
-
-; CHECK: Determining loop execution counts for: @foo
-; CHECK: Loop %loop: backedge-taken count is (-1 + %n)
-; CHECK: Loop %loop: max backedge-taken count is 6
-define void @foo(i4 %n) {
-entry:
- %s = icmp sgt i4 %n, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ 0, %entry ], [ %i.next, %loop ]
- %i.next = add i4 %i, 1
- %t = icmp slt i4 %i.next, %n
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @step2
-; CHECK: Loop %loop: Unpredictable backedge-taken count.
-; CHECK: Loop %loop: Unpredictable max backedge-taken count.
-define void @step2(i4 %n) {
-entry:
- %s = icmp sgt i4 %n, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ 0, %entry ], [ %i.next, %loop ]
- %i.next = add i4 %i, 2
- %t = icmp slt i4 %i.next, %n
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @start1
-; CHECK: Loop %loop: backedge-taken count is (-2 + (2 smax %n))
-; CHECK: Loop %loop: max backedge-taken count is 5
-define void @start1(i4 %n) {
-entry:
- %s = icmp sgt i4 %n, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ 1, %entry ], [ %i.next, %loop ]
- %i.next = add i4 %i, 1
- %t = icmp slt i4 %i.next, %n
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @start1_step2
-; CHECK: Loop %loop: Unpredictable backedge-taken count.
-; CHECK: Loop %loop: Unpredictable max backedge-taken count.
-define void @start1_step2(i4 %n) {
-entry:
- %s = icmp sgt i4 %n, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ 1, %entry ], [ %i.next, %loop ]
- %i.next = add i4 %i, 2
- %t = icmp slt i4 %i.next, %n
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @startx
-; CHECK: Loop %loop: backedge-taken count is (-1 + (-1 * %x) + ((1 + %x) smax %n))
-; CHECK: Loop %loop: max backedge-taken count is -1
-define void @startx(i4 %n, i4 %x) {
-entry:
- %s = icmp sgt i4 %n, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ %x, %entry ], [ %i.next, %loop ]
- %i.next = add i4 %i, 1
- %t = icmp slt i4 %i.next, %n
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @startx_step2
-; CHECK: Loop %loop: Unpredictable backedge-taken count.
-; CHECK: Loop %loop: Unpredictable max backedge-taken count.
-define void @startx_step2(i4 %n, i4 %x) {
-entry:
- %s = icmp sgt i4 %n, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ %x, %entry ], [ %i.next, %loop ]
- %i.next = add i4 %i, 2
- %t = icmp slt i4 %i.next, %n
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @nsw
-; CHECK: Loop %loop: backedge-taken count is (-1 + %n)
-; CHECK: Loop %loop: max backedge-taken count is 6
-define void @nsw(i4 %n) {
-entry:
- %s = icmp sgt i4 %n, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ 0, %entry ], [ %i.next, %loop ]
- %i.next = add nsw i4 %i, 1
- %t = icmp slt i4 %i.next, %n
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; Be careful with this one. If %n is INT4_MAX, %i.next will wrap. The nsw bit
-; says that the result is undefined, but ScalarEvolution must respect that
-; subsequent passes may result the undefined behavior in predictable ways.
-; CHECK: Determining loop execution counts for: @nsw_step2
-; CHECK: Loop %loop: Unpredictable backedge-taken count.
-; CHECK: Loop %loop: Unpredictable max backedge-taken count.
-define void @nsw_step2(i4 %n) {
-entry:
- %s = icmp sgt i4 %n, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ 0, %entry ], [ %i.next, %loop ]
- %i.next = add nsw i4 %i, 2
- %t = icmp slt i4 %i.next, %n
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @nsw_start1
-; CHECK: Loop %loop: backedge-taken count is (-2 + (2 smax %n))
-; CHECK: Loop %loop: max backedge-taken count is 5
-define void @nsw_start1(i4 %n) {
-entry:
- %s = icmp sgt i4 %n, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ 1, %entry ], [ %i.next, %loop ]
- %i.next = add nsw i4 %i, 1
- %t = icmp slt i4 %i.next, %n
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @nsw_start1_step2
-; CHECK: Loop %loop: Unpredictable backedge-taken count.
-; CHECK: Loop %loop: Unpredictable max backedge-taken count.
-define void @nsw_start1_step2(i4 %n) {
-entry:
- %s = icmp sgt i4 %n, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ 1, %entry ], [ %i.next, %loop ]
- %i.next = add nsw i4 %i, 2
- %t = icmp slt i4 %i.next, %n
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @nsw_startx
-; CHECK: Loop %loop: backedge-taken count is (-1 + (-1 * %x) + ((1 + %x) smax %n))
-; CHECK: Loop %loop: max backedge-taken count is -1
-define void @nsw_startx(i4 %n, i4 %x) {
-entry:
- %s = icmp sgt i4 %n, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ %x, %entry ], [ %i.next, %loop ]
- %i.next = add nsw i4 %i, 1
- %t = icmp slt i4 %i.next, %n
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @nsw_startx_step2
-; CHECK: Loop %loop: Unpredictable backedge-taken count.
-; CHECK: Loop %loop: Unpredictable max backedge-taken count.
-define void @nsw_startx_step2(i4 %n, i4 %x) {
-entry:
- %s = icmp sgt i4 %n, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ %x, %entry ], [ %i.next, %loop ]
- %i.next = add nsw i4 %i, 2
- %t = icmp slt i4 %i.next, %n
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @even
-; CHECK: Loop %loop: backedge-taken count is (-1 + (2 * %n))
-; CHECK: Loop %loop: max backedge-taken count is 5
-define void @even(i4 %n) {
-entry:
- %m = shl i4 %n, 1
- %s = icmp sgt i4 %m, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ 0, %entry ], [ %i.next, %loop ]
- %i.next = add i4 %i, 1
- %t = icmp slt i4 %i.next, %m
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @even_step2
-; CHECK: Loop %loop: Unpredictable backedge-taken count.
-; CHECK: Loop %loop: max backedge-taken count is 2
-define void @even_step2(i4 %n) {
-entry:
- %m = shl i4 %n, 1
- %s = icmp sgt i4 %m, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ 0, %entry ], [ %i.next, %loop ]
- %i.next = add i4 %i, 2
- %t = icmp slt i4 %i.next, %m
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @even_start1
-; CHECK: Loop %loop: backedge-taken count is (-2 + (2 smax (2 * %n)))
-; CHECK: Loop %loop: max backedge-taken count is 4
-define void @even_start1(i4 %n) {
-entry:
- %m = shl i4 %n, 1
- %s = icmp sgt i4 %m, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ 1, %entry ], [ %i.next, %loop ]
- %i.next = add i4 %i, 1
- %t = icmp slt i4 %i.next, %m
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @even_start1_step2
-; CHECK: Loop %loop: Unpredictable backedge-taken count.
-; CHECK: Loop %loop: max backedge-taken count is 2
-define void @even_start1_step2(i4 %n) {
-entry:
- %m = shl i4 %n, 1
- %s = icmp sgt i4 %m, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ 1, %entry ], [ %i.next, %loop ]
- %i.next = add i4 %i, 2
- %t = icmp slt i4 %i.next, %m
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @even_startx
-; CHECK: Loop %loop: backedge-taken count is (-1 + (-1 * %x) + ((1 + %x) smax (2 * %n)))
-; CHECK: Loop %loop: max backedge-taken count is -1
-define void @even_startx(i4 %n, i4 %x) {
-entry:
- %m = shl i4 %n, 1
- %s = icmp sgt i4 %m, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ %x, %entry ], [ %i.next, %loop ]
- %i.next = add i4 %i, 1
- %t = icmp slt i4 %i.next, %m
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @even_startx_step2
-; CHECK: Loop %loop: Unpredictable backedge-taken count.
-; CHECK: Loop %loop: max backedge-taken count is 7
-define void @even_startx_step2(i4 %n, i4 %x) {
-entry:
- %m = shl i4 %n, 1
- %s = icmp sgt i4 %m, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ %x, %entry ], [ %i.next, %loop ]
- %i.next = add i4 %i, 2
- %t = icmp slt i4 %i.next, %m
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @even_nsw
-; CHECK: Loop %loop: backedge-taken count is (-1 + (2 * %n))
-; CHECK: Loop %loop: max backedge-taken count is 5
-define void @even_nsw(i4 %n) {
-entry:
- %m = shl i4 %n, 1
- %s = icmp sgt i4 %m, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ 0, %entry ], [ %i.next, %loop ]
- %i.next = add nsw i4 %i, 1
- %t = icmp slt i4 %i.next, %m
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @even_nsw_step2
-; CHECK: Loop %loop: backedge-taken count is ((-1 + (2 * %n)) /u 2)
-; CHECK: Loop %loop: max backedge-taken count is 2
-define void @even_nsw_step2(i4 %n) {
-entry:
- %m = shl i4 %n, 1
- %s = icmp sgt i4 %m, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ 0, %entry ], [ %i.next, %loop ]
- %i.next = add nsw i4 %i, 2
- %t = icmp slt i4 %i.next, %m
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @even_nsw_start1
-; CHECK: Loop %loop: backedge-taken count is (-2 + (2 smax (2 * %n)))
-; CHECK: Loop %loop: max backedge-taken count is 4
-define void @even_nsw_start1(i4 %n) {
-entry:
- %m = shl i4 %n, 1
- %s = icmp sgt i4 %m, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ 1, %entry ], [ %i.next, %loop ]
- %i.next = add nsw i4 %i, 1
- %t = icmp slt i4 %i.next, %m
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @even_nsw_start1_step2
-; CHECK: Loop %loop: backedge-taken count is ((-2 + (3 smax (2 * %n))) /u 2)
-; CHECK: Loop %loop: max backedge-taken count is 2
-define void @even_nsw_start1_step2(i4 %n) {
-entry:
- %m = shl i4 %n, 1
- %s = icmp sgt i4 %m, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ 1, %entry ], [ %i.next, %loop ]
- %i.next = add nsw i4 %i, 2
- %t = icmp slt i4 %i.next, %m
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @even_nsw_startx
-; CHECK: Loop %loop: backedge-taken count is (-1 + (-1 * %x) + ((1 + %x) smax (2 * %n)))
-; CHECK: Loop %loop: max backedge-taken count is -1
-define void @even_nsw_startx(i4 %n, i4 %x) {
-entry:
- %m = shl i4 %n, 1
- %s = icmp sgt i4 %m, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ %x, %entry ], [ %i.next, %loop ]
- %i.next = add nsw i4 %i, 1
- %t = icmp slt i4 %i.next, %m
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
-
-; CHECK: Determining loop execution counts for: @even_nsw_startx_step2
-; CHECK: Loop %loop: backedge-taken count is ((-1 + (-1 * %x) + ((2 + %x) smax (2 * %n))) /u 2)
-; CHECK: Loop %loop: max backedge-taken count is 7
-define void @even_nsw_startx_step2(i4 %n, i4 %x) {
-entry:
- %m = shl i4 %n, 1
- %s = icmp sgt i4 %m, 0
- br i1 %s, label %loop, label %exit
-loop:
- %i = phi i4 [ %x, %entry ], [ %i.next, %loop ]
- %i.next = add nsw i4 %i, 2
- %t = icmp slt i4 %i.next, %m
- br i1 %t, label %loop, label %exit
-exit:
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/xor-and.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/xor-and.ll
deleted file mode 100644
index c0530bb..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/xor-and.ll
+++ /dev/null
@@ -1,12 +0,0 @@
-; RUN: opt < %s -scalar-evolution -analyze \
-; RUN: | grep {\\--> (zext i4 (-8 + (trunc i64 (8 \\* %x) to i4)) to i64)}
-
-; ScalarEvolution shouldn't try to analyze %z into something like
-; --> (zext i4 (-1 + (-1 * (trunc i64 (8 * %x) to i4))) to i64)
-
-define i64 @foo(i64 %x) {
- %a = shl i64 %x, 3
- %t = and i64 %a, 8
- %z = xor i64 %t, 8
- ret i64 %z
-}
diff --git a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/zext-wrap.ll b/libclamav/c++/llvm/test/Analysis/ScalarEvolution/zext-wrap.ll
deleted file mode 100644
index 38d15ff..0000000
--- a/libclamav/c++/llvm/test/Analysis/ScalarEvolution/zext-wrap.ll
+++ /dev/null
@@ -1,24 +0,0 @@
-; RUN: opt < %s -analyze -scalar-evolution \
-; RUN: | FileCheck %s
-; PR4569
-
-define i16 @main() nounwind {
-entry:
- br label %bb.i
-
-bb.i: ; preds = %bb1.i, %bb.nph
- %l_95.0.i1 = phi i8 [ %tmp1, %bb.i ], [ 0, %entry ]
-
-; This cast shouldn't be folded into the addrec.
-; CHECK: %tmp = zext i8 %l_95.0.i1 to i16
-; CHECK: --> (zext i8 {0,+,-1}<%bb.i> to i16) Exits: 2
-
- %tmp = zext i8 %l_95.0.i1 to i16
-
- %tmp1 = add i8 %l_95.0.i1, -1
- %phitmp = icmp eq i8 %tmp1, 1
- br i1 %phitmp, label %bb1.i.func_36.exit_crit_edge, label %bb.i
-
-bb1.i.func_36.exit_crit_edge:
- ret i16 %tmp
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2002-01-24-BadSymbolTableAssert.ll b/libclamav/c++/llvm/test/Assembler/2002-01-24-BadSymbolTableAssert.ll
deleted file mode 100644
index 7c49e2b..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-01-24-BadSymbolTableAssert.ll
+++ /dev/null
@@ -1,11 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
-; This testcase failed due to a bad assertion in SymbolTable.cpp, removed in
-; the 1.20 revision. Basically the symbol table assumed that if there was an
-; abstract type in the symbol table, [in this case for the entry %foo of type
-; void(opaque)* ], that there should have also been named types by now. This
-; was obviously not the case here, and this is valid. Assertion disabled.
-
-%bb = type i32
-
-declare void @foo(i32)
diff --git a/libclamav/c++/llvm/test/Assembler/2002-01-24-ValueRefineAbsType.ll b/libclamav/c++/llvm/test/Assembler/2002-01-24-ValueRefineAbsType.ll
deleted file mode 100644
index 6e49674..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-01-24-ValueRefineAbsType.ll
+++ /dev/null
@@ -1,23 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
-; This testcase used to fail due to a lack of this diff in Value.cpp:
-; diff -r1.16 Value.cpp
-; 11c11
-; < #include "llvm/Type.h"
-; ---
-; > #include "llvm/DerivedTypes.h"
-; 74c74,76
-; < assert(Ty.get() == (const Type*)OldTy &&"Can't refine anything but my type!");
-; ---
-; > assert(Ty.get() == OldTy &&"Can't refine anything but my type!");
-; > if (OldTy == NewTy && !OldTy->isAbstract())
-; > Ty.removeUserFromConcrete();
-;
-; This was causing an assertion failure, due to the "foo" Method object never
-; releasing it's reference to the opaque %bb value.
-;
-
-%bb = type i32
-%exception_descriptor = type i32
-
-declare void @foo(i32)
diff --git a/libclamav/c++/llvm/test/Assembler/2002-02-19-TypeParsing.ll b/libclamav/c++/llvm/test/Assembler/2002-02-19-TypeParsing.ll
deleted file mode 100644
index 0df6784..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-02-19-TypeParsing.ll
+++ /dev/null
@@ -1,3 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
-%Hosp = type { i32, i32, i32, { \2*, { i32, i32, i32, { [4 x \3], \2, \5, %Hosp, i32, i32 }* }*, \2* }, { \2*, { i32, i32, i32, { [4 x \3], \2, \5, %Hosp, i32, i32 }* }*, \2* }, { \2*, { i32, i32, i32, { [4 x \3], \2, \5, %Hosp, i32, i32 }* }*, \2* }, { \2*, { i32, i32, i32, { [4 x \3], \2, \5, %Hosp, i32, i32 }* }*, \2* } }
diff --git a/libclamav/c++/llvm/test/Assembler/2002-03-08-NameCollision.ll b/libclamav/c++/llvm/test/Assembler/2002-03-08-NameCollision.ll
deleted file mode 100644
index b49789b..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-03-08-NameCollision.ll
+++ /dev/null
@@ -1,15 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
-; Method arguments were being checked for collisions at the global scope before
-; the method object was created by the parser. Because of this, false
-; collisions could occur that would cause the following error message to be
-; produced:
-;
-; Redefinition of value named 'X' in the 'int *' type plane!
-;
-; Fixed by delaying binding of variable names until _after_ the method symtab is
-; created.
-;
- at X = global i32 4 ; <i32*> [#uses=0]
-
-declare i32 @xxx(i32*)
diff --git a/libclamav/c++/llvm/test/Assembler/2002-03-08-NameCollision2.ll b/libclamav/c++/llvm/test/Assembler/2002-03-08-NameCollision2.ll
deleted file mode 100644
index 1f7a4e1..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-03-08-NameCollision2.ll
+++ /dev/null
@@ -1,12 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
-; Another name collision problem. Here the problem was that if a forward
-; declaration for a method was found, that this would cause spurious conflicts
-; to be detected between locals and globals.
-;
- at Var = external global i32 ; <i32*> [#uses=0]
-
-define void @foo() {
- %Var = alloca i32 ; <i32*> [#uses=0]
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2002-04-04-PureVirtMethCall.ll b/libclamav/c++/llvm/test/Assembler/2002-04-04-PureVirtMethCall.ll
deleted file mode 100644
index 29aed55..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-04-04-PureVirtMethCall.ll
+++ /dev/null
@@ -1,6 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
- type { { \2 *, \4 ** },
- { \2 *, \4 ** }
- }
-
diff --git a/libclamav/c++/llvm/test/Assembler/2002-04-04-PureVirtMethCall2.ll b/libclamav/c++/llvm/test/Assembler/2002-04-04-PureVirtMethCall2.ll
deleted file mode 100644
index a096899..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-04-04-PureVirtMethCall2.ll
+++ /dev/null
@@ -1,5 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
-%t = type { { \2*, \2 },
- { \2*, \2 }
- }
diff --git a/libclamav/c++/llvm/test/Assembler/2002-04-05-TypeParsing.ll b/libclamav/c++/llvm/test/Assembler/2002-04-05-TypeParsing.ll
deleted file mode 100644
index f725944..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-04-05-TypeParsing.ll
+++ /dev/null
@@ -1,3 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
- %Hosp = type { { \2*, { \2, %Hosp }* }, { \2*, { \2, %Hosp }* } }
diff --git a/libclamav/c++/llvm/test/Assembler/2002-04-07-HexFloatConstants.ll b/libclamav/c++/llvm/test/Assembler/2002-04-07-HexFloatConstants.ll
deleted file mode 100644
index b0d7cc0..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-04-07-HexFloatConstants.ll
+++ /dev/null
@@ -1,16 +0,0 @@
-; This testcase checks to make sure that the assembler can handle floating
-; point constants in IEEE hex format. This also checks that the disassembler,
-; when presented with a FP constant that cannot be represented exactly in
-; exponential form, outputs it correctly in hex format. This is a distillation
-; of the bug that was causing the Olden Health benchmark to output incorrect
-; results!
-;
-; RUN: opt -constprop -S > %t.1 < %s
-; RUN: llvm-as < %s | llvm-dis | llvm-as | opt -constprop | \
-; RUN: llvm-dis > %t.2
-; RUN: diff %t.1 %t.2
-
-define double @test() {
- %tmp = fmul double 7.200000e+101, 0x427F4000 ; <double> [#uses=1]
- ret double %tmp
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2002-04-07-InfConstant.ll b/libclamav/c++/llvm/test/Assembler/2002-04-07-InfConstant.ll
deleted file mode 100644
index 71837c9..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-04-07-InfConstant.ll
+++ /dev/null
@@ -1,9 +0,0 @@
-; The output formater prints out 1.0e100 as Inf!
-;
-; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep 0x7FF0000000000000
-
-define float @test() {
- %tmp = fmul float 0x7FF0000000000000, 1.000000e+01 ; <float> [#uses=1]
- ret float %tmp
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2002-04-29-NameBinding.ll b/libclamav/c++/llvm/test/Assembler/2002-04-29-NameBinding.ll
deleted file mode 100644
index 7960c20..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-04-29-NameBinding.ll
+++ /dev/null
@@ -1,18 +0,0 @@
-; There should be NO references to the global v1. The local v1 should
-; have all of the references!
-;
-; Check by running globaldce, which will remove the constant if there are
-; no references to it!
-;
-; RUN: opt < %s -globaldce -S | \
-; RUN: not grep constant
-;
-
- at v1 = internal constant i32 5
-
-define i32 @createtask() {
- %v1 = alloca i32 ;; Alloca should have one use!
- %reg112 = load i32* %v1 ;; This load should not use the global!
- ret i32 %reg112
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2002-05-02-InvalidForwardRef.ll b/libclamav/c++/llvm/test/Assembler/2002-05-02-InvalidForwardRef.ll
deleted file mode 100644
index 234545c..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-05-02-InvalidForwardRef.ll
+++ /dev/null
@@ -1,10 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-; It looks like the assembler is not forward resolving the function declaraion
-; correctly.
-
-define void @test() {
- call void @foo( )
- ret void
-}
-
-declare void @foo()
diff --git a/libclamav/c++/llvm/test/Assembler/2002-05-02-ParseError.ll b/libclamav/c++/llvm/test/Assembler/2002-05-02-ParseError.ll
deleted file mode 100644
index 5a9817c..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-05-02-ParseError.ll
+++ /dev/null
@@ -1,7 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
-%T = type i32 *
-
-define %T @test() {
- ret %T null
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2002-07-08-HugePerformanceProblem.ll b/libclamav/c++/llvm/test/Assembler/2002-07-08-HugePerformanceProblem.ll
deleted file mode 100644
index 52c90af..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-07-08-HugePerformanceProblem.ll
+++ /dev/null
@@ -1,67 +0,0 @@
-; This file takes about 48 __MINUTES__ to assemble using as. This is WAY too
-; long. The type resolution code needs to be sped up a lot.
-; RUN: llvm-as %s -o /dev/null
- %ALL_INTERSECTIONS_METHOD = type i32 (%OBJECT*, %RAY*, %ISTACK*)*
- %BBOX = type { %BBOX_VECT, %BBOX_VECT }
- %BBOX_TREE = type { i16, i16, %BBOX, %BBOX_TREE** }
- %BBOX_VECT = type [3 x float]
- %BLEND_MAP = type { i16, i16, i16, i32, %BLEND_MAP_ENTRY* }
- %BLEND_MAP_ENTRY = type { float, i8, { %COLOUR, %PIGMENT*, %TNORMAL*, %TEXTURE*, %UV_VECT } }
- %CAMERA = type { %VECTOR, %VECTOR, %VECTOR, %VECTOR, %VECTOR, %VECTOR, double, double, i32, double, double, i32, double, %TNORMAL* }
- %COLOUR = type [5 x float]
- %COPY_METHOD = type i8* (%OBJECT*)*
- %COUNTER = type { i32, i32 }
- %DENSITY_FILE = type { i32, %DENSITY_FILE_DATA* }
- %DENSITY_FILE_DATA = type { i32, i8*, i32, i32, i32, i8*** }
- %DESTROY_METHOD = type void (%OBJECT*)*
- %FILE = type { i32, i8*, i8*, i8, i8, i32, i32, i32 }
- %FILE_HANDLE = type { i8*, i32, i32, i32, i32, i8*, %FILE*, i32, i32 (%FILE_HANDLE*, i8*, i32*, i32*, i32, i32)*, void (%FILE_HANDLE*, %COLOUR*, i32)*, i32 (%FILE_HANDLE*, %COLOUR*, i32*)*, void (%IMAGE*, i8*)*, void (%FILE_HANDLE*)* }
- %FINISH = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, %BBOX_VECT, %BBOX_VECT }
- %FOG = type { i32, double, double, double, %COLOUR, %VECTOR, %TURB*, float, %FOG* }
- %FRAME = type { %CAMERA*, i32, i32, i32, %LIGHT_SOURCE*, %OBJECT*, double, double, %COLOUR, %COLOUR, %COLOUR, %IMEDIA*, %FOG*, %RAINBOW*, %SKYSPHERE* }
- %FRAMESEQ = type { i32, double, i32, i32, double, i32, i32, double, i32, double, i32, double, i32, i32 }
- %IMAGE = type { i32, i32, i32, i32, i32, i16, i16, %VECTOR, float, float, i32, i32, i16, %IMAGE_COLOUR*, { %IMAGE_LINE*, i8** } }
- %IMAGE_COLOUR = type { i16, i16, i16, i16, i16 }
- %IMAGE_LINE = type { i8*, i8*, i8*, i8* }
- %IMEDIA = type { i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, %COLOUR, %COLOUR, %COLOUR, %COLOUR, double, double, double, double*, %PIGMENT*, %IMEDIA* }
- %INSIDE_METHOD = type i32 (double*, %OBJECT*)*
- %INTERIOR = type { i32, i32, float, float, float, float, float, %IMEDIA* }
- %INTERSECTION = type { double, %VECTOR, %VECTOR, %OBJECT*, i32, i32, double, double, i8* }
- %INVERT_METHOD = type void (%OBJECT*)*
- %ISTACK = type { %ISTACK*, %INTERSECTION*, i32 }
- %LIGHT_SOURCE = type { %METHODS*, i32, %OBJECT*, %TEXTURE*, %INTERIOR*, %OBJECT*, %OBJECT*, %BBOX, i32, %OBJECT*, %COLOUR, %VECTOR, %VECTOR, %VECTOR, %VECTOR, %VECTOR, double, double, double, double, double, %LIGHT_SOURCE*, i8, i8, i8, i8, i32, i32, i32, i32, i32, %COLOUR**, %OBJECT*, [6 x %PROJECT_TREE_NODE*] }
- %MATRIX = type [4 x %VECTOR_4D]
- %METHODS = type { %ALL_INTERSECTIONS_METHOD, %INSIDE_METHOD, %NORMAL_METHOD, %COPY_METHOD, %ROTATE_METHOD, %ROTATE_METHOD, %ROTATE_METHOD, %TRANSFORM_METHOD, %DESTROY_METHOD, %DESTROY_METHOD }
- %NORMAL_METHOD = type void (double*, %OBJECT*, %INTERSECTION*)*
- %OBJECT = type { %METHODS*, i32, %OBJECT*, %TEXTURE*, %INTERIOR*, %OBJECT*, %OBJECT*, %BBOX, i32 }
- %Opts = type { i32, i32, i8, i8, i8, i32, [150 x i8], [150 x i8], [150 x i8], [150 x i8], [150 x i8], double, double, i32, i32, double, double, i32, [25 x i8*], i32, i32, i32, double, double, i32, i32, double, double, double, i32, i32, i32, i32, i32, %FRAMESEQ, double, i32, double, double, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [150 x i8], %SHELLDATA*, [150 x i8], i32, i32 }
- %PIGMENT = type { i16, i16, i16, i32, float, float, float, %WARP*, %TPATTERN*, %BLEND_MAP*, { %DENSITY_FILE*, %IMAGE*, %VECTOR, float, i16, i16, i16, { float, %VECTOR }, %complex.float }, %COLOUR }
- %PRIORITY_QUEUE = type { i32, i32, %QELEM* }
- %PROJECT = type { i32, i32, i32, i32 }
- %PROJECT_QUEUE = type { i32, i32, %PROJECT_TREE_NODE** }
- %PROJECT_TREE_NODE = type { i16, %BBOX_TREE*, %PROJECT, i16, %PROJECT_TREE_NODE** }
- %QELEM = type { double, %BBOX_TREE* }
- %RAINBOW = type { double, double, double, double, double, double, double, %VECTOR, %VECTOR, %VECTOR, %PIGMENT*, %RAINBOW* }
- %RAY = type { %VECTOR, %VECTOR, i32, [100 x %INTERIOR*] }
- %RAYINFO = type { %VECTOR, %VECTOR, %VECTORI, %VECTORI }
- %RGB = type [3 x float]
- %ROTATE_METHOD = type void (%OBJECT*, double*, %TRANSFORM*)*
- %SCALE_METHOD = type void (%OBJECT*, double*, %TRANSFORM*)*
- %SHELLDATA = type { i32, i32, [250 x i8] }
- %SKYSPHERE = type { i32, %PIGMENT**, %TRANSFORM* }
- %SNGL_VECT = type [3 x float]
- %TEXTURE = type { i16, i16, i16, i32, float, float, float, %WARP*, %TPATTERN*, %BLEND_MAP*, { %DENSITY_FILE*, %IMAGE*, %VECTOR, float, i16, i16, i16, { float, %VECTOR }, %complex.float }, %TEXTURE*, %PIGMENT*, %TNORMAL*, %FINISH*, %TEXTURE*, i32 }
- %TNORMAL = type { i16, i16, i16, i32, float, float, float, %WARP*, %TPATTERN*, %BLEND_MAP*, { %DENSITY_FILE*, %IMAGE*, %VECTOR, float, i16, i16, i16, { float, %VECTOR }, %complex.float }, float }
- %TPATTERN = type { i16, i16, i16, i32, float, float, float, %WARP*, %TPATTERN*, %BLEND_MAP*, { %DENSITY_FILE*, %IMAGE*, %VECTOR, float, i16, i16, i16, { float, %VECTOR }, %complex.float } }
- %TRANSFORM = type { %MATRIX, %MATRIX }
- %TRANSFORM_METHOD = type void (%OBJECT*, %TRANSFORM*)*
- %TRANSLATE_METHOD = type void (%OBJECT*, double*, %TRANSFORM*)*
- %TURB = type { i16, %WARP*, %VECTOR, i32, float, float }
- %UV_VECT = type [2 x double]
- %VECTOR = type [3 x double]
- %VECTORI = type [3 x i32]
- %VECTOR_4D = type [4 x double]
- %WARP = type { i16, %WARP* }
- %__FILE = type { i32, i8*, i8*, i8, i8, i32, i32, i32 }
- %_h_val = type { [2 x i32], double }
- %complex.float = type { float, float }
diff --git a/libclamav/c++/llvm/test/Assembler/2002-07-14-InternalLossage.ll b/libclamav/c++/llvm/test/Assembler/2002-07-14-InternalLossage.ll
deleted file mode 100644
index f93f1c4..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-07-14-InternalLossage.ll
+++ /dev/null
@@ -1,9 +0,0 @@
-; Test to make sure that the 'internal' tag is not lost!
-;
-; RUN: llvm-as < %s | llvm-dis | grep internal
-
-declare void @foo()
-
-define internal void @foo() {
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2002-07-14-OpaqueType.ll b/libclamav/c++/llvm/test/Assembler/2002-07-14-OpaqueType.ll
deleted file mode 100644
index 662fb0f..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-07-14-OpaqueType.ll
+++ /dev/null
@@ -1,10 +0,0 @@
-; Test that opaque types are preserved correctly
-; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis
-;
-
-%Ty = type opaque
-
-define %Ty* @func() {
- ret %Ty* null
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2002-07-25-ParserAssertionFailure.ll b/libclamav/c++/llvm/test/Assembler/2002-07-25-ParserAssertionFailure.ll
deleted file mode 100644
index 3c5c554..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-07-25-ParserAssertionFailure.ll
+++ /dev/null
@@ -1,13 +0,0 @@
-; Make sure we don't get an assertion failure, even though this is a parse
-; error
-; RUN: not llvm-as %s -o /dev/null |& grep {'@foo' defined with}
-
-%ty = type void (i32)
-
-declare %ty* @foo()
-
-define void @test() {
- call %ty* @foo( ) ; <%ty*>:0 [#uses=0]
- ret void
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2002-07-25-QuoteInString.ll b/libclamav/c++/llvm/test/Assembler/2002-07-25-QuoteInString.ll
deleted file mode 100644
index facc5bd..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-07-25-QuoteInString.ll
+++ /dev/null
@@ -1,5 +0,0 @@
-; Test double quotes in strings work correctly!
-; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis
-;
- at str = internal global [6 x i8] c"\22foo\22\00" ; <[6 x i8]*> [#uses=0]
-
diff --git a/libclamav/c++/llvm/test/Assembler/2002-07-25-ReturnPtrFunction.ll b/libclamav/c++/llvm/test/Assembler/2002-07-25-ReturnPtrFunction.ll
deleted file mode 100644
index 515d105..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-07-25-ReturnPtrFunction.ll
+++ /dev/null
@@ -1,15 +0,0 @@
-; Test that returning a pointer to a function causes the disassembler to print
-; the right thing.
-;
-; RUN: llvm-as < %s | llvm-dis | llvm-as
-
-%ty = type void (i32)
-
-declare %ty* @foo()
-
-define void @test() {
- call %ty* ()* @foo( ) ; <%ty*>:1 [#uses=0]
- ret void
-}
-
-
diff --git a/libclamav/c++/llvm/test/Assembler/2002-07-31-SlashInString.ll b/libclamav/c++/llvm/test/Assembler/2002-07-31-SlashInString.ll
deleted file mode 100644
index ff48258..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-07-31-SlashInString.ll
+++ /dev/null
@@ -1,5 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | llvm-as
-
-; Make sure that \\ works in a string initializer
- at Slashtest = internal global [8 x i8] c"\5Cbegin{\00"
-
diff --git a/libclamav/c++/llvm/test/Assembler/2002-08-15-CastAmbiguity.ll b/libclamav/c++/llvm/test/Assembler/2002-08-15-CastAmbiguity.ll
deleted file mode 100644
index c716524..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-08-15-CastAmbiguity.ll
+++ /dev/null
@@ -1,6 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
-define void @test(i32 %X) {
- call void @test( i32 6 )
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2002-08-15-ConstantExprProblem.ll b/libclamav/c++/llvm/test/Assembler/2002-08-15-ConstantExprProblem.ll
deleted file mode 100644
index 02b9ea9..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-08-15-ConstantExprProblem.ll
+++ /dev/null
@@ -1,16 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
- at .LC0 = internal global [12 x i8] c"hello world\00" ; <[12 x i8]*> [#uses=1]
-
-define i8* @test() {
-; <label>:0
- br label %BB1
-
-BB1: ; preds = %BB2, %0
- %ret = phi i8* [ getelementptr ([12 x i8]* @.LC0, i64 0, i64 0), %0 ], [ null, %BB2 ] ; <i8*> [#uses=1]
- ret i8* %ret
-
-BB2: ; No predecessors!
- br label %BB1
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2002-08-15-UnresolvedGlobalReference.ll b/libclamav/c++/llvm/test/Assembler/2002-08-15-UnresolvedGlobalReference.ll
deleted file mode 100644
index 2ba3f14..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-08-15-UnresolvedGlobalReference.ll
+++ /dev/null
@@ -1,8 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
- at .LC0 = internal global [12 x i8] c"hello world\00" ; <[12 x i8]*> [#uses=1]
-
-define i8* @test() {
- ret i8* getelementptr ([12 x i8]* @.LC0, i64 0, i64 0)
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2002-08-16-ConstExprInlined.ll b/libclamav/c++/llvm/test/Assembler/2002-08-16-ConstExprInlined.ll
deleted file mode 100644
index f233bac..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-08-16-ConstExprInlined.ll
+++ /dev/null
@@ -1,22 +0,0 @@
-; In this testcase, the bytecode reader or writer is not correctly handling the
-; ConstExpr reference. Disassembling this program assembled yields invalid
-; assembly (because there are placeholders still around), which the assembler
-; dies on.
-
-; There are two things that need to be fixed here. Obviously assembling and
-; disassembling this would be good, but in addition to that, the bytecode
-; reader should NEVER produce a program "successfully" with placeholders still
-; around!
-;
-; RUN: llvm-as < %s | llvm-dis | llvm-as
-
- at .LC0 = internal global [4 x i8] c"foo\00" ; <[4 x i8]*> [#uses=1]
- at X = global i8* null ; <i8**> [#uses=0]
-
-declare i32 @puts(i8*)
-
-define void @main() {
-bb1:
- %reg211 = call i32 @puts( i8* getelementptr ([4 x i8]* @.LC0, i64 0, i64 0) ) ; <i32> [#uses=0]
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2002-08-19-BytecodeReader.ll b/libclamav/c++/llvm/test/Assembler/2002-08-19-BytecodeReader.ll
deleted file mode 100644
index e211014..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-08-19-BytecodeReader.ll
+++ /dev/null
@@ -1,17 +0,0 @@
-; Testcase that seems to break the bytecode reader. This comes from the
-; "crafty" spec benchmark.
-;
-; RUN: opt < %s -instcombine | llvm-dis
-
-%CHESS_POSITION = type { i32, i32 }
- at pawn_probes = external global i32 ; <i32*> [#uses=0]
- at pawn_hash_mask = external global i32 ; <i32*> [#uses=0]
- at search = external global %CHESS_POSITION ; <%CHESS_POSITION*> [#uses=2]
-
-define void @Evaluate() {
- %reg1321 = getelementptr %CHESS_POSITION* @search, i64 0, i32 1 ; <i32*> [#uses=1]
- %reg114 = load i32* %reg1321 ; <i32> [#uses=0]
- %reg1801 = getelementptr %CHESS_POSITION* @search, i64 0, i32 0 ; <i32*> [#uses=1]
- %reg182 = load i32* %reg1801 ; <i32> [#uses=0]
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2002-08-22-DominanceProblem.ll b/libclamav/c++/llvm/test/Assembler/2002-08-22-DominanceProblem.ll
deleted file mode 100644
index 0dc192d..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-08-22-DominanceProblem.ll
+++ /dev/null
@@ -1,17 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
-; Dominance relationships is not calculated correctly for unreachable blocks,
-; which causes the verifier to barf on this input.
-
-define i32 @test(i1 %b) {
-BB0:
- ret i32 7 ; Loop is unreachable
-
-Loop: ; preds = %L2, %Loop
- %B = phi i32 [ %B, %L2 ], [ %B, %Loop ] ;PHI has same value always.
- br i1 %b, label %L2, label %Loop
-
-L2: ; preds = %Loop
- br label %Loop
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2002-10-08-LargeArrayPerformance.ll b/libclamav/c++/llvm/test/Assembler/2002-10-08-LargeArrayPerformance.ll
deleted file mode 100644
index 34a9932..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-10-08-LargeArrayPerformance.ll
+++ /dev/null
@@ -1,8 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-; This testcase comes from the following really simple c file:
-;; int foo[30000]
-;;; We should not be soo slow for such a simple case!
-
- at foo = global [30000 x i32] zeroinitializer ; <[30000 x i32]*> [#uses=0]
-
-declare void @__main()
diff --git a/libclamav/c++/llvm/test/Assembler/2002-10-13-ConstantEncodingProblem.ll b/libclamav/c++/llvm/test/Assembler/2002-10-13-ConstantEncodingProblem.ll
deleted file mode 100644
index bf3a521..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-10-13-ConstantEncodingProblem.ll
+++ /dev/null
@@ -1,5 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis
-
-%Domain = type { %Domain**, %Domain* }
- at D = global %Domain zeroinitializer ; <%Domain*> [#uses=0]
-
diff --git a/libclamav/c++/llvm/test/Assembler/2002-10-15-NameClash.ll b/libclamav/c++/llvm/test/Assembler/2002-10-15-NameClash.ll
deleted file mode 100644
index 89346cb..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-10-15-NameClash.ll
+++ /dev/null
@@ -1,7 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
-declare i32 @"ArrayRef"([100 x i32] * %Array)
-
-define i32 @"ArrayRef"([100 x i32] * %Array) {
- ret i32 0
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2002-12-15-GlobalResolve.ll b/libclamav/c++/llvm/test/Assembler/2002-12-15-GlobalResolve.ll
deleted file mode 100644
index f9ad12e..0000000
--- a/libclamav/c++/llvm/test/Assembler/2002-12-15-GlobalResolve.ll
+++ /dev/null
@@ -1,7 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
- at X = external global i32*
- at X1 = external global %T*
- at X2 = external global i32*
-
-%T = type i32
diff --git a/libclamav/c++/llvm/test/Assembler/2003-01-30-UnsignedString.ll b/libclamav/c++/llvm/test/Assembler/2003-01-30-UnsignedString.ll
deleted file mode 100644
index 3c14d71..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-01-30-UnsignedString.ll
+++ /dev/null
@@ -1,4 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
- at spell_order = global [4 x i8] c"\FF\00\F7\00"
-
diff --git a/libclamav/c++/llvm/test/Assembler/2003-04-15-ConstantInitAssertion.ll b/libclamav/c++/llvm/test/Assembler/2003-04-15-ConstantInitAssertion.ll
deleted file mode 100644
index e012168..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-04-15-ConstantInitAssertion.ll
+++ /dev/null
@@ -1,4 +0,0 @@
-; RUN: not llvm-as < %s >/dev/null |& grep {constant expression type mismatch}
-; Test the case of a misformed constant initializer
-; This should cause an assembler error, not an assertion failure!
-constant { i32 } { float 1.0 }
diff --git a/libclamav/c++/llvm/test/Assembler/2003-04-25-UnresolvedGlobalReference.ll b/libclamav/c++/llvm/test/Assembler/2003-04-25-UnresolvedGlobalReference.ll
deleted file mode 100644
index f1a5ed7..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-04-25-UnresolvedGlobalReference.ll
+++ /dev/null
@@ -1,7 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-; There should be absolutely no problem with this testcase.
-
-define i32 @test(i32 %arg1, i32 %arg2) {
- ret i32 ptrtoint (i32 (i32, i32)* @test to i32)
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2003-05-03-BytecodeReaderProblem.ll b/libclamav/c++/llvm/test/Assembler/2003-05-03-BytecodeReaderProblem.ll
deleted file mode 100644
index f4a6911..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-05-03-BytecodeReaderProblem.ll
+++ /dev/null
@@ -1,6 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis
-
-define void @test() {
- %tmp.123 = trunc i64 0 to i32 ; <i32> [#uses=0]
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2003-05-12-MinIntProblem.ll b/libclamav/c++/llvm/test/Assembler/2003-05-12-MinIntProblem.ll
deleted file mode 100644
index ebe1690..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-05-12-MinIntProblem.ll
+++ /dev/null
@@ -1,5 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | grep -- -2147483648
-
-define i32 @foo() {
- ret i32 -2147483648
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2003-05-15-AssemblerProblem.ll b/libclamav/c++/llvm/test/Assembler/2003-05-15-AssemblerProblem.ll
deleted file mode 100644
index 146ce65..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-05-15-AssemblerProblem.ll
+++ /dev/null
@@ -1,14 +0,0 @@
-; This bug was caused by two CPR's existing for the same global variable,
-; colliding in the Module level CPR map.
-; RUN: llvm-as %s -o /dev/null
-
-define void @test() {
- call void (...)* bitcast (void (i16*, i32)* @AddString to void (...)*)( i16* null, i32 0 )
- ret void
-}
-
-define void @AddString(i16* %tmp.124, i32 %tmp.127) {
- call void (...)* bitcast (void (i16*, i32)* @AddString to void (...)*)( i16* %tmp.124, i32 %tmp.127 )
- ret void
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2003-05-15-SwitchBug.ll b/libclamav/c++/llvm/test/Assembler/2003-05-15-SwitchBug.ll
deleted file mode 100644
index 3768d9c..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-05-15-SwitchBug.ll
+++ /dev/null
@@ -1,11 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
-; Check minimal switch statement
-
-define void @test(i32 %X) {
- switch i32 %X, label %dest [
- ]
-
-dest: ; preds = %0
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2003-05-21-ConstantShiftExpr.ll b/libclamav/c++/llvm/test/Assembler/2003-05-21-ConstantShiftExpr.ll
deleted file mode 100644
index 40b9651..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-05-21-ConstantShiftExpr.ll
+++ /dev/null
@@ -1,4 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-; Test that shift instructions can be used in constant expressions.
-
-global i32 3670016
diff --git a/libclamav/c++/llvm/test/Assembler/2003-05-21-EmptyStructTest.ll b/libclamav/c++/llvm/test/Assembler/2003-05-21-EmptyStructTest.ll
deleted file mode 100644
index 26e83d9..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-05-21-EmptyStructTest.ll
+++ /dev/null
@@ -1,6 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
-; The old C front-end never generated empty structures, now the new one
-; can. For some reason we never handled them in the parser. Weird.
-
- at X = global { } zeroinitializer
diff --git a/libclamav/c++/llvm/test/Assembler/2003-05-21-MalformedShiftCrash.ll b/libclamav/c++/llvm/test/Assembler/2003-05-21-MalformedShiftCrash.ll
deleted file mode 100644
index c661f7c..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-05-21-MalformedShiftCrash.ll
+++ /dev/null
@@ -1,4 +0,0 @@
-; Found by inspection of the code
-; RUN: not llvm-as < %s > /dev/null |& grep {constexpr requires integer or integer vector operands}
-
-global i32 ashr (float 1.0, float 2.0)
diff --git a/libclamav/c++/llvm/test/Assembler/2003-05-21-MalformedStructCrash.ll b/libclamav/c++/llvm/test/Assembler/2003-05-21-MalformedStructCrash.ll
deleted file mode 100644
index 1efb577..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-05-21-MalformedStructCrash.ll
+++ /dev/null
@@ -1,4 +0,0 @@
-; Found by inspection of the code
-; RUN: not llvm-as < %s > /dev/null |& grep {constant expression type mismatch}
-
-global {} { i32 7, float 1.0, i32 7, i32 8 }
diff --git a/libclamav/c++/llvm/test/Assembler/2003-06-17-InvokeDisassemble.ll b/libclamav/c++/llvm/test/Assembler/2003-06-17-InvokeDisassemble.ll
deleted file mode 100644
index 922a996..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-06-17-InvokeDisassemble.ll
+++ /dev/null
@@ -1,9 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis
-
-define void @test() {
- invoke void @test( )
- to label %Next unwind label %Next
-
-Next: ; preds = %0, %0
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2003-06-30-RecursiveTypeProblem.ll b/libclamav/c++/llvm/test/Assembler/2003-06-30-RecursiveTypeProblem.ll
deleted file mode 100644
index 5db3114..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-06-30-RecursiveTypeProblem.ll
+++ /dev/null
@@ -1,3 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
-%MidFnTy = type void (%MidFnTy*)
diff --git a/libclamav/c++/llvm/test/Assembler/2003-08-20-ConstantExprGEP-Fold.ll b/libclamav/c++/llvm/test/Assembler/2003-08-20-ConstantExprGEP-Fold.ll
deleted file mode 100644
index 50cdeed..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-08-20-ConstantExprGEP-Fold.ll
+++ /dev/null
@@ -1,16 +0,0 @@
-; RUN: opt < %s -instcombine -simplifycfg -S | not grep br
-
- at .str_1 = internal constant [6 x i8] c"_Bool\00" ; <[6 x i8]*> [#uses=2]
-
-define i32 @test() {
- %tmp.54 = load i8* getelementptr ([6 x i8]* @.str_1, i64 0, i64 1) ; <i8> [#uses=1]
- %tmp.55 = icmp ne i8 %tmp.54, 66 ; <i1> [#uses=1]
- br i1 %tmp.55, label %then.7, label %endif.7
-
-then.7: ; preds = %then.7, %0
- br label %then.7
-
-endif.7: ; preds = %0
- ret i32 0
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2003-08-21-ConstantExprCast-Fold.ll b/libclamav/c++/llvm/test/Assembler/2003-08-21-ConstantExprCast-Fold.ll
deleted file mode 100644
index b76f774..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-08-21-ConstantExprCast-Fold.ll
+++ /dev/null
@@ -1,4 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | not grep getelementptr
-
- at A = external global { float } ; <{ float }*> [#uses=2]
-global i32* bitcast ({ float }* @A to i32*) ; <i32**>:0 [#uses=0]
diff --git a/libclamav/c++/llvm/test/Assembler/2003-10-04-NotMergingGlobalConstants.ll b/libclamav/c++/llvm/test/Assembler/2003-10-04-NotMergingGlobalConstants.ll
deleted file mode 100644
index 5fec05d..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-10-04-NotMergingGlobalConstants.ll
+++ /dev/null
@@ -1,6 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
-%T = type i32
- at X = global i32* null ; <i32**> [#uses=0]
- at Y = global i32* null ; <i32**> [#uses=0]
-
diff --git a/libclamav/c++/llvm/test/Assembler/2003-11-05-ConstantExprShift.ll b/libclamav/c++/llvm/test/Assembler/2003-11-05-ConstantExprShift.ll
deleted file mode 100644
index 86b093e..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-11-05-ConstantExprShift.ll
+++ /dev/null
@@ -1,5 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis
-
-define i32 @test() {
- ret i32 ashr (i32 ptrtoint (i32 ()* @test to i32), i32 2)
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2003-11-11-ImplicitRename.ll b/libclamav/c++/llvm/test/Assembler/2003-11-11-ImplicitRename.ll
deleted file mode 100644
index 7bfd3c1..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-11-11-ImplicitRename.ll
+++ /dev/null
@@ -1,8 +0,0 @@
-; RUN: not llvm-as < %s >& /dev/null
-
-void %test() {
- %X = add int 0, 1
- %X = add int 1, 2
- ret void
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2003-11-12-ConstantExprCast.ll b/libclamav/c++/llvm/test/Assembler/2003-11-12-ConstantExprCast.ll
deleted file mode 100644
index 149fef2..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-11-12-ConstantExprCast.ll
+++ /dev/null
@@ -1,10 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | not grep { bitcast (}
-
- at .Base64_1 = external constant [4 x i8] ; <[4 x i8]*> [#uses=1]
-
-define i8 @test(i8 %Y) {
- %X = bitcast i8 %Y to i8 ; <i8> [#uses=1]
- %tmp.13 = add i8 %X, sub (i8 0, i8 ptrtoint ([4 x i8]* @.Base64_1 to i8)) ; <i8> [#uses=1]
- ret i8 %tmp.13
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2003-11-24-SymbolTableCrash.ll b/libclamav/c++/llvm/test/Assembler/2003-11-24-SymbolTableCrash.ll
deleted file mode 100644
index 041b0d9..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-11-24-SymbolTableCrash.ll
+++ /dev/null
@@ -1,10 +0,0 @@
-; RUN: not llvm-as < %s |& grep {multiple definition}
-
-define void @test() {
- %tmp.1 = add i32 0, 1
- br label %return
-return:
- %tmp.1 = add i32 0, 1
- ret void
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2003-12-30-TypeMapInvalidMemory.ll b/libclamav/c++/llvm/test/Assembler/2003-12-30-TypeMapInvalidMemory.ll
deleted file mode 100644
index 93f9a70..0000000
--- a/libclamav/c++/llvm/test/Assembler/2003-12-30-TypeMapInvalidMemory.ll
+++ /dev/null
@@ -1,55 +0,0 @@
-; RUN: not llvm-as %s -o /dev/null |& grep {use of undefined type named 'struct.D_Scope'}
-; END.
-
- at d_reduction_0_dparser_gram = global {
- i32 (i8*, i8**, i32, i32, {
- %struct.Grammar*, void (\4, %struct.d_loc_t*, i8**)*, %struct.D_Scope*,
- void (\4)*, { i32, %struct.d_loc_t, i8*, i8*, %struct.D_Scope*,
- void (\8, %struct.d_loc_t*, i8**)*, %struct.Grammar*,
- %struct.ParseNode_User }* (\4, i32, { i32, %struct.d_loc_t, i8*, i8*,
- %struct.D_Scope*, void (\9, %struct.d_loc_t*, i8**)*, %struct.Grammar*,
- %struct.ParseNode_User }**)*,
- void ({ i32, %struct.d_loc_t, i8*, i8*, %struct.D_Scope*,
- void (\8, %struct.d_loc_t*, i8**)*,
- %struct.Grammar*, %struct.ParseNode_User }*)*,
- %struct.d_loc_t, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32,
- i32 }*)*,
- i32 (i8*, i8**, i32, i32, { %struct.Grammar*,
- void (\4, %struct.d_loc_t*, i8**)*, %struct.D_Scope*, void (\4)*, {
- i32, %struct.d_loc_t, i8*, i8*, %struct.D_Scope*,
- void (\8, %struct.d_loc_t*, i8**)*, %struct.Grammar*,
- %struct.ParseNode_User }* (\4, i32, { i32, %struct.d_loc_t, i8*, i8*,
- %struct.D_Scope*, void (\9, %struct.d_loc_t*, i8**)*,
- %struct.Grammar*, %struct.ParseNode_User }**)*,
- void ({ i32, %struct.d_loc_t, i8*, i8*, %struct.D_Scope*,
- void (\8, %struct.d_loc_t*, i8**)*, %struct.Grammar*,
- %struct.ParseNode_User }*)*, %struct.d_loc_t, i32, i32, i32, i32,
- i32, i32, i32, i32, i32, i32, i32, i32 }*)** }
-
- { i32 (i8*, i8**, i32, i32, {
- %struct.Grammar*, void (\4, %struct.d_loc_t*, i8**)*,
- %struct.D_Scope*, void (\4)*, {
- i32, %struct.d_loc_t, i8*, i8*, %struct.D_Scope*,
- void (\8, %struct.d_loc_t*, i8**)*, %struct.Grammar*,
- %struct.ParseNode_User
- }* (\4, i32, { i32, %struct.d_loc_t, i8*, i8*, %struct.D_Scope*,
- void (\9, %struct.d_loc_t*, i8**)*, %struct.Grammar*,
- %struct.ParseNode_User }**)*,
- void ({ i32, %struct.d_loc_t, i8*, i8*, %struct.D_Scope*,
- void (\8, %struct.d_loc_t*, i8**)*, %struct.Grammar*,
- %struct.ParseNode_User }*)*,
- %struct.d_loc_t, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32,
- i32, i32 }*)* null,
- i32 (i8*, i8**, i32, i32, {
- %struct.Grammar*, void (\4, %struct.d_loc_t*, i8**)*,
- %struct.D_Scope*, void (\4)*, { i32, %struct.d_loc_t, i8*, i8*,
- %struct.D_Scope*, void (\8, %struct.d_loc_t*, i8**)*,
- %struct.Grammar*, %struct.ParseNode_User }* (\4, i32, { i32,
- %struct.d_loc_t, i8*, i8*, %struct.D_Scope*,
- void (\9, %struct.d_loc_t*, i8**)*, %struct.Grammar*,
- %struct.ParseNode_User }**)*,
- void ({ i32, %struct.d_loc_t, i8*, i8*, %struct.D_Scope*,
- void (\8, %struct.d_loc_t*, i8**)*, %struct.Grammar*,
- %struct.ParseNode_User }*)*, %struct.d_loc_t, i32, i32, i32,
- i32, i32, i32, i32, i32, i32, i32, i32, i32 }*)** null
- }
diff --git a/libclamav/c++/llvm/test/Assembler/2004-01-11-getelementptrfolding.ll b/libclamav/c++/llvm/test/Assembler/2004-01-11-getelementptrfolding.ll
deleted file mode 100644
index c22aede..0000000
--- a/libclamav/c++/llvm/test/Assembler/2004-01-11-getelementptrfolding.ll
+++ /dev/null
@@ -1,12 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | \
-; RUN: not grep {getelementptr.*getelementptr}
-
-%struct.TTriangleItem = type { i8*, i8*, [3 x %struct.TUVVertex] }
-%struct.TUVVertex = type { i16, i16, i16, i16 }
- at data_triangleItems = internal constant [2908 x %struct.TTriangleItem] zeroinitializer; <[2908 x %struct.TTriangleItem]*> [#uses=2]
-
-define void @foo() {
- store i16 0, i16* getelementptr ([2908 x %struct.TTriangleItem]* @data_triangleItems, i64 0, i64 0, i32 2, i64 0, i32 0)
- ret void
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2004-01-20-MaxLongLong.ll b/libclamav/c++/llvm/test/Assembler/2004-01-20-MaxLongLong.ll
deleted file mode 100644
index 8af5332..0000000
--- a/libclamav/c++/llvm/test/Assembler/2004-01-20-MaxLongLong.ll
+++ /dev/null
@@ -1,4 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | grep 9223372036854775808
-
-global i64 -9223372036854775808
-
diff --git a/libclamav/c++/llvm/test/Assembler/2004-02-01-NegativeZero.ll b/libclamav/c++/llvm/test/Assembler/2004-02-01-NegativeZero.ll
deleted file mode 100644
index b28930f..0000000
--- a/libclamav/c++/llvm/test/Assembler/2004-02-01-NegativeZero.ll
+++ /dev/null
@@ -1,5 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | grep -- -0.0
-
-global double 0x8000000000000000
-global float -0.0
-
diff --git a/libclamav/c++/llvm/test/Assembler/2004-02-27-SelfUseAssertError.ll b/libclamav/c++/llvm/test/Assembler/2004-02-27-SelfUseAssertError.ll
deleted file mode 100644
index 7052eac..0000000
--- a/libclamav/c++/llvm/test/Assembler/2004-02-27-SelfUseAssertError.ll
+++ /dev/null
@@ -1,25 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
-; %inc2 uses it's own value, but that's ok, as it's unreachable!
-
-define void @test() {
-entry:
- ret void
-
-no_exit.2: ; preds = %endif.6
- %tmp.103 = fcmp olt double 0.000000e+00, 0.000000e+00 ; <i1> [#uses=1]
- br i1 %tmp.103, label %endif.6, label %else.0
-
-else.0: ; preds = %no_exit.2
- store i16 0, i16* null
- br label %endif.6
-
-endif.6: ; preds = %else.0, %no_exit.2
- %inc.2 = add i32 %inc.2, 1 ; <i32> [#uses=2]
- %tmp.96 = icmp slt i32 %inc.2, 0 ; <i1> [#uses=1]
- br i1 %tmp.96, label %no_exit.2, label %UnifiedReturnBlock1
-
-UnifiedReturnBlock1: ; preds = %endif.6
- ret void
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2004-03-07-FunctionAddressAlignment.ll b/libclamav/c++/llvm/test/Assembler/2004-03-07-FunctionAddressAlignment.ll
deleted file mode 100644
index e3bf0bb..0000000
--- a/libclamav/c++/llvm/test/Assembler/2004-03-07-FunctionAddressAlignment.ll
+++ /dev/null
@@ -1,15 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | not grep ptrtoint
-; All of these should be eliminable
-
-
-define i32 @foo() {
- ret i32 and (i32 ptrtoint (i32()* @foo to i32), i32 1)
-}
-
-define i32 @foo2() {
- ret i32 and (i32 1, i32 ptrtoint (i32()* @foo2 to i32))
-}
-
-define i1 @foo3() {
- ret i1 icmp ne (i1()* @foo3, i1()* null)
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2004-03-30-UnclosedFunctionCrash.ll b/libclamav/c++/llvm/test/Assembler/2004-03-30-UnclosedFunctionCrash.ll
deleted file mode 100644
index 775b755..0000000
--- a/libclamav/c++/llvm/test/Assembler/2004-03-30-UnclosedFunctionCrash.ll
+++ /dev/null
@@ -1,3 +0,0 @@
-; RUN: not llvm-as %s |& grep {found end of file when expecting more instructions}
-
-define void @foo() {
diff --git a/libclamav/c++/llvm/test/Assembler/2004-04-04-GetElementPtrIndexTypes.ll b/libclamav/c++/llvm/test/Assembler/2004-04-04-GetElementPtrIndexTypes.ll
deleted file mode 100644
index ab46f88..0000000
--- a/libclamav/c++/llvm/test/Assembler/2004-04-04-GetElementPtrIndexTypes.ll
+++ /dev/null
@@ -1,10 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
-define i32* @t1({ float, i32 }* %X) {
- %W = getelementptr { float, i32 }* %X, i32 20, i32 1 ; <i32*> [#uses=0]
- %X.upgrd.1 = getelementptr { float, i32 }* %X, i64 20, i32 1 ; <i32*> [#uses=0]
- %Y = getelementptr { float, i32 }* %X, i64 20, i32 1 ; <i32*> [#uses=1]
- %Z = getelementptr { float, i32 }* %X, i64 20, i32 1 ; <i32*> [#uses=0]
- ret i32* %Y
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2004-06-07-VerifierBug.ll b/libclamav/c++/llvm/test/Assembler/2004-06-07-VerifierBug.ll
deleted file mode 100644
index 07d2383..0000000
--- a/libclamav/c++/llvm/test/Assembler/2004-06-07-VerifierBug.ll
+++ /dev/null
@@ -1,11 +0,0 @@
-; RUN: llvm-as < %s > /dev/null
-
-define void @t() {
-entry:
- ret void
-
-loop: ; preds = %loop
- %tmp.4.i9 = getelementptr i32* null, i32 %tmp.5.i10 ; <i32*> [#uses=1]
- %tmp.5.i10 = load i32* %tmp.4.i9 ; <i32> [#uses=1]
- br label %loop
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2004-10-22-BCWriterUndefBug.ll b/libclamav/c++/llvm/test/Assembler/2004-10-22-BCWriterUndefBug.ll
deleted file mode 100644
index 694b80b..0000000
--- a/libclamav/c++/llvm/test/Assembler/2004-10-22-BCWriterUndefBug.ll
+++ /dev/null
@@ -1,5 +0,0 @@
-;; The bytecode writer was trying to treat undef values as ConstantArray's when
-;; they looked like strings.
-;; RUN: llvm-as %s -o /dev/null
- at G = internal global [8 x i8] undef
-
diff --git a/libclamav/c++/llvm/test/Assembler/2004-11-28-InvalidTypeCrash.ll b/libclamav/c++/llvm/test/Assembler/2004-11-28-InvalidTypeCrash.ll
deleted file mode 100644
index f9b453b..0000000
--- a/libclamav/c++/llvm/test/Assembler/2004-11-28-InvalidTypeCrash.ll
+++ /dev/null
@@ -1,4 +0,0 @@
-; Test for PR463. This program is erroneous, but should not crash llvm-as.
-; RUN: not llvm-as %s -o /dev/null |& grep {invalid type for null constant}
-
- at .FOO = internal global %struct.none zeroinitializer
diff --git a/libclamav/c++/llvm/test/Assembler/2005-01-03-FPConstantDisassembly.ll b/libclamav/c++/llvm/test/Assembler/2005-01-03-FPConstantDisassembly.ll
deleted file mode 100644
index aaa776f..0000000
--- a/libclamav/c++/llvm/test/Assembler/2005-01-03-FPConstantDisassembly.ll
+++ /dev/null
@@ -1,6 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | grep 1.0
-
-define double @test() {
- ret double 1.0 ;; This should not require hex notation
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2005-01-31-CallingAggregateFunction.ll b/libclamav/c++/llvm/test/Assembler/2005-01-31-CallingAggregateFunction.ll
deleted file mode 100644
index ce769a2..0000000
--- a/libclamav/c++/llvm/test/Assembler/2005-01-31-CallingAggregateFunction.ll
+++ /dev/null
@@ -1,8 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
-define void @test() {
- call {i32} @foo()
- ret void
-}
-
-declare {i32 } @foo()
diff --git a/libclamav/c++/llvm/test/Assembler/2005-02-09-AsmWriterStoreBug.ll b/libclamav/c++/llvm/test/Assembler/2005-02-09-AsmWriterStoreBug.ll
deleted file mode 100644
index 4ec1796..0000000
--- a/libclamav/c++/llvm/test/Assembler/2005-02-09-AsmWriterStoreBug.ll
+++ /dev/null
@@ -1,14 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | llvm-as
-
-; Ensure that the asm writer emits types before both operands of the
-; store, even though they can be the same.
-
-%RecTy = type %RecTy*
-
-define void @foo() {
- %A = malloc %RecTy ; <%RecTy> [#uses=1]
- %B = malloc %RecTy ; <%RecTy> [#uses=1]
- store %RecTy %B, %RecTy %A
- ret void
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2005-05-05-OpaqueUndefValues.ll b/libclamav/c++/llvm/test/Assembler/2005-05-05-OpaqueUndefValues.ll
deleted file mode 100644
index 8cd1419..0000000
--- a/libclamav/c++/llvm/test/Assembler/2005-05-05-OpaqueUndefValues.ll
+++ /dev/null
@@ -1,4 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | llvm-as > /dev/null
-
-%t = type opaque
- at x = global %t undef
diff --git a/libclamav/c++/llvm/test/Assembler/2005-12-21-ZeroInitVector.ll b/libclamav/c++/llvm/test/Assembler/2005-12-21-ZeroInitVector.ll
deleted file mode 100644
index d3a692c..0000000
--- a/libclamav/c++/llvm/test/Assembler/2005-12-21-ZeroInitVector.ll
+++ /dev/null
@@ -1,6 +0,0 @@
-; RUN: llvm-as < %s > /dev/null
-
-define <4 x i32> @foo() {
- ret <4 x i32> zeroinitializer
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2006-05-26-VarargsCallEncode.ll b/libclamav/c++/llvm/test/Assembler/2006-05-26-VarargsCallEncode.ll
deleted file mode 100644
index 6dc60c3..0000000
--- a/libclamav/c++/llvm/test/Assembler/2006-05-26-VarargsCallEncode.ll
+++ /dev/null
@@ -1,8 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | grep {tail call void.*sret null}
-
-declare void @foo({ }* sret , ...)
-
-define void @bar() {
- tail call void ({ }* sret , ...)* @foo( { }* null sret , i32 0 )
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2006-09-28-CrashOnInvalid.ll b/libclamav/c++/llvm/test/Assembler/2006-09-28-CrashOnInvalid.ll
deleted file mode 100644
index a203c6a..0000000
--- a/libclamav/c++/llvm/test/Assembler/2006-09-28-CrashOnInvalid.ll
+++ /dev/null
@@ -1,8 +0,0 @@
-; Test for PR902. This program is erroneous, but should not crash llvm-as.
-; This tests that a simple error is caught and processed correctly.
-; RUN: not llvm-as < %s >/dev/null |& grep {floating point constant invalid for type}
-
-define void @test() {
- add i32 1, 2.0
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2006-12-09-Cast-To-Bool.ll b/libclamav/c++/llvm/test/Assembler/2006-12-09-Cast-To-Bool.ll
deleted file mode 100644
index a70262c..0000000
--- a/libclamav/c++/llvm/test/Assembler/2006-12-09-Cast-To-Bool.ll
+++ /dev/null
@@ -1,6 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | grep bitcast
-
-define i1 @main(i32 %X) {
- %res = bitcast i1 true to i1
- ret i1 %res
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2007-01-02-Undefined-Arg-Type.ll b/libclamav/c++/llvm/test/Assembler/2007-01-02-Undefined-Arg-Type.ll
deleted file mode 100644
index a39de1c..0000000
--- a/libclamav/c++/llvm/test/Assembler/2007-01-02-Undefined-Arg-Type.ll
+++ /dev/null
@@ -1,9 +0,0 @@
-; The assembler should catch an undefined argument type .
-; RUN: not llvm-as %s -o /dev/null |& grep {use of undefined type named 'typedef.bc_struct'}
-
-; %typedef.bc_struct = type opaque
-
-
-define i1 @someFunc(i32* %tmp.71.reload, %typedef.bc_struct* %n1) {
- ret i1 true
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2007-01-05-Cmp-ConstExpr.ll b/libclamav/c++/llvm/test/Assembler/2007-01-05-Cmp-ConstExpr.ll
deleted file mode 100644
index e3f67ba..0000000
--- a/libclamav/c++/llvm/test/Assembler/2007-01-05-Cmp-ConstExpr.ll
+++ /dev/null
@@ -1,18 +0,0 @@
-; Test Case for PR1080
-; RUN: llvm-as %s -o /dev/null
-
- at str = internal constant [4 x i8] c"-ga\00" ; <[4 x i8]*> [#uses=2]
-
-define i32 @main(i32 %argc, i8** %argv) {
-entry:
- %tmp65 = getelementptr i8** %argv, i32 1 ; <i8**> [#uses=1]
- %tmp66 = load i8** %tmp65 ; <i8*> [#uses=0]
- br i1 icmp ne (i32 sub (i32 ptrtoint (i8* getelementptr ([4 x i8]* @str, i32 0, i64 1) to i32), i32 ptrtoint ([4 x i8]* @str to i32)), i32 1), label %exit_1, label %exit_2
-
-exit_1: ; preds = %entry
- ret i32 0
-
-exit_2: ; preds = %entry
- ret i32 1
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2007-01-16-CrashOnBadCast.ll b/libclamav/c++/llvm/test/Assembler/2007-01-16-CrashOnBadCast.ll
deleted file mode 100644
index 81f5458..0000000
--- a/libclamav/c++/llvm/test/Assembler/2007-01-16-CrashOnBadCast.ll
+++ /dev/null
@@ -1,7 +0,0 @@
-; PR1117
-; RUN: not llvm-as %s -o /dev/null |& grep {invalid cast opcode for cast from}
-
-define i8* @nada(i64 %X) {
- %result = trunc i64 %X to i8*
- ret i8* %result
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2007-01-16-CrashOnBadCast2.ll b/libclamav/c++/llvm/test/Assembler/2007-01-16-CrashOnBadCast2.ll
deleted file mode 100644
index c05c609..0000000
--- a/libclamav/c++/llvm/test/Assembler/2007-01-16-CrashOnBadCast2.ll
+++ /dev/null
@@ -1,4 +0,0 @@
-; PR1117
-; RUN: not llvm-as %s -o /dev/null |& grep {invalid cast opcode for cast from}
-
- at X = constant i8* trunc (i64 0 to i8*)
diff --git a/libclamav/c++/llvm/test/Assembler/2007-03-18-InvalidNumberedVar.ll b/libclamav/c++/llvm/test/Assembler/2007-03-18-InvalidNumberedVar.ll
deleted file mode 100644
index b2193b1..0000000
--- a/libclamav/c++/llvm/test/Assembler/2007-03-18-InvalidNumberedVar.ll
+++ /dev/null
@@ -1,9 +0,0 @@
-; PR 1258
-; RUN: not llvm-as < %s >/dev/null |& grep {'%0' defined with type 'i1'}
-
-define i32 @test1(i32 %a, i32 %b) {
-entry:
- icmp eq i32 %b, %a ; <i1>:0 [#uses=1]
- zext i1 %0 to i32 ; <i32>:0 [#uses=1]
- ret i32 %0 ; Invalid Type for %0
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2007-03-19-NegValue.ll b/libclamav/c++/llvm/test/Assembler/2007-03-19-NegValue.ll
deleted file mode 100644
index e90cf35..0000000
--- a/libclamav/c++/llvm/test/Assembler/2007-03-19-NegValue.ll
+++ /dev/null
@@ -1,7 +0,0 @@
-; Test whether negative values > 64 bits retain their negativeness.
-; RUN: llvm-as < %s | llvm-dis | grep {add i65.*, -1}
-
-define i65 @testConsts(i65 %N) {
- %a = add i65 %N, -1
- ret i65 %a
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2007-04-20-AlignedLoad.ll b/libclamav/c++/llvm/test/Assembler/2007-04-20-AlignedLoad.ll
deleted file mode 100644
index f0217ae..0000000
--- a/libclamav/c++/llvm/test/Assembler/2007-04-20-AlignedLoad.ll
+++ /dev/null
@@ -1,7 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | grep {align 1024}
-
-define i32 @test(i32* %arg) {
-entry:
- %tmp2 = load i32* %arg, align 1024 ; <i32> [#uses=1]
- ret i32 %tmp2
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2007-04-20-AlignedStore.ll b/libclamav/c++/llvm/test/Assembler/2007-04-20-AlignedStore.ll
deleted file mode 100644
index 1b08c48..0000000
--- a/libclamav/c++/llvm/test/Assembler/2007-04-20-AlignedStore.ll
+++ /dev/null
@@ -1,7 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | grep {align 1024}
-
-define void @test(i32* %arg) {
-entry:
- store i32 0, i32* %arg, align 1024
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2007-04-25-AssemblerFoldExternWeak.ll b/libclamav/c++/llvm/test/Assembler/2007-04-25-AssemblerFoldExternWeak.ll
deleted file mode 100644
index c26d9eb..0000000
--- a/libclamav/c++/llvm/test/Assembler/2007-04-25-AssemblerFoldExternWeak.ll
+++ /dev/null
@@ -1,6 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | grep {icmp.*test_weak.*null}
-; PR1358
- at G = global i1 icmp ne (i32 (...)* @test_weak, i32 (...)* null)
-
-declare extern_weak i32 @test_weak(...)
-
diff --git a/libclamav/c++/llvm/test/Assembler/2007-05-21-Escape.ll b/libclamav/c++/llvm/test/Assembler/2007-05-21-Escape.ll
deleted file mode 100644
index 0868133..0000000
--- a/libclamav/c++/llvm/test/Assembler/2007-05-21-Escape.ll
+++ /dev/null
@@ -1,22 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
-target triple = "x86_64-apple-darwin8"
- %struct.bar = type { i32 }
- %struct.foo = type { i32 }
-
-define i32 @"Func64"(%struct.bar* %F) {
-entry:
- ret i32 1
-}
-
-define i32 @Func64(%struct.bar* %B) {
-entry:
- ret i32 0
-}
-
-define i32 @test() {
-entry:
- %tmp = tail call i32 @"Func64"( %struct.bar* null ) ; <i32> [#uses=0]
- %tmp1 = tail call i32 @Func64( %struct.bar* null ) ; <i32> [#uses=0]
- ret i32 undef
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2007-07-19-ParamAttrAmbiguity.ll b/libclamav/c++/llvm/test/Assembler/2007-07-19-ParamAttrAmbiguity.ll
deleted file mode 100644
index 9c7daa8..0000000
--- a/libclamav/c++/llvm/test/Assembler/2007-07-19-ParamAttrAmbiguity.ll
+++ /dev/null
@@ -1,9 +0,0 @@
-; PR1553
-; RUN: llvm-as < %s > /dev/null
-define void @bar() {
- %t = call i8 @foo( i8 10 )
- zext i8 %t to i32
- ret void
-}
-
-declare i8 @foo(i8)
diff --git a/libclamav/c++/llvm/test/Assembler/2007-07-30-AutoUpgradeZextSext.ll b/libclamav/c++/llvm/test/Assembler/2007-07-30-AutoUpgradeZextSext.ll
deleted file mode 100644
index ea2db44..0000000
--- a/libclamav/c++/llvm/test/Assembler/2007-07-30-AutoUpgradeZextSext.ll
+++ /dev/null
@@ -1,12 +0,0 @@
-; Test that upgrading zext/sext attributes to zeroext and signext
-; works correctly.
-; PR1553
-; RUN: llvm-as < %s > /dev/null
-
-define i32 @bar() {
- %t = call i8 @foo( i8 10 sext ) zext
- %x = zext i8 %t to i32
- ret i32 %x
-}
-
-declare i8 @foo(i8 signext ) zeroext
diff --git a/libclamav/c++/llvm/test/Assembler/2007-08-06-AliasInvalid.ll b/libclamav/c++/llvm/test/Assembler/2007-08-06-AliasInvalid.ll
deleted file mode 100644
index 9409598..0000000
--- a/libclamav/c++/llvm/test/Assembler/2007-08-06-AliasInvalid.ll
+++ /dev/null
@@ -1,9 +0,0 @@
-; RUN: not llvm-as < %s > /dev/null |& grep {expected top-level entity}
-; PR1577
-
- at anInt = global i32 1
-alias i32 @anAlias
-
-define i32 @main() {
- ret i32 0
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2007-09-10-AliasFwdRef.ll b/libclamav/c++/llvm/test/Assembler/2007-09-10-AliasFwdRef.ll
deleted file mode 100644
index b21491b..0000000
--- a/libclamav/c++/llvm/test/Assembler/2007-09-10-AliasFwdRef.ll
+++ /dev/null
@@ -1,9 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis
-; PR1645
-
- at __gthread_active_ptr.5335 = internal constant i8* bitcast (i32 (i32)* @__gthrw_pthread_cancel to i8*)
- at __gthrw_pthread_cancel = alias weak i32 (i32)* @pthread_cancel
-
-
-
-declare extern_weak i32 @pthread_cancel(i32)
diff --git a/libclamav/c++/llvm/test/Assembler/2007-09-29-GC.ll b/libclamav/c++/llvm/test/Assembler/2007-09-29-GC.ll
deleted file mode 100644
index 789a0fe..0000000
--- a/libclamav/c++/llvm/test/Assembler/2007-09-29-GC.ll
+++ /dev/null
@@ -1,12 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | grep {@f.*gc.*shadowstack}
-; RUN: llvm-as < %s | llvm-dis | grep {@g.*gc.*java}
-
-define void @f() gc "shadowstack" {
-entry:
- ret void
-}
-
-define void @g() gc "java" {
-entry:
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2007-11-26-AttributeOverload.ll b/libclamav/c++/llvm/test/Assembler/2007-11-26-AttributeOverload.ll
deleted file mode 100644
index aebc2e8..0000000
--- a/libclamav/c++/llvm/test/Assembler/2007-11-26-AttributeOverload.ll
+++ /dev/null
@@ -1,4 +0,0 @@
-; RUN: not llvm-as < %s >& /dev/null
-
-declare i32 @atoi(i8*) nounwind readonly
-declare i32 @atoi(i8*)
diff --git a/libclamav/c++/llvm/test/Assembler/2007-11-27-AutoUpgradeAttributes.ll b/libclamav/c++/llvm/test/Assembler/2007-11-27-AutoUpgradeAttributes.ll
deleted file mode 100644
index ee260ea..0000000
--- a/libclamav/c++/llvm/test/Assembler/2007-11-27-AutoUpgradeAttributes.ll
+++ /dev/null
@@ -1,3 +0,0 @@
-; RUN: llvm-as < %s
-
- at FP = weak global i8 (...) signext * null
diff --git a/libclamav/c++/llvm/test/Assembler/2007-12-11-AddressSpaces.ll b/libclamav/c++/llvm/test/Assembler/2007-12-11-AddressSpaces.ll
deleted file mode 100644
index 0eb4a79..0000000
--- a/libclamav/c++/llvm/test/Assembler/2007-12-11-AddressSpaces.ll
+++ /dev/null
@@ -1,25 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | grep {addrspace(33)} | count 7
-; RUN: llvm-as < %s | llvm-dis | grep {addrspace(42)} | count 2
-; RUN: llvm-as < %s | llvm-dis | grep {addrspace(66)} | count 2
-; RUN: llvm-as < %s | llvm-dis | grep {addrspace(11)} | count 6
-; RUN: llvm-as < %s | llvm-dis | grep {addrspace(22)} | count 5
-
- %struct.mystruct = type { i32, i32 addrspace(33)*, i32, i32 addrspace(33)* }
- at input = weak addrspace(42) global %struct.mystruct zeroinitializer ; <%struct.mystruct addrspace(42)*> [#uses=1]
- at output = addrspace(66) global %struct.mystruct zeroinitializer ; <%struct.mystruct addrspace(66)*> [#uses=1]
- at y = external addrspace(33) global i32 addrspace(11)* addrspace(22)* ; <i32 addrspace(11)* addrspace(22)* addrspace(33)*> [#uses=1]
-
-define void @foo() {
-entry:
- %tmp1 = load i32 addrspace(33)* addrspace(42)* getelementptr (%struct.mystruct addrspace(42)* @input, i32 0, i32 3), align 4 ; <i32 addrspace(33)*> [#uses=1]
- store i32 addrspace(33)* %tmp1, i32 addrspace(33)* addrspace(66)* getelementptr (%struct.mystruct addrspace(66)* @output, i32 0, i32 1), align 4
- ret void
-}
-
-define i32 addrspace(11)* @bar(i32 addrspace(11)* addrspace(22)* addrspace(33)* %x) {
-entry:
- %tmp1 = load i32 addrspace(11)* addrspace(22)* addrspace(33)* @y, align 4 ; <i32 addrspace(11)* addrspace(22)*> [#uses=2]
- store i32 addrspace(11)* addrspace(22)* %tmp1, i32 addrspace(11)* addrspace(22)* addrspace(33)* %x, align 4
- %tmp5 = load i32 addrspace(11)* addrspace(22)* %tmp1, align 4 ; <i32 addrspace(11)*> [#uses=1]
- ret i32 addrspace(11)* %tmp5
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2008-01-11-VarargAttrs.ll b/libclamav/c++/llvm/test/Assembler/2008-01-11-VarargAttrs.ll
deleted file mode 100644
index c0aedc8..0000000
--- a/libclamav/c++/llvm/test/Assembler/2008-01-11-VarargAttrs.ll
+++ /dev/null
@@ -1,10 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | grep byval
-
- %struct = type { }
-
-declare void @foo(...)
-
-define void @bar() {
- call void (...)* @foo(%struct* byval null )
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2008-02-18-IntPointerCrash.ll b/libclamav/c++/llvm/test/Assembler/2008-02-18-IntPointerCrash.ll
deleted file mode 100644
index 5a661ad..0000000
--- a/libclamav/c++/llvm/test/Assembler/2008-02-18-IntPointerCrash.ll
+++ /dev/null
@@ -1,6 +0,0 @@
-; RUN: not llvm-as %s |& grep {integer constant must have integer type}
-; PR2060
-
-define i8* @foo() {
- ret i8* 0
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2008-02-20-MultipleReturnValue.ll b/libclamav/c++/llvm/test/Assembler/2008-02-20-MultipleReturnValue.ll
deleted file mode 100644
index 32c893a..0000000
--- a/libclamav/c++/llvm/test/Assembler/2008-02-20-MultipleReturnValue.ll
+++ /dev/null
@@ -1,22 +0,0 @@
-; RUN: opt < %s -verify -S | llvm-as -disable-output
-
-define {i32, i8} @foo(i32 %p) {
- ret i32 1, i8 2
-}
-
-define i8 @f2(i32 %p) {
- %c = call {i32, i8} @foo(i32 %p)
- %d = getresult {i32, i8} %c, 1
- %e = add i8 %d, 1
- ret i8 %e
-}
-
-define i32 @f3(i32 %p) {
- %c = invoke {i32, i8} @foo(i32 %p)
- to label %L unwind label %L2
- L:
- %d = getresult {i32, i8} %c, 0
- ret i32 %d
- L2:
- ret i32 0
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2008-07-10-APInt.ll b/libclamav/c++/llvm/test/Assembler/2008-07-10-APInt.ll
deleted file mode 100644
index 99347e9..0000000
--- a/libclamav/c++/llvm/test/Assembler/2008-07-10-APInt.ll
+++ /dev/null
@@ -1,9 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis
-; PR2538
-target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
-target triple = "i686-pc-linux-gnu"
-
-define i128 @a() {
- ret i128 18446744073709551616
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2008-09-02-FunctionNotes.ll b/libclamav/c++/llvm/test/Assembler/2008-09-02-FunctionNotes.ll
deleted file mode 100644
index 761c91e..0000000
--- a/libclamav/c++/llvm/test/Assembler/2008-09-02-FunctionNotes.ll
+++ /dev/null
@@ -1,14 +0,0 @@
-; Test function attributes
-; RUN: llvm-as < %s | llvm-dis | grep inline | count 2
-
-define void @fn1() alwaysinline {
- ret void
-}
-
-define void @fn2() noinline {
- ret void
-}
-
-define void @fn3() {
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2008-09-02-FunctionNotes2.ll b/libclamav/c++/llvm/test/Assembler/2008-09-02-FunctionNotes2.ll
deleted file mode 100644
index 8a49e89..0000000
--- a/libclamav/c++/llvm/test/Assembler/2008-09-02-FunctionNotes2.ll
+++ /dev/null
@@ -1,6 +0,0 @@
-; Test function notes
-; RUN: not llvm-as %s -o /dev/null |& grep "Attributes noinline alwaysinline are incompatible"
-define void @fn1() alwaysinline noinline {
- ret void
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2008-09-29-RetAttr.ll b/libclamav/c++/llvm/test/Assembler/2008-09-29-RetAttr.ll
deleted file mode 100644
index f7db96d..0000000
--- a/libclamav/c++/llvm/test/Assembler/2008-09-29-RetAttr.ll
+++ /dev/null
@@ -1,13 +0,0 @@
-; Test return attributes
-; RUN: llvm-as < %s | llvm-dis | grep "define inreg i32"
-; RUN: llvm-as < %s | llvm-dis | grep "call inreg i32"
-
-define inreg i32 @fn1() {
- ret i32 0
-}
-
-define void @fn2() {
- %t = call inreg i32 @fn1()
- ret void
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/2008-10-14-NamedTypeOnInteger.ll b/libclamav/c++/llvm/test/Assembler/2008-10-14-NamedTypeOnInteger.ll
deleted file mode 100644
index 009489d..0000000
--- a/libclamav/c++/llvm/test/Assembler/2008-10-14-NamedTypeOnInteger.ll
+++ /dev/null
@@ -1,6 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis
-; PR2733
-
-%t1 = type i32
-%t2 = type { %t1 }
- at i1 = constant %t2 { %t1 15 }
diff --git a/libclamav/c++/llvm/test/Assembler/2008-10-14-QuoteInName.ll b/libclamav/c++/llvm/test/Assembler/2008-10-14-QuoteInName.ll
deleted file mode 100644
index ccd7779..0000000
--- a/libclamav/c++/llvm/test/Assembler/2008-10-14-QuoteInName.ll
+++ /dev/null
@@ -1,3 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | grep "quote"
-
-@"a\22quote" = global i32 0
diff --git a/libclamav/c++/llvm/test/Assembler/2009-02-01-UnnamedForwardRef.ll b/libclamav/c++/llvm/test/Assembler/2009-02-01-UnnamedForwardRef.ll
deleted file mode 100644
index 9c6e20d..0000000
--- a/libclamav/c++/llvm/test/Assembler/2009-02-01-UnnamedForwardRef.ll
+++ /dev/null
@@ -1,6 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis
-; PR3372
-
- at X = global i32* @0
-global i32 4
-
diff --git a/libclamav/c++/llvm/test/Assembler/2009-02-28-CastOpc.ll b/libclamav/c++/llvm/test/Assembler/2009-02-28-CastOpc.ll
deleted file mode 100644
index ee98d41..0000000
--- a/libclamav/c++/llvm/test/Assembler/2009-02-28-CastOpc.ll
+++ /dev/null
@@ -1,8 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis
-
-type i32
-
-define void @foo() {
- bitcast %0* null to i32*
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Assembler/2009-02-28-StripOpaqueName.ll b/libclamav/c++/llvm/test/Assembler/2009-02-28-StripOpaqueName.ll
deleted file mode 100644
index f61a44c..0000000
--- a/libclamav/c++/llvm/test/Assembler/2009-02-28-StripOpaqueName.ll
+++ /dev/null
@@ -1,6 +0,0 @@
-; RUN: opt < %s -strip -S | llvm-as | llvm-dis
-
-; Stripping the name from A should not break references to it.
-%A = type opaque
- at g1 = external global %A
- at g2 = global %A* @g1
diff --git a/libclamav/c++/llvm/test/Assembler/2009-03-24-ZextConstantExpr.ll b/libclamav/c++/llvm/test/Assembler/2009-03-24-ZextConstantExpr.ll
deleted file mode 100644
index daedb95..0000000
--- a/libclamav/c++/llvm/test/Assembler/2009-03-24-ZextConstantExpr.ll
+++ /dev/null
@@ -1,11 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis
-; PR3876
- at gdtr = external global [0 x i8]
-
-define void @test() {
- call zeroext i1 @paging_map(i64 zext (i32 and (i32 ptrtoint ([0 x i8]* @gdtr to i32), i32 -4096) to i64))
- ret void
-}
-
-declare zeroext i1 @paging_map(i64)
-
diff --git a/libclamav/c++/llvm/test/Assembler/2009-04-25-AliasGEP.ll b/libclamav/c++/llvm/test/Assembler/2009-04-25-AliasGEP.ll
deleted file mode 100644
index 6d07208..0000000
--- a/libclamav/c++/llvm/test/Assembler/2009-04-25-AliasGEP.ll
+++ /dev/null
@@ -1,8 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis
-; PR4066
-target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
-target triple = "i386-apple-darwin9"
- %struct.i2c_device_id = type { }
- at w83l785ts_id = internal constant [0 x %struct.i2c_device_id] zeroinitializer, align 1 ; <[0 x %struct.i2c_device_id]*> [#uses=1]
-
- at __mod_i2c_device_table = alias getelementptr ([0 x %struct.i2c_device_id]* @w83l785ts_id, i32 0, i32 0) ; <%struct.i2c_device_id*> [#uses=0]
diff --git a/libclamav/c++/llvm/test/Assembler/2009-07-24-ZeroArgGEP.ll b/libclamav/c++/llvm/test/Assembler/2009-07-24-ZeroArgGEP.ll
deleted file mode 100644
index 2a3d114..0000000
--- a/libclamav/c++/llvm/test/Assembler/2009-07-24-ZeroArgGEP.ll
+++ /dev/null
@@ -1,5 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
- at foo = global i32 0
- at bar = constant i32* getelementptr(i32* @foo)
-
diff --git a/libclamav/c++/llvm/test/Assembler/2010-01-06-UnionType.ll b/libclamav/c++/llvm/test/Assembler/2010-01-06-UnionType.ll
deleted file mode 100644
index 37130d6..0000000
--- a/libclamav/c++/llvm/test/Assembler/2010-01-06-UnionType.ll
+++ /dev/null
@@ -1,3 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
-%X = type union { i32, i32* }
diff --git a/libclamav/c++/llvm/test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll b/libclamav/c++/llvm/test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll
deleted file mode 100644
index b2256b1..0000000
--- a/libclamav/c++/llvm/test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll
+++ /dev/null
@@ -1,25 +0,0 @@
-; RUN: opt -std-compile-opts < %s | llvm-dis | not grep badref
-
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
-target triple = "x86_64-apple-darwin10.2"
-
-%struct.anon = type { i32, i32 }
-%struct.test = type { i64, %struct.anon, %struct.test* }
-
- at TestArrayPtr = global %struct.test* getelementptr inbounds ([10 x %struct.test]* @TestArray, i64 0, i64 3) ; <%struct.test**> [#uses=1]
- at TestArray = common global [10 x %struct.test] zeroinitializer, align 32 ; <[10 x %struct.test]*> [#uses=2]
-
-define i32 @main() nounwind readonly {
- %diff1 = alloca i64 ; <i64*> [#uses=2]
- call void @llvm.dbg.declare(metadata !{i64* %diff1}, metadata !0)
- store i64 72, i64* %diff1, align 8
- %v1 = load %struct.test** @TestArrayPtr, align 8 ; <%struct.test*> [#uses=1]
- %v2 = ptrtoint %struct.test* %v1 to i64 ; <i64> [#uses=1]
- %v3 = sub i64 %v2, ptrtoint ([10 x %struct.test]* @TestArray to i64) ; <i64> [#uses=1]
- store i64 %v3, i64* %diff1, align 8
- ret i32 4
-}
-
-declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone
-
-!0 = metadata !{i32 459008, metadata !0, metadata !0, metadata !0, i32 38, metadata !0} ; [ DW_TAG_auto_variable ]
diff --git a/libclamav/c++/llvm/test/Assembler/AutoUpgradeIntrinsics.ll b/libclamav/c++/llvm/test/Assembler/AutoUpgradeIntrinsics.ll
deleted file mode 100644
index af4ec92..0000000
--- a/libclamav/c++/llvm/test/Assembler/AutoUpgradeIntrinsics.ll
+++ /dev/null
@@ -1,81 +0,0 @@
-; Tests to make sure intrinsics are automatically upgraded.
-; RUN: llvm-as < %s | llvm-dis | not grep {i32 @llvm\\.ct}
-; RUN: llvm-as < %s | llvm-dis | \
-; RUN: not grep {llvm\\.part\\.set\\.i\[0-9\]*\\.i\[0-9\]*\\.i\[0-9\]*}
-; RUN: llvm-as < %s | llvm-dis | \
-; RUN: not grep {llvm\\.part\\.select\\.i\[0-9\]*\\.i\[0-9\]*}
-; RUN: llvm-as < %s | llvm-dis | \
-; RUN: not grep {llvm\\.bswap\\.i\[0-9\]*\\.i\[0-9\]*}
-; RUN: llvm-as < %s | llvm-dis | \
-; RUN: grep {llvm\\.x86\\.mmx\\.ps} | grep {\\\<2 x i32\\\>} | count 6
-
-declare i32 @llvm.ctpop.i28(i28 %val)
-declare i32 @llvm.cttz.i29(i29 %val)
-declare i32 @llvm.ctlz.i30(i30 %val)
-
-define i32 @test_ct(i32 %A) {
- %c1 = call i32 @llvm.ctpop.i28(i28 1234)
- %c2 = call i32 @llvm.cttz.i29(i29 2345)
- %c3 = call i32 @llvm.ctlz.i30(i30 3456)
- %r1 = add i32 %c1, %c2
- %r2 = add i32 %r1, %c3
- ret i32 %r2
-}
-
-declare i32 @llvm.part.set.i32.i32.i32(i32 %x, i32 %rep, i32 %hi, i32 %lo)
-declare i16 @llvm.part.set.i16.i16.i16(i16 %x, i16 %rep, i32 %hi, i32 %lo)
-define i32 @test_part_set(i32 %A, i16 %B) {
- %a = call i32 @llvm.part.set.i32.i32.i32(i32 %A, i32 27, i32 8, i32 0)
- %b = call i16 @llvm.part.set.i16.i16.i16(i16 %B, i16 27, i32 8, i32 0)
- %c = zext i16 %b to i32
- %d = add i32 %a, %c
- ret i32 %d
-}
-
-declare i32 @llvm.part.select.i32.i32(i32 %x, i32 %hi, i32 %lo)
-declare i16 @llvm.part.select.i16.i16(i16 %x, i32 %hi, i32 %lo)
-define i32 @test_part_select(i32 %A, i16 %B) {
- %a = call i32 @llvm.part.select.i32.i32(i32 %A, i32 8, i32 0)
- %b = call i16 @llvm.part.select.i16.i16(i16 %B, i32 8, i32 0)
- %c = zext i16 %b to i32
- %d = add i32 %a, %c
- ret i32 %d
-}
-
-declare i32 @llvm.bswap.i32.i32(i32 %x)
-declare i16 @llvm.bswap.i16.i16(i16 %x)
-define i32 @test_bswap(i32 %A, i16 %B) {
- %a = call i32 @llvm.bswap.i32.i32(i32 %A)
- %b = call i16 @llvm.bswap.i16.i16(i16 %B)
- %c = zext i16 %b to i32
- %d = add i32 %a, %c
- ret i32 %d
-}
-
-declare <4 x i16> @llvm.x86.mmx.psra.w(<4 x i16>, <2 x i32>) nounwind readnone
-declare <4 x i16> @llvm.x86.mmx.psll.w(<4 x i16>, <2 x i32>) nounwind readnone
-declare <4 x i16> @llvm.x86.mmx.psrl.w(<4 x i16>, <2 x i32>) nounwind readnone
-define void @sh16(<4 x i16> %A, <2 x i32> %B) {
- %r1 = call <4 x i16> @llvm.x86.mmx.psra.w( <4 x i16> %A, <2 x i32> %B ) ; <<4 x i16>> [#uses=0]
- %r2 = call <4 x i16> @llvm.x86.mmx.psll.w( <4 x i16> %A, <2 x i32> %B ) ; <<4 x i16>> [#uses=0]
- %r3 = call <4 x i16> @llvm.x86.mmx.psrl.w( <4 x i16> %A, <2 x i32> %B ) ; <<4 x i16>> [#uses=0]
- ret void
-}
-
-declare <2 x i32> @llvm.x86.mmx.psra.d(<2 x i32>, <2 x i32>) nounwind readnone
-declare <2 x i32> @llvm.x86.mmx.psll.d(<2 x i32>, <2 x i32>) nounwind readnone
-declare <2 x i32> @llvm.x86.mmx.psrl.d(<2 x i32>, <2 x i32>) nounwind readnone
-define void @sh32(<2 x i32> %A, <2 x i32> %B) {
- %r1 = call <2 x i32> @llvm.x86.mmx.psra.d( <2 x i32> %A, <2 x i32> %B ) ; <<2 x i32>> [#uses=0]
- %r2 = call <2 x i32> @llvm.x86.mmx.psll.d( <2 x i32> %A, <2 x i32> %B ) ; <<2 x i32>> [#uses=0]
- %r3 = call <2 x i32> @llvm.x86.mmx.psrl.d( <2 x i32> %A, <2 x i32> %B ) ; <<2 x i32>> [#uses=0]
- ret void
-}
-
-declare <1 x i64> @llvm.x86.mmx.psll.q(<1 x i64>, <2 x i32>) nounwind readnone
-declare <1 x i64> @llvm.x86.mmx.psrl.q(<1 x i64>, <2 x i32>) nounwind readnone
-define void @sh64(<1 x i64> %A, <2 x i32> %B) {
- %r1 = call <1 x i64> @llvm.x86.mmx.psll.q( <1 x i64> %A, <2 x i32> %B ) ; <<1 x i64>> [#uses=0]
- %r2 = call <1 x i64> @llvm.x86.mmx.psrl.q( <1 x i64> %A, <2 x i32> %B ) ; <<1 x i64>> [#uses=0]
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Assembler/ConstantExprFold.ll b/libclamav/c++/llvm/test/Assembler/ConstantExprFold.ll
deleted file mode 100644
index d3d374a..0000000
--- a/libclamav/c++/llvm/test/Assembler/ConstantExprFold.ll
+++ /dev/null
@@ -1,31 +0,0 @@
-; This test checks to make sure that constant exprs fold in some simple
-; situations
-
-; RUN: llvm-as < %s | llvm-dis | not grep {(}
-
- at A = global i64 0
-
-global i64* inttoptr (i64 add (i64 ptrtoint (i64* @A to i64), i64 0) to i64*) ; X + 0 == X
-global i64* inttoptr (i64 sub (i64 ptrtoint (i64* @A to i64), i64 0) to i64*) ; X - 0 == X
-global i64* inttoptr (i64 mul (i64 ptrtoint (i64* @A to i64), i64 0) to i64*) ; X * 0 == 0
-global i64* inttoptr (i64 sdiv (i64 ptrtoint (i64* @A to i64), i64 1) to i64*) ; X / 1 == X
-global i64* inttoptr (i64 srem (i64 ptrtoint (i64* @A to i64), i64 1) to i64*) ; X % 1 == 0
-global i64* inttoptr (i64 and (i64 ptrtoint (i64* @A to i64), i64 0) to i64*) ; X & 0 == 0
-global i64* inttoptr (i64 and (i64 ptrtoint (i64* @A to i64), i64 -1) to i64*) ; X & -1 == X
-global i64 or (i64 ptrtoint (i64* @A to i64), i64 -1) ; X | -1 == -1
-global i64* inttoptr (i64 xor (i64 ptrtoint (i64* @A to i64), i64 0) to i64*) ; X ^ 0 == X
-
-%Ty = type { i32, i32 }
- at B = external global %Ty
-
-global i1 icmp slt (i64* @A, i64* getelementptr (i64* @A, i64 1)) ; true
-global i1 icmp ult (i64* @A, i64* getelementptr (i64* @A, i64 1)) ; true
-global i1 icmp slt (i64* @A, i64* getelementptr (i64* @A, i64 0)) ; false
-global i1 icmp slt (i32* getelementptr (%Ty* @B, i64 0, i32 0),
- i32* getelementptr (%Ty* @B, i64 0, i32 1)) ; true
-;global i1 icmp ne (i64* @A, i64* bitcast (%Ty* @B to i64*)) ; true
-
-; PR2206
- at cons = weak global i32 0, align 8 ; <i32*> [#uses=1]
-global i64 and (i64 ptrtoint (i32* @cons to i64), i64 7)
-
diff --git a/libclamav/c++/llvm/test/Assembler/ConstantExprFoldCast.ll b/libclamav/c++/llvm/test/Assembler/ConstantExprFoldCast.ll
deleted file mode 100644
index 0ce6e84..0000000
--- a/libclamav/c++/llvm/test/Assembler/ConstantExprFoldCast.ll
+++ /dev/null
@@ -1,14 +0,0 @@
-; This test checks to make sure that constant exprs fold in some simple situations
-
-; RUN: llvm-as < %s | llvm-dis | not grep cast
-
- at A = global i32* bitcast (i8* null to i32*) ; Cast null -> fold
- at B = global i32** bitcast (i32** @A to i32**) ; Cast to same type -> fold
- at C = global i32 trunc (i64 42 to i32) ; Integral casts
- at D = global i32* bitcast(float* bitcast (i32* @C to float*) to i32*) ; cast of cast ptr->ptr
- at E = global i32 ptrtoint(float* inttoptr (i8 5 to float*) to i32) ; i32 -> ptr -> i32
-
-; Test folding of binary instrs
- at F = global i32* inttoptr (i32 add (i32 5, i32 -5) to i32*)
- at G = global i32* inttoptr (i32 sub (i32 5, i32 5) to i32*)
-
diff --git a/libclamav/c++/llvm/test/Assembler/MultipleReturnValueType.ll b/libclamav/c++/llvm/test/Assembler/MultipleReturnValueType.ll
deleted file mode 100644
index 6177143..0000000
--- a/libclamav/c++/llvm/test/Assembler/MultipleReturnValueType.ll
+++ /dev/null
@@ -1,13 +0,0 @@
-; RUN: llvm-as < %s
-
- %struct.S_102 = type { float, float }
-
-declare %struct.S_102 @f_102() nounwind
-
- at callthis = external global void ()* ; <void ()**> [#uses=50]
-
-
-define void @foo() {
- store void ()* bitcast (%struct.S_102 ()* @f_102 to void ()*), void ()** @callthis, align 8
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Assembler/aggregate-constant-values.ll b/libclamav/c++/llvm/test/Assembler/aggregate-constant-values.ll
deleted file mode 100644
index a37d03e..0000000
--- a/libclamav/c++/llvm/test/Assembler/aggregate-constant-values.ll
+++ /dev/null
@@ -1,27 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | grep 7 | count 3
-
-define void @foo({i32, i32}* %x) nounwind {
- store {i32, i32}{i32 7, i32 9}, {i32, i32}* %x
- ret void
-}
-define void @foo_empty({}* %x) nounwind {
- store {}{}, {}* %x
- ret void
-}
-define void @bar([2 x i32]* %x) nounwind {
- store [2 x i32][i32 7, i32 9], [2 x i32]* %x
- ret void
-}
-define void @bar_empty([0 x i32]* %x) nounwind {
- store [0 x i32][], [0 x i32]* %x
- ret void
-}
-define void @qux(<{i32, i32}>* %x) nounwind {
- store <{i32, i32}><{i32 7, i32 9}>, <{i32, i32}>* %x
- ret void
-}
-define void @qux_empty(<{}>* %x) nounwind {
- store <{}><{}>, <{}>* %x
- ret void
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/aggregate-return-single-value.ll b/libclamav/c++/llvm/test/Assembler/aggregate-return-single-value.ll
deleted file mode 100644
index 02fb59f..0000000
--- a/libclamav/c++/llvm/test/Assembler/aggregate-return-single-value.ll
+++ /dev/null
@@ -1,14 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis
-
-define { i32 } @fooa() nounwind {
- ret i32 0
-}
-define { i32 } @foob() nounwind {
- ret {i32}{ i32 0 }
-}
-define [1 x i32] @fooc() nounwind {
- ret i32 0
-}
-define [1 x i32] @food() nounwind {
- ret [1 x i32][ i32 0 ]
-}
diff --git a/libclamav/c++/llvm/test/Assembler/alignstack.ll b/libclamav/c++/llvm/test/Assembler/alignstack.ll
deleted file mode 100644
index 9f2059f..0000000
--- a/libclamav/c++/llvm/test/Assembler/alignstack.ll
+++ /dev/null
@@ -1,36 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | FileCheck %s
-target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
-target triple = "i386-apple-darwin10.0"
-
-define void @test1() nounwind {
-; CHECK: test1
-; CHECK: sideeffect
-; CHECK-NOT: alignstack
- tail call void asm sideeffect "mov", "~{dirflag},~{fpsr},~{flags}"() nounwind
- ret void
-; CHECK: ret
-}
-define void @test2() nounwind {
-; CHECK: test2
-; CHECK: sideeffect
-; CHECK: alignstack
- tail call void asm sideeffect alignstack "mov", "~{dirflag},~{fpsr},~{flags}"() nounwind
- ret void
-; CHECK: ret
-}
-define void @test3() nounwind {
-; CHECK: test3
-; CHECK-NOT: sideeffect
-; CHECK: alignstack
- tail call void asm alignstack "mov", "~{dirflag},~{fpsr},~{flags}"() nounwind
- ret void
-; CHECK: ret
-}
-define void @test4() nounwind {
-; CHECK: test4
-; CHECK-NOT: sideeffect
-; CHECK-NOT: alignstack
- tail call void asm "mov", "~{dirflag},~{fpsr},~{flags}"() nounwind
- ret void
-; CHECK: ret
-}
diff --git a/libclamav/c++/llvm/test/Assembler/anon-functions.ll b/libclamav/c++/llvm/test/Assembler/anon-functions.ll
deleted file mode 100644
index ac06e8c..0000000
--- a/libclamav/c++/llvm/test/Assembler/anon-functions.ll
+++ /dev/null
@@ -1,26 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis
-; PR3611
-
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
-target triple = "x86_64-unknown-linux-gnu"
-
- at f = alias void ()* @0 ; <void ()*> [#uses=0]
- at g = alias void ()* @1 ; <void ()*> [#uses=0]
- at h = external global void ()* ; <void ()*> [#uses=0]
-
-define internal void @0() nounwind {
-entry:
- store void()* @0, void()** @h
- br label %return
-
-return: ; preds = %entry
- ret void
-}
-
-define internal void @1() nounwind {
-entry:
- br label %return
-
-return: ; preds = %entry
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Assembler/bcwrap.ll b/libclamav/c++/llvm/test/Assembler/bcwrap.ll
deleted file mode 100644
index 859dc4b..0000000
--- a/libclamav/c++/llvm/test/Assembler/bcwrap.ll
+++ /dev/null
@@ -1,9 +0,0 @@
-; RUN: llvm-as < %s > %t
-; RUN: llvm-nm %t | grep foo
-; test for isBitcodeFile, llvm-nm must read from a file for this test
-target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
-target triple = "i686-apple-darwin9.2.2"
-
-define i32 @foo() {
- ret i32 0
-}
diff --git a/libclamav/c++/llvm/test/Assembler/dg.exp b/libclamav/c++/llvm/test/Assembler/dg.exp
deleted file mode 100644
index f200589..0000000
--- a/libclamav/c++/llvm/test/Assembler/dg.exp
+++ /dev/null
@@ -1,3 +0,0 @@
-load_lib llvm.exp
-
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
diff --git a/libclamav/c++/llvm/test/Assembler/flags.ll b/libclamav/c++/llvm/test/Assembler/flags.ll
deleted file mode 100644
index 3241909..0000000
--- a/libclamav/c++/llvm/test/Assembler/flags.ll
+++ /dev/null
@@ -1,212 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | FileCheck %s
-
- at addr = external global i64
-
-define i64 @add_unsigned(i64 %x, i64 %y) {
-; CHECK: %z = add nuw i64 %x, %y
- %z = add nuw i64 %x, %y
- ret i64 %z
-}
-
-define i64 @sub_unsigned(i64 %x, i64 %y) {
-; CHECK: %z = sub nuw i64 %x, %y
- %z = sub nuw i64 %x, %y
- ret i64 %z
-}
-
-define i64 @mul_unsigned(i64 %x, i64 %y) {
-; CHECK: %z = mul nuw i64 %x, %y
- %z = mul nuw i64 %x, %y
- ret i64 %z
-}
-
-define i64 @add_signed(i64 %x, i64 %y) {
-; CHECK: %z = add nsw i64 %x, %y
- %z = add nsw i64 %x, %y
- ret i64 %z
-}
-
-define i64 @sub_signed(i64 %x, i64 %y) {
-; CHECK: %z = sub nsw i64 %x, %y
- %z = sub nsw i64 %x, %y
- ret i64 %z
-}
-
-define i64 @mul_signed(i64 %x, i64 %y) {
-; CHECK: %z = mul nsw i64 %x, %y
- %z = mul nsw i64 %x, %y
- ret i64 %z
-}
-
-define i64 @add_plain(i64 %x, i64 %y) {
-; CHECK: %z = add i64 %x, %y
- %z = add i64 %x, %y
- ret i64 %z
-}
-
-define i64 @sub_plain(i64 %x, i64 %y) {
-; CHECK: %z = sub i64 %x, %y
- %z = sub i64 %x, %y
- ret i64 %z
-}
-
-define i64 @mul_plain(i64 %x, i64 %y) {
-; CHECK: %z = mul i64 %x, %y
- %z = mul i64 %x, %y
- ret i64 %z
-}
-
-define i64 @add_both(i64 %x, i64 %y) {
-; CHECK: %z = add nuw nsw i64 %x, %y
- %z = add nuw nsw i64 %x, %y
- ret i64 %z
-}
-
-define i64 @sub_both(i64 %x, i64 %y) {
-; CHECK: %z = sub nuw nsw i64 %x, %y
- %z = sub nuw nsw i64 %x, %y
- ret i64 %z
-}
-
-define i64 @mul_both(i64 %x, i64 %y) {
-; CHECK: %z = mul nuw nsw i64 %x, %y
- %z = mul nuw nsw i64 %x, %y
- ret i64 %z
-}
-
-define i64 @add_both_reversed(i64 %x, i64 %y) {
-; CHECK: %z = add nuw nsw i64 %x, %y
- %z = add nsw nuw i64 %x, %y
- ret i64 %z
-}
-
-define i64 @sub_both_reversed(i64 %x, i64 %y) {
-; CHECK: %z = sub nuw nsw i64 %x, %y
- %z = sub nsw nuw i64 %x, %y
- ret i64 %z
-}
-
-define i64 @mul_both_reversed(i64 %x, i64 %y) {
-; CHECK: %z = mul nuw nsw i64 %x, %y
- %z = mul nsw nuw i64 %x, %y
- ret i64 %z
-}
-
-define i64 @sdiv_exact(i64 %x, i64 %y) {
-; CHECK: %z = sdiv exact i64 %x, %y
- %z = sdiv exact i64 %x, %y
- ret i64 %z
-}
-
-define i64 @sdiv_plain(i64 %x, i64 %y) {
-; CHECK: %z = sdiv i64 %x, %y
- %z = sdiv i64 %x, %y
- ret i64 %z
-}
-
-define i64* @gep_nw(i64* %p, i64 %x) {
-; CHECK: %z = getelementptr inbounds i64* %p, i64 %x
- %z = getelementptr inbounds i64* %p, i64 %x
- ret i64* %z
-}
-
-define i64* @gep_plain(i64* %p, i64 %x) {
-; CHECK: %z = getelementptr i64* %p, i64 %x
- %z = getelementptr i64* %p, i64 %x
- ret i64* %z
-}
-
-define i64 @add_both_ce() {
-; CHECK: ret i64 add nuw nsw (i64 ptrtoint (i64* @addr to i64), i64 91)
- ret i64 add nsw nuw (i64 ptrtoint (i64* @addr to i64), i64 91)
-}
-
-define i64 @sub_both_ce() {
-; CHECK: ret i64 sub nuw nsw (i64 ptrtoint (i64* @addr to i64), i64 91)
- ret i64 sub nsw nuw (i64 ptrtoint (i64* @addr to i64), i64 91)
-}
-
-define i64 @mul_both_ce() {
-; CHECK: ret i64 mul nuw nsw (i64 ptrtoint (i64* @addr to i64), i64 91)
- ret i64 mul nuw nsw (i64 ptrtoint (i64* @addr to i64), i64 91)
-}
-
-define i64 @sdiv_exact_ce() {
-; CHECK: ret i64 sdiv exact (i64 ptrtoint (i64* @addr to i64), i64 91)
- ret i64 sdiv exact (i64 ptrtoint (i64* @addr to i64), i64 91)
-}
-
-define i64* @gep_nw_ce() {
-; CHECK: ret i64* getelementptr inbounds (i64* @addr, i64 171)
- ret i64* getelementptr inbounds (i64* @addr, i64 171)
-}
-
-define i64 @add_plain_ce() {
-; CHECK: ret i64 add (i64 ptrtoint (i64* @addr to i64), i64 91)
- ret i64 add (i64 ptrtoint (i64* @addr to i64), i64 91)
-}
-
-define i64 @sub_plain_ce() {
-; CHECK: ret i64 sub (i64 ptrtoint (i64* @addr to i64), i64 91)
- ret i64 sub (i64 ptrtoint (i64* @addr to i64), i64 91)
-}
-
-define i64 @mul_plain_ce() {
-; CHECK: ret i64 mul (i64 ptrtoint (i64* @addr to i64), i64 91)
- ret i64 mul (i64 ptrtoint (i64* @addr to i64), i64 91)
-}
-
-define i64 @sdiv_plain_ce() {
-; CHECK: ret i64 sdiv (i64 ptrtoint (i64* @addr to i64), i64 91)
- ret i64 sdiv (i64 ptrtoint (i64* @addr to i64), i64 91)
-}
-
-define i64* @gep_plain_ce() {
-; CHECK: ret i64* getelementptr (i64* @addr, i64 171)
- ret i64* getelementptr (i64* @addr, i64 171)
-}
-
-define i64 @add_both_reversed_ce() {
-; CHECK: ret i64 add nuw nsw (i64 ptrtoint (i64* @addr to i64), i64 91)
- ret i64 add nsw nuw (i64 ptrtoint (i64* @addr to i64), i64 91)
-}
-
-define i64 @sub_both_reversed_ce() {
-; CHECK: ret i64 sub nuw nsw (i64 ptrtoint (i64* @addr to i64), i64 91)
- ret i64 sub nsw nuw (i64 ptrtoint (i64* @addr to i64), i64 91)
-}
-
-define i64 @mul_both_reversed_ce() {
-; CHECK: ret i64 mul nuw nsw (i64 ptrtoint (i64* @addr to i64), i64 91)
- ret i64 mul nsw nuw (i64 ptrtoint (i64* @addr to i64), i64 91)
-}
-
-define i64 @add_signed_ce() {
-; CHECK: ret i64 add nsw (i64 ptrtoint (i64* @addr to i64), i64 91)
- ret i64 add nsw (i64 ptrtoint (i64* @addr to i64), i64 91)
-}
-
-define i64 @sub_signed_ce() {
-; CHECK: ret i64 sub nsw (i64 ptrtoint (i64* @addr to i64), i64 91)
- ret i64 sub nsw (i64 ptrtoint (i64* @addr to i64), i64 91)
-}
-
-define i64 @mul_signed_ce() {
-; CHECK: ret i64 mul nsw (i64 ptrtoint (i64* @addr to i64), i64 91)
- ret i64 mul nsw (i64 ptrtoint (i64* @addr to i64), i64 91)
-}
-
-define i64 @add_unsigned_ce() {
-; CHECK: ret i64 add nuw (i64 ptrtoint (i64* @addr to i64), i64 91)
- ret i64 add nuw (i64 ptrtoint (i64* @addr to i64), i64 91)
-}
-
-define i64 @sub_unsigned_ce() {
-; CHECK: ret i64 sub nuw (i64 ptrtoint (i64* @addr to i64), i64 91)
- ret i64 sub nuw (i64 ptrtoint (i64* @addr to i64), i64 91)
-}
-
-define i64 @mul_unsigned_ce() {
-; CHECK: ret i64 mul nuw (i64 ptrtoint (i64* @addr to i64), i64 91)
- ret i64 mul nuw (i64 ptrtoint (i64* @addr to i64), i64 91)
-}
diff --git a/libclamav/c++/llvm/test/Assembler/functionlocal-metadata.ll b/libclamav/c++/llvm/test/Assembler/functionlocal-metadata.ll
deleted file mode 100644
index 216587d..0000000
--- a/libclamav/c++/llvm/test/Assembler/functionlocal-metadata.ll
+++ /dev/null
@@ -1,44 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | FileCheck %s
-
-define void @Foo(i32 %a, i32 %b) {
-entry:
- call void @llvm.dbg.value(metadata !{ i32* %1 }, i64 16, metadata !"bar")
-; CHECK: call void @llvm.dbg.value(metadata !{i32* %1}, i64 16, metadata !"bar")
- %0 = add i32 %a, 1 ; <i32> [#uses=1]
- %two = add i32 %b, %0 ; <i32> [#uses=0]
- %1 = alloca i32 ; <i32*> [#uses=1]
-
- call void @llvm.dbg.declare(metadata !{i32* %1}, metadata !{i32* %1})
-; CHECK: metadata !{i32* %1}, metadata !{i32* %1}
- call void @llvm.dbg.declare(metadata !{i32 %two}, metadata !{i32 %0})
-; CHECK: metadata !{i32 %two}, metadata !{i32 %0}
- call void @llvm.dbg.declare(metadata !{i32 %0}, metadata !{i32* %1, i32 %0})
-; CHECK: metadata !{i32 %0}, metadata !{i32* %1, i32 %0}
- call void @llvm.dbg.declare(metadata !{i32* %1}, metadata !{i32 %b, i32 %0})
-; CHECK: metadata !{i32* %1}, metadata !{i32 %b, i32 %0}
- call void @llvm.dbg.declare(metadata !{i32 %a}, metadata !{i32 %a, metadata !"foo"})
-; CHECK: metadata !{i32 %a}, metadata !{i32 %a, metadata !"foo"}
- call void @llvm.dbg.declare(metadata !{i32 %b}, metadata !{metadata !0, i32 %two})
-; CHECK: metadata !{i32 %b}, metadata !{metadata !0, i32 %two}
-
- call void @llvm.dbg.value(metadata !{ i32 %a }, i64 0, metadata !1)
-; CHECK: metadata !{i32 %a}, i64 0, metadata !1
- call void @llvm.dbg.value(metadata !{ i32 %0 }, i64 25, metadata !0)
-; CHECK: metadata !{i32 %0}, i64 25, metadata !0
- call void @llvm.dbg.value(metadata !{ i32* %1 }, i64 16, metadata !"foo")
-; CHECK: call void @llvm.dbg.value(metadata !{i32* %1}, i64 16, metadata !"foo")
- call void @llvm.dbg.value(metadata !"foo", i64 12, metadata !"bar")
-; CHECK: metadata !"foo", i64 12, metadata !"bar"
-
- ret void, !foo !0, !bar !1
-; CHECK: ret void, !foo !0, !bar !1
-}
-
-!0 = metadata !{i32 662302, i32 26, metadata !1, null}
-!1 = metadata !{i32 4, metadata !"foo"}
-
-declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone
-declare void @llvm.dbg.value(metadata, i64, metadata) nounwind readnone
-
-!foo = !{ !0 }
-!bar = !{ !1 }
diff --git a/libclamav/c++/llvm/test/Assembler/getelementptr.ll b/libclamav/c++/llvm/test/Assembler/getelementptr.ll
deleted file mode 100644
index 803d6d3..0000000
--- a/libclamav/c++/llvm/test/Assembler/getelementptr.ll
+++ /dev/null
@@ -1,22 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
-
-; Verify that over-indexed getelementptrs are folded.
- at A = external global [2 x [3 x [5 x [7 x i32]]]]
- at B = global i32* getelementptr ([2 x [3 x [5 x [7 x i32]]]]* @A, i64 0, i64 0, i64 2, i64 1, i64 7523)
-; CHECK: @B = global i32* getelementptr ([2 x [3 x [5 x [7 x i32]]]]* @A, i64 36, i64 0, i64 1, i64 0, i64 5) ; <i32**> [#uses=0]
- at C = global i32* getelementptr ([2 x [3 x [5 x [7 x i32]]]]* @A, i64 3, i64 2, i64 0, i64 0, i64 7523)
-; CHECK: @C = global i32* getelementptr ([2 x [3 x [5 x [7 x i32]]]]* @A, i64 39, i64 1, i64 1, i64 4, i64 5) ; <i32**> [#uses=0]
-
-;; Verify that i16 indices work.
- at x = external global {i32, i32}
- at y = global i32* getelementptr ({i32, i32}* @x, i16 42, i32 0)
-; CHECK: @y = global i32* getelementptr (%0* @x, i16 42, i32 0)
-
-; see if i92 indices work too.
-define i32 *@test({i32, i32}* %t, i92 %n) {
-; CHECK: @test
-; CHECK: %B = getelementptr %0* %t, i92 %n, i32 0
- %B = getelementptr {i32, i32}* %t, i92 %n, i32 0
- ret i32* %B
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/getelementptr_struct.ll b/libclamav/c++/llvm/test/Assembler/getelementptr_struct.ll
deleted file mode 100644
index c8779a6..0000000
--- a/libclamav/c++/llvm/test/Assembler/getelementptr_struct.ll
+++ /dev/null
@@ -1,12 +0,0 @@
-; RUN: not llvm-as < %s >/dev/null |& grep {invalid getelementptr indices}
-; Test the case of a incorrect indices type into struct
-
-%RT = type { i8 , [10 x [20 x i32]], i8 }
-%ST = type { i32, double, %RT }
-
-define i32* @foo(%ST* %s) {
-entry:
- %reg = getelementptr %ST* %s, i32 1, i64 2, i32 1, i32 5, i32 13
- ret i32* %reg
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/huge-array.ll b/libclamav/c++/llvm/test/Assembler/huge-array.ll
deleted file mode 100644
index e080947..0000000
--- a/libclamav/c++/llvm/test/Assembler/huge-array.ll
+++ /dev/null
@@ -1,5 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | grep 18446744073709551615 | count 2
-
-define [18446744073709551615 x i8]* @foo() {
- ret [18446744073709551615 x i8]* null
-}
diff --git a/libclamav/c++/llvm/test/Assembler/insertextractvalue.ll b/libclamav/c++/llvm/test/Assembler/insertextractvalue.ll
deleted file mode 100644
index 2f5521f..0000000
--- a/libclamav/c++/llvm/test/Assembler/insertextractvalue.ll
+++ /dev/null
@@ -1,29 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis > %t
-; RUN: grep insertvalue %t | count 1
-; RUN: grep extractvalue %t | count 1
-
-define float @foo({{i32},{float, double}}* %p) nounwind {
- %t = load {{i32},{float, double}}* %p
- %s = extractvalue {{i32},{float, double}} %t, 1, 0
- %r = insertvalue {{i32},{float, double}} %t, double 2.0, 1, 1
- store {{i32},{float, double}} %r, {{i32},{float, double}}* %p
- ret float %s
-}
-define float @bar({{i32},{float, double}}* %p) nounwind {
- store {{i32},{float, double}} insertvalue ({{i32},{float, double}}{{i32}{i32 4},{float, double}{float 4.0, double 5.0}}, double 20.0, 1, 1), {{i32},{float, double}}* %p
- ret float extractvalue ({{i32},{float, double}}{{i32}{i32 3},{float, double}{float 7.0, double 9.0}}, 1, 0)
-}
-define float @car({{i32},{float, double}}* %p) nounwind {
- store {{i32},{float, double}} insertvalue ({{i32},{float, double}} undef, double 20.0, 1, 1), {{i32},{float, double}}* %p
- ret float extractvalue ({{i32},{float, double}} undef, 1, 0)
-}
-define float @dar({{i32},{float, double}}* %p) nounwind {
- store {{i32},{float, double}} insertvalue ({{i32},{float, double}} zeroinitializer, double 20.0, 1, 1), {{i32},{float, double}}* %p
- ret float extractvalue ({{i32},{float, double}} zeroinitializer, 1, 0)
-}
-
-
-; PR4963
-define <{ i32, i32 }> @test57() {
- ret <{ i32, i32 }> insertvalue (<{ i32, i32 }> zeroinitializer, i32 4, 1)
-}
diff --git a/libclamav/c++/llvm/test/Assembler/metadata.ll b/libclamav/c++/llvm/test/Assembler/metadata.ll
deleted file mode 100644
index a52de87..0000000
--- a/libclamav/c++/llvm/test/Assembler/metadata.ll
+++ /dev/null
@@ -1,22 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep {ret void, !bar !1, !foo !0}
-define void @test() {
- add i32 2, 1, !bar !0
- add i32 1, 2, !foo !1
-
- call void @llvm.dbg.func.start(metadata !"foo")
-
- extractvalue {{i32, i32}, i32} undef, 0, 1, !foo !0
-
- ret void, !foo !0, !bar !1
-}
-
-!0 = metadata !{i32 662302, i32 26, metadata !1, null}
-!1 = metadata !{i32 4, metadata !"foo"}
-
-declare void @llvm.dbg.func.start(metadata) nounwind readnone
-
-
-!foo = !{ !0 }
-!bar = !{ !1 }
-
-; !foo = !{ !0, !"foo" }
\ No newline at end of file
diff --git a/libclamav/c++/llvm/test/Assembler/numbered-values.ll b/libclamav/c++/llvm/test/Assembler/numbered-values.ll
deleted file mode 100644
index 2439c83..0000000
--- a/libclamav/c++/llvm/test/Assembler/numbered-values.ll
+++ /dev/null
@@ -1,16 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis
-; PR2480
-
-define i32 @test(i32 %X) nounwind {
-entry:
- %X_addr = alloca i32 ; <i32*> [#uses=2]
- %retval = alloca i32 ; <i32*> [#uses=2]
- %0 = alloca i32 ; <i32*>:0 [#uses=2]
- %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
- store i32 %X, i32* %X_addr
- %1 = load i32* %X_addr, align 4 ; <i32>:1 [#uses=1]
- mul i32 %1, 4 ; <i32>:2 [#uses=1]
- %3 = add i32 %2, 123 ; <i32>:3 [#uses=1]
- store i32 %3, i32* %0, align 4
- ret i32 %3
-}
diff --git a/libclamav/c++/llvm/test/Assembler/private.ll b/libclamav/c++/llvm/test/Assembler/private.ll
deleted file mode 100644
index 3714572..0000000
--- a/libclamav/c++/llvm/test/Assembler/private.ll
+++ /dev/null
@@ -1,9 +0,0 @@
-; Test to make sure that the 'private' tag is not lost!
-;
-; RUN: llvm-as < %s | llvm-dis | grep private
-
-declare void @foo()
-
-define private void @foo() {
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Assembler/select.ll b/libclamav/c++/llvm/test/Assembler/select.ll
deleted file mode 100644
index 2d3f412..0000000
--- a/libclamav/c++/llvm/test/Assembler/select.ll
+++ /dev/null
@@ -1,9 +0,0 @@
-; RUN: llvm-as %s -o /dev/null
-
-
-define i32 @test(i1 %C, i32 %V1, i32 %V2) {
- %X = select i1 true, i1 false, i1 true ; <i1> [#uses=1]
- %V = select i1 %X, i32 %V1, i32 %V2 ; <i32> [#uses=1]
- ret i32 %V
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/unnamed.ll b/libclamav/c++/llvm/test/Assembler/unnamed.ll
deleted file mode 100644
index fb4fa62..0000000
--- a/libclamav/c++/llvm/test/Assembler/unnamed.ll
+++ /dev/null
@@ -1,51 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis
-
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
-
-module asm "this is an inline asm block"
-module asm "this is another inline asm block"
-
-%0 = type { %1, %2 }
-%1 = type { i32 }
-%2 = type { float, double }
-
- at 0 = global i32 0
- at 1 = global float 3.0
- at 2 = global i8* null
- at 3 = global x86_fp80 0xK4001E000000000000000
-
-define float @foo(%0* %p) nounwind {
- %t = load %0* %p ; <%0> [#uses=2]
- %s = extractvalue %0 %t, 1, 0 ; <float> [#uses=1]
- %r = insertvalue %0 %t, double 2.000000e+00, 1, 1; <%0> [#uses=1]
- store %0 %r, %0* %p
- ret float %s
-}
-
-define float @bar(%0* %p) nounwind {
- store %0 { %1 { i32 4 }, %2 { float 4.000000e+00, double 2.000000e+01 } }, %0* %p
- ret float 7.000000e+00
-}
-
-define float @car(%0* %p) nounwind {
- store %0 { %1 undef, %2 { float undef, double 2.000000e+01 } }, %0* %p
- ret float undef
-}
-
-define float @dar(%0* %p) nounwind {
- store %0 { %1 zeroinitializer, %2 { float 0.000000e+00, double 2.000000e+01 } }, %0* %p
- ret float 0.000000e+00
-}
-
-define i32* @qqq() {
- ret i32* @0
-}
-define float* @rrr() {
- ret float* @1
-}
-define i8** @sss() {
- ret i8** @2
-}
-define x86_fp80* @nnn() {
- ret x86_fp80* @3
-}
diff --git a/libclamav/c++/llvm/test/Assembler/vbool-cmp.ll b/libclamav/c++/llvm/test/Assembler/vbool-cmp.ll
deleted file mode 100644
index ac8fb29..0000000
--- a/libclamav/c++/llvm/test/Assembler/vbool-cmp.ll
+++ /dev/null
@@ -1,15 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep {icmp slt}
-; rudimentary test of fcmp/icmp on vectors returning vector of bool
-
-define <4 x i1> @ffoo(<4 x float> %a, <4 x float> %b) nounwind {
-entry:
- %cmp = fcmp olt <4 x float> %a, %b ; <4 x i1> [#uses=1]
- ret <4 x i1> %cmp
-}
-
-define <4 x i1> @ifoo(<4 x i32> %a, <4 x i32> %b) nounwind {
-entry:
- %cmp = icmp slt <4 x i32> %a, %b ; <4 x i1> [#uses=1]
- ret <4 x i1> %cmp
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/vector-cmp.ll b/libclamav/c++/llvm/test/Assembler/vector-cmp.ll
deleted file mode 100644
index 688369b..0000000
--- a/libclamav/c++/llvm/test/Assembler/vector-cmp.ll
+++ /dev/null
@@ -1,16 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep {global.*icmp slt}
-; PR2317
-target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
-target triple = "i686-apple-darwin9.2.2"
-
-define <4 x i1> @foo(<4 x float> %a, <4 x float> %b) nounwind {
-entry:
- %cmp = fcmp olt <4 x float> %a, %b ; <4 x i32> [#uses=1]
- ret <4 x i1> %cmp
-}
-
-global <4 x i1> icmp slt ( <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32> <i32 1, i32 2, i32 1, i32 2> )
-
- at B = external global i32
-
-global <4 x i1> icmp slt ( <4 x i32> <i32 ptrtoint (i32 * @B to i32), i32 1, i32 1, i32 1>, <4 x i32> <i32 1, i32 2, i32 1, i32 2> )
diff --git a/libclamav/c++/llvm/test/Assembler/vector-select.ll b/libclamav/c++/llvm/test/Assembler/vector-select.ll
deleted file mode 100644
index 87af602..0000000
--- a/libclamav/c++/llvm/test/Assembler/vector-select.ll
+++ /dev/null
@@ -1,11 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep select
-; rudimentary test of select on vectors returning vector of bool
-
-define <4 x i32> @foo(<4 x i32> %a, <4 x i32> %b,
- <4 x i1> %cond) nounwind {
-entry:
- %cmp = select <4 x i1> %cond, <4 x i32> %a, <4 x i32> %b
- ; <4 x i32> [#uses=1]
- ret <4 x i32> %cmp
-}
-
diff --git a/libclamav/c++/llvm/test/Assembler/vector-shift.ll b/libclamav/c++/llvm/test/Assembler/vector-shift.ll
deleted file mode 100644
index 1850e66..0000000
--- a/libclamav/c++/llvm/test/Assembler/vector-shift.ll
+++ /dev/null
@@ -1,32 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep shl | count 1
-; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep ashr | count 1
-; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep lshr | count 1
-
-define <4 x i32> @foo(<4 x i32> %a, <4 x i32> %b) nounwind {
-entry:
- %cmp = shl <4 x i32> %a, %b ; <4 x i32> [#uses=1]
- ret <4 x i32> %cmp
-}
-
-define <4 x i32> @bar(<4 x i32> %a, <4 x i32> %b) nounwind {
-entry:
- %cmp = lshr <4 x i32> %a, %b ; <4 x i32> [#uses=1]
- ret <4 x i32> %cmp
-}
-
-define <4 x i32> @baz(<4 x i32> %a, <4 x i32> %b) nounwind {
-entry:
- %cmp = ashr <4 x i32> %a, %b ; <4 x i32> [#uses=1]
- ret <4 x i32> %cmp
-}
-
-; Constant expressions: these should be folded.
-define <2 x i64> @foo_ce() nounwind {
- ret <2 x i64> shl (<2 x i64> <i64 5, i64 6>, <2 x i64> <i64 3, i64 5>)
-}
-define <2 x i64> @bar_ce() nounwind {
- ret <2 x i64> lshr (<2 x i64> <i64 340, i64 380>, <2 x i64> <i64 3, i64 5>)
-}
-define <2 x i64> @baz_ce() nounwind {
- ret <2 x i64> ashr (<2 x i64> <i64 573, i64 411>, <2 x i64> <i64 3, i64 5>)
-}
diff --git a/libclamav/c++/llvm/test/CodeGen/MBlaze/brind.ll b/libclamav/c++/llvm/test/CodeGen/MBlaze/brind.ll
deleted file mode 100644
index 7798e0f..0000000
--- a/libclamav/c++/llvm/test/CodeGen/MBlaze/brind.ll
+++ /dev/null
@@ -1,73 +0,0 @@
-; Ensure that the select instruction is supported and is lowered to
-; some sort of branch instruction.
-;
-; RUN: llc < %s -march=mblaze -mattr=+mul,+fpu,+barrel | FileCheck %s
-
-declare i32 @printf(i8*, ...)
- at MSG = internal constant [13 x i8] c"Message: %d\0A\00"
-
- at BLKS = private constant [5 x i8*]
- [ i8* blockaddress(@brind, %L1),
- i8* blockaddress(@brind, %L2),
- i8* blockaddress(@brind, %L3),
- i8* blockaddress(@brind, %L4),
- i8* blockaddress(@brind, %L5) ]
-
-define i32 @brind(i32 %a, i32 %b)
-{
- ; CHECK: brind:
-entry:
- br label %loop
-
-loop:
- %tmp.0 = phi i32 [ 0, %entry ], [ %tmp.8, %finish ]
- %dst.0 = getelementptr [5 x i8*]* @BLKS, i32 0, i32 %tmp.0
- %dst.1 = load i8** %dst.0
- indirectbr i8* %dst.1, [ label %L1,
- label %L2,
- label %L3,
- label %L4,
- label %L5 ]
- ; CHECK: br {{r[0-9]*}}
-
-L1:
- %tmp.1 = add i32 %a, %b
- br label %finish
- ; CHECK: br
-
-L2:
- %tmp.2 = sub i32 %a, %b
- br label %finish
- ; CHECK: br
-
-L3:
- %tmp.3 = mul i32 %a, %b
- br label %finish
- ; CHECK: br
-
-L4:
- %tmp.4 = sdiv i32 %a, %b
- br label %finish
- ; CHECK: br
-
-L5:
- %tmp.5 = srem i32 %a, %b
- br label %finish
- ; CHECK: br
-
-finish:
- %tmp.6 = phi i32 [ %tmp.1, %L1 ],
- [ %tmp.2, %L2 ],
- [ %tmp.3, %L3 ],
- [ %tmp.4, %L4 ],
- [ %tmp.5, %L5 ]
-
- call i32 (i8*,...)* @printf( i8* getelementptr([13 x i8]* @MSG,i32 0,i32 0),
- i32 %tmp.6)
-
- %tmp.7 = add i32 %tmp.0, 1
- %tmp.8 = urem i32 %tmp.7, 5
-
- br label %loop
- ; CHECK: br
-}
diff --git a/libclamav/c++/llvm/test/CodeGen/MBlaze/callind.ll b/libclamav/c++/llvm/test/CodeGen/MBlaze/callind.ll
deleted file mode 100644
index bfc8d00..0000000
--- a/libclamav/c++/llvm/test/CodeGen/MBlaze/callind.ll
+++ /dev/null
@@ -1,80 +0,0 @@
-; Ensure that indirect calls work and that they are lowered to some
-; sort of branch and link instruction.
-;
-; RUN: llc < %s -march=mblaze -mattr=+mul,+fpu,+barrel | FileCheck %s
-
-declare i32 @printf(i8*, ...)
- at MSG = internal constant [13 x i8] c"Message: %d\0A\00"
-
- at FUNS = private constant [5 x i32 (i32,i32)*]
- [ i32 (i32,i32)* @doadd,
- i32 (i32,i32)* @dosub,
- i32 (i32,i32)* @domul,
- i32 (i32,i32)* @dodiv,
- i32 (i32,i32)* @dorem ]
-
-define i32 @doadd(i32 %a, i32 %b)
-{
- ; CHECK: doadd:
- %tmp.0 = add i32 %a, %b
- ret i32 %tmp.0
- ; CHECK: rtsd
-}
-
-define i32 @dosub(i32 %a, i32 %b)
-{
- ; CHECK: dosub:
- %tmp.0 = sub i32 %a, %b
- ret i32 %tmp.0
- ; CHECK: rtsd
-}
-
-define i32 @domul(i32 %a, i32 %b)
-{
- ; CHECK: domul:
- %tmp.0 = mul i32 %a, %b
- ret i32 %tmp.0
- ; CHECK: rtsd
-}
-
-define i32 @dodiv(i32 %a, i32 %b)
-{
- ; CHECK: dodiv:
- %tmp.0 = sdiv i32 %a, %b
- ret i32 %tmp.0
- ; CHECK: rtsd
-}
-
-define i32 @dorem(i32 %a, i32 %b)
-{
- ; CHECK: dorem:
- %tmp.0 = srem i32 %a, %b
- ret i32 %tmp.0
- ; CHECK: rtsd
-}
-
-define i32 @callind(i32 %a, i32 %b)
-{
- ; CHECK: callind:
-entry:
- br label %loop
-
-loop:
- %tmp.0 = phi i32 [ 0, %entry ], [ %tmp.3, %loop ]
- %dst.0 = getelementptr [5 x i32 (i32,i32)*]* @FUNS, i32 0, i32 %tmp.0
- %dst.1 = load i32 (i32,i32)** %dst.0
- %tmp.1 = call i32 %dst.1(i32 %a, i32 %b)
- ; CHECK-NOT: brli
- ; CHECK-NOT: brlai
- ; CHECK: brl
-
- call i32 (i8*,...)* @printf( i8* getelementptr([13 x i8]* @MSG,i32 0,i32 0),
- i32 %tmp.1)
- ; CHECK: brl
-
- %tmp.2 = add i32 %tmp.0, 1
- %tmp.3 = urem i32 %tmp.2, 5
-
- br label %loop
- ; CHECK: br
-}
diff --git a/libclamav/c++/llvm/test/CodeGen/MBlaze/cc.ll b/libclamav/c++/llvm/test/CodeGen/MBlaze/cc.ll
deleted file mode 100644
index aaa918f..0000000
--- a/libclamav/c++/llvm/test/CodeGen/MBlaze/cc.ll
+++ /dev/null
@@ -1,315 +0,0 @@
-; Test some of the calling convention lowering done by the MBlaze backend.
-; We test that integer values are passed in the correct registers and
-; returned in the correct registers. Additionally, we test that the stack
-; is used as appropriate for passing arguments that cannot be placed into
-; registers.
-;
-; RUN: llc < %s -march=mblaze | FileCheck %s
-
-declare i32 @printf(i8*, ...)
- at MSG = internal constant [13 x i8] c"Message: %d\0A\00"
-
-define void @params0_noret() {
- ; CHECK: params0_noret:
- ret void
- ; CHECK-NOT: {{.* r3, r0, 1}}
- ; CHECK-NOT: {{.* r4, .*, .*}}
- ; CHECK: rtsd
-}
-
-define i8 @params0_8bitret() {
- ; CHECK: params0_8bitret:
- ret i8 1
- ; CHECK: {{.* r3, r0, 1}}
- ; CHECK-NOT: {{.* r4, .*, .*}}
- ; CHECK: rtsd
-}
-
-define i16 @params0_16bitret() {
- ; CHECK: params0_16bitret:
- ret i16 1
- ; CHECK: {{.* r3, r0, 1}}
- ; CHECK-NOT: {{.* r4, .*, .*}}
- ; CHECK: rtsd
-}
-
-define i32 @params0_32bitret() {
- ; CHECK: params0_32bitret:
- ret i32 1
- ; CHECK: {{.* r3, r0, 1}}
- ; CHECK-NOT: {{.* r4, .*, .*}}
- ; CHECK: rtsd
-}
-
-define i64 @params0_64bitret() {
- ; CHECK: params0_64bitret:
- ret i64 1
- ; CHECK: {{.* r3, r0, .*}}
- ; CHECK: {{.* r4, r0, 1}}
- ; CHECK: rtsd
-}
-
-define i32 @params1_32bitret(i32 %a) {
- ; CHECK: params1_32bitret:
- ret i32 %a
- ; CHECK: {{.* r3, r5, r0}}
- ; CHECK-NOT: {{.* r4, .*, .*}}
- ; CHECK: rtsd
-}
-
-define i32 @params2_32bitret(i32 %a, i32 %b) {
- ; CHECK: params2_32bitret:
- ret i32 %b
- ; CHECK: {{.* r3, r6, r0}}
- ; CHECK-NOT: {{.* r4, .*, .*}}
- ; CHECK: rtsd
-}
-
-define i32 @params3_32bitret(i32 %a, i32 %b, i32 %c) {
- ; CHECK: params3_32bitret:
- ret i32 %c
- ; CHECK: {{.* r3, r7, r0}}
- ; CHECK-NOT: {{.* r4, .*, .*}}
- ; CHECK: rtsd
-}
-
-define i32 @params4_32bitret(i32 %a, i32 %b, i32 %c, i32 %d) {
- ; CHECK: params4_32bitret:
- ret i32 %d
- ; CHECK: {{.* r3, r8, r0}}
- ; CHECK-NOT: {{.* r4, .*, .*}}
- ; CHECK: rtsd
-}
-
-define i32 @params5_32bitret(i32 %a, i32 %b, i32 %c, i32 %d, i32 %e) {
- ; CHECK: params5_32bitret:
- ret i32 %e
- ; CHECK: {{.* r3, r9, r0}}
- ; CHECK-NOT: {{.* r4, .*, .*}}
- ; CHECK: rtsd
-}
-
-define i32 @params6_32bitret(i32 %a, i32 %b, i32 %c, i32 %d, i32 %e, i32 %f) {
- ; CHECK: params6_32bitret:
- ret i32 %f
- ; CHECK: {{.* r3, r10, r0}}
- ; CHECK-NOT: {{.* r4, .*, .*}}
- ; CHECK: rtsd
-}
-
-define i32 @params7_32bitret(i32 %a, i32 %b, i32 %c, i32 %d, i32 %e, i32 %f,
- i32 %g) {
- ; CHECK: params7_32bitret:
- ret i32 %g
- ; CHECK: {{lwi? r3, r1, 32}}
- ; CHECK-NOT: {{.* r4, .*, .*}}
- ; CHECK: rtsd
-}
-
-define i32 @params8_32bitret(i32 %a, i32 %b, i32 %c, i32 %d, i32 %e, i32 %f,
- i32 %g, i32 %h) {
- ; CHECK: params8_32bitret:
- ret i32 %h
- ; CHECK: {{lwi? r3, r1, 36}}
- ; CHECK-NOT: {{.* r4, .*, .*}}
- ; CHECK: rtsd
-}
-
-define i32 @params9_32bitret(i32 %a, i32 %b, i32 %c, i32 %d, i32 %e, i32 %f,
- i32 %g, i32 %h, i32 %i) {
- ; CHECK: params9_32bitret:
- ret i32 %i
- ; CHECK: {{lwi? r3, r1, 40}}
- ; CHECK-NOT: {{.* r4, .*, .*}}
- ; CHECK: rtsd
-}
-
-define i32 @params10_32bitret(i32 %a, i32 %b, i32 %c, i32 %d, i32 %e, i32 %f,
- i32 %g, i32 %h, i32 %i, i32 %j) {
- ; CHECK: params10_32bitret:
- ret i32 %j
- ; CHECK: {{lwi? r3, r1, 44}}
- ; CHECK-NOT: {{.* r4, .*, .*}}
- ; CHECK: rtsd
-}
-
-define void @testing() {
- %MSG.1 = getelementptr [13 x i8]* @MSG, i32 0, i32 0
-
- call void @params0_noret()
- ; CHECK: brlid
-
- %tmp.1 = call i8 @params0_8bitret()
- ; CHECK: brlid
- call i32 (i8*,...)* @printf(i8* %MSG.1, i8 %tmp.1)
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, r3, r0}}
- ; CHECK-NOT: {{.* r7, .*, .*}}
- ; CHECK: brlid
-
- %tmp.2 = call i16 @params0_16bitret()
- ; CHECK: brlid
- call i32 (i8*,...)* @printf(i8* %MSG.1, i16 %tmp.2)
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, r3, r0}}
- ; CHECK-NOT: {{.* r7, .*, .*}}
- ; CHECK: brlid
-
- %tmp.3 = call i32 @params0_32bitret()
- ; CHECK: brlid
- call i32 (i8*,...)* @printf(i8* %MSG.1, i32 %tmp.3)
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, r3, r0}}
- ; CHECK-NOT: {{.* r7, .*, .*}}
- ; CHECK: brlid
-
- %tmp.4 = call i64 @params0_64bitret()
- ; CHECK: brlid
- call i32 (i8*,...)* @printf(i8* %MSG.1, i64 %tmp.4)
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, r3, r0}}
- ; CHECK: {{.* r7, r4, r0}}
- ; CHECK: brlid
-
- %tmp.5 = call i32 @params1_32bitret(i32 1)
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: brlid
- call i32 (i8*,...)* @printf(i8* %MSG.1, i32 %tmp.5)
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, r3, r0}}
- ; CHECK-NOT: {{.* r7, .*, .*}}
- ; CHECK: brlid
-
- %tmp.6 = call i32 @params2_32bitret(i32 1, i32 2)
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, .*, .*}}
- ; CHECK: brlid
- call i32 (i8*,...)* @printf(i8* %MSG.1, i32 %tmp.6)
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, r3, r0}}
- ; CHECK-NOT: {{.* r7, .*, .*}}
- ; CHECK: brlid
-
- %tmp.7 = call i32 @params3_32bitret(i32 1, i32 2, i32 3)
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, .*, .*}}
- ; CHECK: {{.* r7, .*, .*}}
- ; CHECK: brlid
- call i32 (i8*,...)* @printf(i8* %MSG.1, i32 %tmp.7)
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, r3, r0}}
- ; CHECK-NOT: {{.* r7, .*, .*}}
- ; CHECK: brlid
-
- %tmp.8 = call i32 @params4_32bitret(i32 1, i32 2, i32 3, i32 4)
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, .*, .*}}
- ; CHECK: {{.* r7, .*, .*}}
- ; CHECK: {{.* r8, .*, .*}}
- ; CHECK: brlid
- call i32 (i8*,...)* @printf(i8* %MSG.1, i32 %tmp.8)
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, r3, r0}}
- ; CHECK-NOT: {{.* r7, .*, .*}}
- ; CHECK: brlid
-
- %tmp.9 = call i32 @params5_32bitret(i32 1, i32 2, i32 3, i32 4, i32 5)
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, .*, .*}}
- ; CHECK: {{.* r7, .*, .*}}
- ; CHECK: {{.* r8, .*, .*}}
- ; CHECK: {{.* r9, .*, .*}}
- ; CHECK: brlid
- call i32 (i8*,...)* @printf(i8* %MSG.1, i32 %tmp.9)
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, r3, r0}}
- ; CHECK-NOT: {{.* r7, .*, .*}}
- ; CHECK: brlid
-
- %tmp.10 = call i32 @params6_32bitret(i32 1, i32 2, i32 3, i32 4, i32 5,
- i32 6)
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, .*, .*}}
- ; CHECK: {{.* r7, .*, .*}}
- ; CHECK: {{.* r8, .*, .*}}
- ; CHECK: {{.* r9, .*, .*}}
- ; CHECK: {{.* r10, .*, .*}}
- ; CHECK: brlid
- call i32 (i8*,...)* @printf(i8* %MSG.1, i32 %tmp.10)
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, r3, r0}}
- ; CHECK-NOT: {{.* r7, .*, .*}}
- ; CHECK: brlid
-
- %tmp.11 = call i32 @params7_32bitret(i32 1, i32 2, i32 3, i32 4, i32 5,
- i32 6, i32 7)
- ; CHECK: {{swi? .*, r1, 28}}
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, .*, .*}}
- ; CHECK: {{.* r7, .*, .*}}
- ; CHECK: {{.* r8, .*, .*}}
- ; CHECK: {{.* r9, .*, .*}}
- ; CHECK: {{.* r10, .*, .*}}
- ; CHECK: brlid
- call i32 (i8*,...)* @printf(i8* %MSG.1, i32 %tmp.11)
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, r3, r0}}
- ; CHECK-NOT: {{.* r7, .*, .*}}
- ; CHECK: brlid
-
- %tmp.12 = call i32 @params8_32bitret(i32 1, i32 2, i32 3, i32 4, i32 5,
- i32 6, i32 7, i32 8)
- ; CHECK: {{swi? .*, r1, 28}}
- ; CHECK: {{swi? .*, r1, 32}}
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, .*, .*}}
- ; CHECK: {{.* r7, .*, .*}}
- ; CHECK: {{.* r8, .*, .*}}
- ; CHECK: {{.* r9, .*, .*}}
- ; CHECK: {{.* r10, .*, .*}}
- ; CHECK: brlid
- call i32 (i8*,...)* @printf(i8* %MSG.1, i32 %tmp.12)
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, r3, r0}}
- ; CHECK-NOT: {{.* r7, .*, .*}}
- ; CHECK: brlid
-
- %tmp.13 = call i32 @params9_32bitret(i32 1, i32 2, i32 3, i32 4, i32 5,
- i32 6, i32 7, i32 8, i32 9)
- ; CHECK: {{swi? .*, r1, 28}}
- ; CHECK: {{swi? .*, r1, 32}}
- ; CHECK: {{swi? .*, r1, 36}}
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, .*, .*}}
- ; CHECK: {{.* r7, .*, .*}}
- ; CHECK: {{.* r8, .*, .*}}
- ; CHECK: {{.* r9, .*, .*}}
- ; CHECK: {{.* r10, .*, .*}}
- ; CHECK: brlid
- call i32 (i8*,...)* @printf(i8* %MSG.1, i32 %tmp.13)
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, r3, r0}}
- ; CHECK-NOT: {{.* r7, .*, .*}}
- ; CHECK: brlid
-
- %tmp.14 = call i32 @params10_32bitret(i32 1, i32 2, i32 3, i32 4, i32 5,
- i32 6, i32 7, i32 8, i32 9, i32 10)
- ; CHECK: {{swi? .*, r1, 28}}
- ; CHECK: {{swi? .*, r1, 32}}
- ; CHECK: {{swi? .*, r1, 36}}
- ; CHECK: {{swi? .*, r1, 40}}
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, .*, .*}}
- ; CHECK: {{.* r7, .*, .*}}
- ; CHECK: {{.* r8, .*, .*}}
- ; CHECK: {{.* r9, .*, .*}}
- ; CHECK: {{.* r10, .*, .*}}
- ; CHECK: brlid
- call i32 (i8*,...)* @printf(i8* %MSG.1, i32 %tmp.14)
- ; CHECK: {{.* r5, .*, .*}}
- ; CHECK: {{.* r6, r3, r0}}
- ; CHECK-NOT: {{.* r7, .*, .*}}
- ; CHECK: brlid
-
- ret void
-}
diff --git a/libclamav/c++/llvm/test/CodeGen/MBlaze/dg.exp b/libclamav/c++/llvm/test/CodeGen/MBlaze/dg.exp
deleted file mode 100644
index bfd5e47..0000000
--- a/libclamav/c++/llvm/test/CodeGen/MBlaze/dg.exp
+++ /dev/null
@@ -1,5 +0,0 @@
-load_lib llvm.exp
-
-if { [llvm_supports_target MBlaze] } {
- RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
-}
diff --git a/libclamav/c++/llvm/test/CodeGen/MBlaze/div.ll b/libclamav/c++/llvm/test/CodeGen/MBlaze/div.ll
deleted file mode 100644
index fae9830..0000000
--- a/libclamav/c++/llvm/test/CodeGen/MBlaze/div.ll
+++ /dev/null
@@ -1,75 +0,0 @@
-; Ensure that multiplication is lowered to function calls when the multiplier
-; unit is not available in the hardware and that function calls are not used
-; when the multiplier unit is available in the hardware.
-;
-; RUN: llc < %s -march=mblaze | FileCheck -check-prefix=FUN %s
-; RUN: llc < %s -march=mblaze -mattr=+div | FileCheck -check-prefix=DIV %s
-
-define i8 @test_i8(i8 %a, i8 %b) {
- ; FUN: test_i8:
- ; DIV: test_i8:
-
- %tmp.1 = udiv i8 %a, %b
- ; FUN-NOT: idiv
- ; FUN: brlid
- ; DIV-NOT: brlid
- ; DIV: idivu
-
- %tmp.2 = sdiv i8 %a, %b
- ; FUN-NOT: idiv
- ; FUN: brlid
- ; DIV-NOT: brlid
- ; DIV-NOT: idivu
- ; DIV: idiv
-
- %tmp.3 = add i8 %tmp.1, %tmp.2
- ret i8 %tmp.3
- ; FUN: rtsd
- ; DIV: rtsd
-}
-
-define i16 @test_i16(i16 %a, i16 %b) {
- ; FUN: test_i16:
- ; DIV: test_i16:
-
- %tmp.1 = udiv i16 %a, %b
- ; FUN-NOT: idiv
- ; FUN: brlid
- ; DIV-NOT: brlid
- ; DIV: idivu
-
- %tmp.2 = sdiv i16 %a, %b
- ; FUN-NOT: idiv
- ; FUN: brlid
- ; DIV-NOT: brlid
- ; DIV-NOT: idivu
- ; DIV: idiv
-
- %tmp.3 = add i16 %tmp.1, %tmp.2
- ret i16 %tmp.3
- ; FUN: rtsd
- ; DIV: rtsd
-}
-
-define i32 @test_i32(i32 %a, i32 %b) {
- ; FUN: test_i32:
- ; DIV: test_i32:
-
- %tmp.1 = udiv i32 %a, %b
- ; FUN-NOT: idiv
- ; FUN: brlid
- ; DIV-NOT: brlid
- ; DIV: idivu
-
- %tmp.2 = sdiv i32 %a, %b
- ; FUN-NOT: idiv
- ; FUN: brlid
- ; DIV-NOT: brlid
- ; DIV-NOT: idivu
- ; DIV: idiv
-
- %tmp.3 = add i32 %tmp.1, %tmp.2
- ret i32 %tmp.3
- ; FUN: rtsd
- ; DIV: rtsd
-}
diff --git a/libclamav/c++/llvm/test/CodeGen/MBlaze/fpu.ll b/libclamav/c++/llvm/test/CodeGen/MBlaze/fpu.ll
deleted file mode 100644
index 83f4d83..0000000
--- a/libclamav/c++/llvm/test/CodeGen/MBlaze/fpu.ll
+++ /dev/null
@@ -1,66 +0,0 @@
-; Ensure that floating point operations are lowered to function calls when the
-; FPU is not available in the hardware and that function calls are not used
-; when the FPU is available in the hardware.
-;
-; RUN: llc < %s -march=mblaze | FileCheck -check-prefix=FUN %s
-; RUN: llc < %s -march=mblaze -mattr=+fpu | FileCheck -check-prefix=FPU %s
-
-define float @test_add(float %a, float %b) {
- ; FUN: test_add:
- ; FPU: test_add:
-
- %tmp.1 = fadd float %a, %b
- ; FUN-NOT: fadd
- ; FUN: brlid
- ; FPU-NOT: brlid
- ; FPU: fadd
-
- ret float %tmp.1
- ; FUN: rtsd
- ; FPU: rtsd
-}
-
-define float @test_sub(float %a, float %b) {
- ; FUN: test_sub:
- ; FPU: test_sub:
-
- %tmp.1 = fsub float %a, %b
- ; FUN-NOT: frsub
- ; FUN: brlid
- ; FPU-NOT: brlid
- ; FPU: frsub
-
- ret float %tmp.1
- ; FUN: rtsd
- ; FPU: rtsd
-}
-
-define float @test_mul(float %a, float %b) {
- ; FUN: test_mul:
- ; FPU: test_mul:
-
- %tmp.1 = fmul float %a, %b
- ; FUN-NOT: fmul
- ; FUN: brlid
- ; FPU-NOT: brlid
- ; FPU: fmul
-
- ret float %tmp.1
- ; FUN: rtsd
- ; FPU: rtsd
-}
-
-define float @test_div(float %a, float %b) {
- ; FUN: test_div:
- ; FPU: test_div:
-
- %tmp.1 = fdiv float %a, %b
- ; FUN-NOT: fdiv
- ; FUN: brlid
- ; FPU-NOT: brlid
- ; FPU: fdiv
-
- ret float %tmp.1
- ; FUN: rtsd
- ; FPU: rtsd
-}
diff --git a/libclamav/c++/llvm/test/CodeGen/MBlaze/fsl.ll b/libclamav/c++/llvm/test/CodeGen/MBlaze/fsl.ll
deleted file mode 100644
index f9c6205..0000000
--- a/libclamav/c++/llvm/test/CodeGen/MBlaze/fsl.ll
+++ /dev/null
@@ -1,323 +0,0 @@
-; Ensure that the FSL instrinsic instruction generate single FSL instructions
-; at the machine level. Additionally, ensure that dynamic values use the
-; dynamic version of the instructions and that constant values use the
-; constant version of the instructions.
-;
-; RUN: llc < %s -march=mblaze | FileCheck %s
-
-declare i32 @llvm.mblaze.fsl.get(i32 %port)
-declare i32 @llvm.mblaze.fsl.aget(i32 %port)
-declare i32 @llvm.mblaze.fsl.cget(i32 %port)
-declare i32 @llvm.mblaze.fsl.caget(i32 %port)
-declare i32 @llvm.mblaze.fsl.eget(i32 %port)
-declare i32 @llvm.mblaze.fsl.eaget(i32 %port)
-declare i32 @llvm.mblaze.fsl.ecget(i32 %port)
-declare i32 @llvm.mblaze.fsl.ecaget(i32 %port)
-declare i32 @llvm.mblaze.fsl.nget(i32 %port)
-declare i32 @llvm.mblaze.fsl.naget(i32 %port)
-declare i32 @llvm.mblaze.fsl.ncget(i32 %port)
-declare i32 @llvm.mblaze.fsl.ncaget(i32 %port)
-declare i32 @llvm.mblaze.fsl.neget(i32 %port)
-declare i32 @llvm.mblaze.fsl.neaget(i32 %port)
-declare i32 @llvm.mblaze.fsl.necget(i32 %port)
-declare i32 @llvm.mblaze.fsl.necaget(i32 %port)
-declare i32 @llvm.mblaze.fsl.tget(i32 %port)
-declare i32 @llvm.mblaze.fsl.taget(i32 %port)
-declare i32 @llvm.mblaze.fsl.tcget(i32 %port)
-declare i32 @llvm.mblaze.fsl.tcaget(i32 %port)
-declare i32 @llvm.mblaze.fsl.teget(i32 %port)
-declare i32 @llvm.mblaze.fsl.teaget(i32 %port)
-declare i32 @llvm.mblaze.fsl.tecget(i32 %port)
-declare i32 @llvm.mblaze.fsl.tecaget(i32 %port)
-declare i32 @llvm.mblaze.fsl.tnget(i32 %port)
-declare i32 @llvm.mblaze.fsl.tnaget(i32 %port)
-declare i32 @llvm.mblaze.fsl.tncget(i32 %port)
-declare i32 @llvm.mblaze.fsl.tncaget(i32 %port)
-declare i32 @llvm.mblaze.fsl.tneget(i32 %port)
-declare i32 @llvm.mblaze.fsl.tneaget(i32 %port)
-declare i32 @llvm.mblaze.fsl.tnecget(i32 %port)
-declare i32 @llvm.mblaze.fsl.tnecaget(i32 %port)
-
-declare void @llvm.mblaze.fsl.put(i32 %value, i32 %port)
-declare void @llvm.mblaze.fsl.aput(i32 %value, i32 %port)
-declare void @llvm.mblaze.fsl.cput(i32 %value, i32 %port)
-declare void @llvm.mblaze.fsl.caput(i32 %value, i32 %port)
-declare void @llvm.mblaze.fsl.nput(i32 %value, i32 %port)
-declare void @llvm.mblaze.fsl.naput(i32 %value, i32 %port)
-declare void @llvm.mblaze.fsl.ncput(i32 %value, i32 %port)
-declare void @llvm.mblaze.fsl.ncaput(i32 %value, i32 %port)
-declare void @llvm.mblaze.fsl.tput(i32 %port)
-declare void @llvm.mblaze.fsl.taput(i32 %port)
-declare void @llvm.mblaze.fsl.tcput(i32 %port)
-declare void @llvm.mblaze.fsl.tcaput(i32 %port)
-declare void @llvm.mblaze.fsl.tnput(i32 %port)
-declare void @llvm.mblaze.fsl.tnaput(i32 %port)
-declare void @llvm.mblaze.fsl.tncput(i32 %port)
-declare void @llvm.mblaze.fsl.tncaput(i32 %port)
-
-define i32 @fsl_get(i32 %port)
-{
- ; CHECK: fsl_get:
- %v0 = call i32 @llvm.mblaze.fsl.get(i32 %port)
- ; CHECK: getd
- %v1 = call i32 @llvm.mblaze.fsl.aget(i32 %port)
- ; CHECK-NEXT: agetd
- %v2 = call i32 @llvm.mblaze.fsl.cget(i32 %port)
- ; CHECK-NEXT: cgetd
- %v3 = call i32 @llvm.mblaze.fsl.caget(i32 %port)
- ; CHECK-NEXT: cagetd
- %v4 = call i32 @llvm.mblaze.fsl.eget(i32 %port)
- ; CHECK-NEXT: egetd
- %v5 = call i32 @llvm.mblaze.fsl.eaget(i32 %port)
- ; CHECK-NEXT: eagetd
- %v6 = call i32 @llvm.mblaze.fsl.ecget(i32 %port)
- ; CHECK-NEXT: ecgetd
- %v7 = call i32 @llvm.mblaze.fsl.ecaget(i32 %port)
- ; CHECK-NEXT: ecagetd
- %v8 = call i32 @llvm.mblaze.fsl.nget(i32 %port)
- ; CHECK-NEXT: ngetd
- %v9 = call i32 @llvm.mblaze.fsl.naget(i32 %port)
- ; CHECK-NEXT: nagetd
- %v10 = call i32 @llvm.mblaze.fsl.ncget(i32 %port)
- ; CHECK-NEXT: ncgetd
- %v11 = call i32 @llvm.mblaze.fsl.ncaget(i32 %port)
- ; CHECK-NEXT: ncagetd
- %v12 = call i32 @llvm.mblaze.fsl.neget(i32 %port)
- ; CHECK-NEXT: negetd
- %v13 = call i32 @llvm.mblaze.fsl.neaget(i32 %port)
- ; CHECK-NEXT: neagetd
- %v14 = call i32 @llvm.mblaze.fsl.necget(i32 %port)
- ; CHECK-NEXT: necgetd
- %v15 = call i32 @llvm.mblaze.fsl.necaget(i32 %port)
- ; CHECK-NEXT: necagetd
- %v16 = call i32 @llvm.mblaze.fsl.tget(i32 %port)
- ; CHECK-NEXT: tgetd
- %v17 = call i32 @llvm.mblaze.fsl.taget(i32 %port)
- ; CHECK-NEXT: tagetd
- %v18 = call i32 @llvm.mblaze.fsl.tcget(i32 %port)
- ; CHECK-NEXT: tcgetd
- %v19 = call i32 @llvm.mblaze.fsl.tcaget(i32 %port)
- ; CHECK-NEXT: tcagetd
- %v20 = call i32 @llvm.mblaze.fsl.teget(i32 %port)
- ; CHECK-NEXT: tegetd
- %v21 = call i32 @llvm.mblaze.fsl.teaget(i32 %port)
- ; CHECK-NEXT: teagetd
- %v22 = call i32 @llvm.mblaze.fsl.tecget(i32 %port)
- ; CHECK-NEXT: tecgetd
- %v23 = call i32 @llvm.mblaze.fsl.tecaget(i32 %port)
- ; CHECK-NEXT: tecagetd
- %v24 = call i32 @llvm.mblaze.fsl.tnget(i32 %port)
- ; CHECK-NEXT: tngetd
- %v25 = call i32 @llvm.mblaze.fsl.tnaget(i32 %port)
- ; CHECK-NEXT: tnagetd
- %v26 = call i32 @llvm.mblaze.fsl.tncget(i32 %port)
- ; CHECK-NEXT: tncgetd
- %v27 = call i32 @llvm.mblaze.fsl.tncaget(i32 %port)
- ; CHECK-NEXT: tncagetd
- %v28 = call i32 @llvm.mblaze.fsl.tneget(i32 %port)
- ; CHECK-NEXT: tnegetd
- %v29 = call i32 @llvm.mblaze.fsl.tneaget(i32 %port)
- ; CHECK-NEXT: tneagetd
- %v30 = call i32 @llvm.mblaze.fsl.tnecget(i32 %port)
- ; CHECK-NEXT: tnecgetd
- %v31 = call i32 @llvm.mblaze.fsl.tnecaget(i32 %port)
- ; CHECK-NEXT: tnecagetd
- ret i32 1
- ; CHECK: rtsd
-}
-
-define i32 @fslc_get()
-{
- ; CHECK: fslc_get:
- %v0 = call i32 @llvm.mblaze.fsl.get(i32 1)
- ; CHECK: get
- %v1 = call i32 @llvm.mblaze.fsl.aget(i32 1)
- ; CHECK-NOT: agetd
- ; CHECK: aget
- %v2 = call i32 @llvm.mblaze.fsl.cget(i32 1)
- ; CHECK-NOT: cgetd
- ; CHECK: cget
- %v3 = call i32 @llvm.mblaze.fsl.caget(i32 1)
- ; CHECK-NOT: cagetd
- ; CHECK: caget
- %v4 = call i32 @llvm.mblaze.fsl.eget(i32 1)
- ; CHECK-NOT: egetd
- ; CHECK: eget
- %v5 = call i32 @llvm.mblaze.fsl.eaget(i32 1)
- ; CHECK-NOT: eagetd
- ; CHECK: eaget
- %v6 = call i32 @llvm.mblaze.fsl.ecget(i32 1)
- ; CHECK-NOT: ecgetd
- ; CHECK: ecget
- %v7 = call i32 @llvm.mblaze.fsl.ecaget(i32 1)
- ; CHECK-NOT: ecagetd
- ; CHECK: ecaget
- %v8 = call i32 @llvm.mblaze.fsl.nget(i32 1)
- ; CHECK-NOT: ngetd
- ; CHECK: nget
- %v9 = call i32 @llvm.mblaze.fsl.naget(i32 1)
- ; CHECK-NOT: nagetd
- ; CHECK: naget
- %v10 = call i32 @llvm.mblaze.fsl.ncget(i32 1)
- ; CHECK-NOT: ncgetd
- ; CHECK: ncget
- %v11 = call i32 @llvm.mblaze.fsl.ncaget(i32 1)
- ; CHECK-NOT: ncagetd
- ; CHECK: ncaget
- %v12 = call i32 @llvm.mblaze.fsl.neget(i32 1)
- ; CHECK-NOT: negetd
- ; CHECK: neget
- %v13 = call i32 @llvm.mblaze.fsl.neaget(i32 1)
- ; CHECK-NOT: neagetd
- ; CHECK: neaget
- %v14 = call i32 @llvm.mblaze.fsl.necget(i32 1)
- ; CHECK-NOT: necgetd
- ; CHECK: necget
- %v15 = call i32 @llvm.mblaze.fsl.necaget(i32 1)
- ; CHECK-NOT: necagetd
- ; CHECK: necaget
- %v16 = call i32 @llvm.mblaze.fsl.tget(i32 1)
- ; CHECK-NOT: tgetd
- ; CHECK: tget
- %v17 = call i32 @llvm.mblaze.fsl.taget(i32 1)
- ; CHECK-NOT: tagetd
- ; CHECK: taget
- %v18 = call i32 @llvm.mblaze.fsl.tcget(i32 1)
- ; CHECK-NOT: tcgetd
- ; CHECK: tcget
- %v19 = call i32 @llvm.mblaze.fsl.tcaget(i32 1)
- ; CHECK-NOT: tcagetd
- ; CHECK: tcaget
- %v20 = call i32 @llvm.mblaze.fsl.teget(i32 1)
- ; CHECK-NOT: tegetd
- ; CHECK: teget
- %v21 = call i32 @llvm.mblaze.fsl.teaget(i32 1)
- ; CHECK-NOT: teagetd
- ; CHECK: teaget
- %v22 = call i32 @llvm.mblaze.fsl.tecget(i32 1)
- ; CHECK-NOT: tecgetd
- ; CHECK: tecget
- %v23 = call i32 @llvm.mblaze.fsl.tecaget(i32 1)
- ; CHECK-NOT: tecagetd
- ; CHECK: tecaget
- %v24 = call i32 @llvm.mblaze.fsl.tnget(i32 1)
- ; CHECK-NOT: tngetd
- ; CHECK: tnget
- %v25 = call i32 @llvm.mblaze.fsl.tnaget(i32 1)
- ; CHECK-NOT: tnagetd
- ; CHECK: tnaget
- %v26 = call i32 @llvm.mblaze.fsl.tncget(i32 1)
- ; CHECK-NOT: tncgetd
- ; CHECK: tncget
- %v27 = call i32 @llvm.mblaze.fsl.tncaget(i32 1)
- ; CHECK-NOT: tncagetd
- ; CHECK: tncaget
- %v28 = call i32 @llvm.mblaze.fsl.tneget(i32 1)
- ; CHECK-NOT: tnegetd
- ; CHECK: tneget
- %v29 = call i32 @llvm.mblaze.fsl.tneaget(i32 1)
- ; CHECK-NOT: tneagetd
- ; CHECK: tneaget
- %v30 = call i32 @llvm.mblaze.fsl.tnecget(i32 1)
- ; CHECK-NOT: tnecgetd
- ; CHECK: tnecget
- %v31 = call i32 @llvm.mblaze.fsl.tnecaget(i32 1)
- ; CHECK-NOT: tnecagetd
- ; CHECK: tnecaget
- ret i32 1
- ; CHECK: rtsd
-}
-
-define void @putfsl(i32 %value, i32 %port)
-{
- ; CHECK: putfsl:
- call void @llvm.mblaze.fsl.put(i32 %value, i32 %port)
- ; CHECK: putd
- call void @llvm.mblaze.fsl.aput(i32 %value, i32 %port)
- ; CHECK-NEXT: aputd
- call void @llvm.mblaze.fsl.cput(i32 %value, i32 %port)
- ; CHECK-NEXT: cputd
- call void @llvm.mblaze.fsl.caput(i32 %value, i32 %port)
- ; CHECK-NEXT: caputd
- call void @llvm.mblaze.fsl.nput(i32 %value, i32 %port)
- ; CHECK-NEXT: nputd
- call void @llvm.mblaze.fsl.naput(i32 %value, i32 %port)
- ; CHECK-NEXT: naputd
- call void @llvm.mblaze.fsl.ncput(i32 %value, i32 %port)
- ; CHECK-NEXT: ncputd
- call void @llvm.mblaze.fsl.ncaput(i32 %value, i32 %port)
- ; CHECK-NEXT: ncaputd
- call void @llvm.mblaze.fsl.tput(i32 %port)
- ; CHECK-NEXT: tputd
- call void @llvm.mblaze.fsl.taput(i32 %port)
- ; CHECK-NEXT: taputd
- call void @llvm.mblaze.fsl.tcput(i32 %port)
- ; CHECK-NEXT: tcputd
- call void @llvm.mblaze.fsl.tcaput(i32 %port)
- ; CHECK-NEXT: tcaputd
- call void @llvm.mblaze.fsl.tnput(i32 %port)
- ; CHECK-NEXT: tnputd
- call void @llvm.mblaze.fsl.tnaput(i32 %port)
- ; CHECK-NEXT: tnaputd
- call void @llvm.mblaze.fsl.tncput(i32 %port)
- ; CHECK-NEXT: tncputd
- call void @llvm.mblaze.fsl.tncaput(i32 %port)
- ; CHECK-NEXT: tncaputd
- ret void
- ; CHECK: rtsd
-}
-
-define void @putfsl_const(i32 %value)
-{
- ; CHECK: putfsl_const:
- call void @llvm.mblaze.fsl.put(i32 %value, i32 1)
- ; CHECK-NOT: putd
- ; CHECK: put
- call void @llvm.mblaze.fsl.aput(i32 %value, i32 1)
- ; CHECK-NOT: aputd
- ; CHECK: aput
- call void @llvm.mblaze.fsl.cput(i32 %value, i32 1)
- ; CHECK-NOT: cputd
- ; CHECK: cput
- call void @llvm.mblaze.fsl.caput(i32 %value, i32 1)
- ; CHECK-NOT: caputd
- ; CHECK: caput
- call void @llvm.mblaze.fsl.nput(i32 %value, i32 1)
- ; CHECK-NOT: nputd
- ; CHECK: nput
- call void @llvm.mblaze.fsl.naput(i32 %value, i32 1)
- ; CHECK-NOT: naputd
- ; CHECK: naput
- call void @llvm.mblaze.fsl.ncput(i32 %value, i32 1)
- ; CHECK-NOT: ncputd
- ; CHECK: ncput
- call void @llvm.mblaze.fsl.ncaput(i32 %value, i32 1)
- ; CHECK-NOT: ncaputd
- ; CHECK: ncaput
- call void @llvm.mblaze.fsl.tput(i32 1)
- ; CHECK-NOT: tputd
- ; CHECK: tput
- call void @llvm.mblaze.fsl.taput(i32 1)
- ; CHECK-NOT: taputd
- ; CHECK: taput
- call void @llvm.mblaze.fsl.tcput(i32 1)
- ; CHECK-NOT: tcputd
- ; CHECK: tcput
- call void @llvm.mblaze.fsl.tcaput(i32 1)
- ; CHECK-NOT: tcaputd
- ; CHECK: tcaput
- call void @llvm.mblaze.fsl.tnput(i32 1)
- ; CHECK-NOT: tnputd
- ; CHECK: tnput
- call void @llvm.mblaze.fsl.tnaput(i32 1)
- ; CHECK-NOT: tnaputd
- ; CHECK: tnaput
- call void @llvm.mblaze.fsl.tncput(i32 1)
- ; CHECK-NOT: tncputd
- ; CHECK: tncput
- call void @llvm.mblaze.fsl.tncaput(i32 1)
- ; CHECK-NOT: tncaputd
- ; CHECK: tncaput
- ret void
- ; CHECK: rtsd
-}
diff --git a/libclamav/c++/llvm/test/CodeGen/MBlaze/imm.ll b/libclamav/c++/llvm/test/CodeGen/MBlaze/imm.ll
deleted file mode 100644
index 85fad17..0000000
--- a/libclamav/c++/llvm/test/CodeGen/MBlaze/imm.ll
+++ /dev/null
@@ -1,70 +0,0 @@
-; Ensure that all immediate values that are 32-bits or less can be loaded
-; using a single instruction and that immediate values 64-bits or less can
-; be loaded using two instructions.
-;
-; RUN: llc < %s -march=mblaze | FileCheck %s
-; RUN: llc < %s -march=mblaze -mattr=+fpu | FileCheck -check-prefix=FPU %s
-
-define i8 @retimm_i8() {
- ; CHECK: retimm_i8:
- ; CHECK: add
- ; CHECK-NEXT: rtsd
- ; FPU: retimm_i8:
- ; FPU: add
- ; FPU-NEXT: rtsd
- ret i8 123
-}
-
-define i16 @retimm_i16() {
- ; CHECK: retimm_i16:
- ; CHECK: add
- ; CHECK-NEXT: rtsd
- ; FPU: retimm_i16:
- ; FPU: add
- ; FPU-NEXT: rtsd
- ret i16 38212
-}
-
-define i32 @retimm_i32() {
- ; CHECK: retimm_i32:
- ; CHECK: add
- ; CHECK-NEXT: rtsd
- ; FPU: retimm_i32:
- ; FPU: add
- ; FPU-NEXT: rtsd
- ret i32 2938128
-}
-
-define i64 @retimm_i64() {
- ; CHECK: retimm_i64:
- ; CHECK: add
- ; CHECK-NEXT: add
- ; CHECK-NEXT: rtsd
- ; FPU: retimm_i64:
- ; FPU: add
- ; FPU-NEXT: add
- ; FPU-NEXT: rtsd
- ret i64 94581823
-}
-
-define float @retimm_float() {
- ; CHECK: retimm_float:
- ; CHECK: add
- ; CHECK-NEXT: rtsd
- ; FPU: retimm_float:
- ; FPU: or
- ; FPU: rtsd
- ret float 12.0
-}
-
-define double @retimm_double() {
- ; CHECK: retimm_double:
- ; CHECK: add
- ; CHECK-NEXT: add
- ; CHECK-NEXT: rtsd
- ; FPU: retimm_double:
- ; FPU: add
- ; FPU-NEXT: add
- ; FPU-NEXT: rtsd
- ret double 598382.39283873
-}
diff --git a/libclamav/c++/llvm/test/CodeGen/MBlaze/jumptable.ll b/libclamav/c++/llvm/test/CodeGen/MBlaze/jumptable.ll
deleted file mode 100644
index 3f27c12..0000000
--- a/libclamav/c++/llvm/test/CodeGen/MBlaze/jumptable.ll
+++ /dev/null
@@ -1,79 +0,0 @@
-; Ensure that jump tables can be handled by the mblaze backend. The
-; jump table should be lowered to a "br" instruction using one of the
-; available registers.
-;
-; RUN: llc < %s -march=mblaze | FileCheck %s
-
-define i32 @jmptable(i32 %arg)
-{
- ; CHECK: jmptable:
- switch i32 %arg, label %DEFAULT [ i32 0, label %L0
- i32 1, label %L1
- i32 2, label %L2
- i32 3, label %L3
- i32 4, label %L4
- i32 5, label %L5
- i32 6, label %L6
- i32 7, label %L7
- i32 8, label %L8
- i32 9, label %L9 ]
-
- ; CHECK: lw [[REG:r[0-9]*]]
- ; CHECK: br [[REG]]
-L0:
- %var0 = add i32 %arg, 0
- br label %DONE
-
-L1:
- %var1 = add i32 %arg, 1
- br label %DONE
-
-L2:
- %var2 = add i32 %arg, 2
- br label %DONE
-
-L3:
- %var3 = add i32 %arg, 3
- br label %DONE
-
-L4:
- %var4 = add i32 %arg, 4
- br label %DONE
-
-L5:
- %var5 = add i32 %arg, 5
- br label %DONE
-
-L6:
- %var6 = add i32 %arg, 6
- br label %DONE
-
-L7:
- %var7 = add i32 %arg, 7
- br label %DONE
-
-L8:
- %var8 = add i32 %arg, 8
- br label %DONE
-
-L9:
- %var9 = add i32 %arg, 9
- br label %DONE
-
-DEFAULT:
- unreachable
-
-DONE:
- %rval = phi i32 [ %var0, %L0 ],
- [ %var1, %L1 ],
- [ %var2, %L2 ],
- [ %var3, %L3 ],
- [ %var4, %L4 ],
- [ %var5, %L5 ],
- [ %var6, %L6 ],
- [ %var7, %L7 ],
- [ %var8, %L8 ],
- [ %var9, %L9 ]
- ret i32 %rval
- ; CHECK: rtsd
-}
diff --git a/libclamav/c++/llvm/test/CodeGen/MBlaze/loop.ll b/libclamav/c++/llvm/test/CodeGen/MBlaze/loop.ll
deleted file mode 100644
index b473020..0000000
--- a/libclamav/c++/llvm/test/CodeGen/MBlaze/loop.ll
+++ /dev/null
@@ -1,47 +0,0 @@
-; Test some complicated looping constructs to ensure that they
-; compile successfully and that some sort of branching is used
-; in the resulting code.
-;
-; RUN: llc < %s -march=mblaze -mattr=+mul,+fpu,+barrel | FileCheck %s
-
-declare i32 @printf(i8*, ...)
- at MSG = internal constant [19 x i8] c"Message: %d %d %d\0A\00"
-
-define i32 @loop(i32 %a, i32 %b)
-{
- ; CHECK: loop:
-entry:
- br label %loop_outer
-
-loop_outer:
- %outer.0 = phi i32 [ 0, %entry ], [ %outer.2, %loop_outer_finish ]
- br label %loop_inner
-
-loop_inner:
- %inner.0 = phi i32 [ %a, %loop_outer ], [ %inner.3, %loop_inner_finish ]
- %inner.1 = phi i32 [ %b, %loop_outer ], [ %inner.4, %loop_inner_finish ]
- %inner.2 = phi i32 [ 0, %loop_outer ], [ %inner.5, %loop_inner_finish ]
- %inner.3 = add i32 %inner.0, %inner.1
- %inner.4 = mul i32 %inner.2, 11
- br label %loop_inner_finish
-
-loop_inner_finish:
- %inner.5 = add i32 %inner.2, 1
- ; CHECK: addi {{.*, 1}}
-
- call i32 (i8*,...)* @printf( i8* getelementptr([19 x i8]* @MSG,i32 0,i32 0),
- i32 %inner.0, i32 %inner.1, i32 %inner.2 )
- ; CHECK: brlid
-
- %inner.6 = icmp eq i32 %inner.5, 100
- ; CHECK: cmp
-
- br i1 %inner.6, label %loop_inner, label %loop_outer_finish
- ; CHECK: {{beq|bne}}
-
-loop_outer_finish:
- %outer.1 = add i32 %outer.0, 1
- %outer.2 = urem i32 %outer.1, 1500
- br label %loop_outer
- ; CHECK: br
-}
diff --git a/libclamav/c++/llvm/test/CodeGen/MBlaze/mul.ll b/libclamav/c++/llvm/test/CodeGen/MBlaze/mul.ll
deleted file mode 100644
index 65d3e22..0000000
--- a/libclamav/c++/llvm/test/CodeGen/MBlaze/mul.ll
+++ /dev/null
@@ -1,51 +0,0 @@
-; Ensure that multiplication is lowered to function calls when the multiplier
-; unit is not available in the hardware and that function calls are not used
-; when the multiplier unit is available in the hardware.
-;
-; RUN: llc < %s -march=mblaze | FileCheck -check-prefix=FUN %s
-; RUN: llc < %s -march=mblaze -mattr=+mul | FileCheck -check-prefix=MUL %s
-
-define i8 @test_i8(i8 %a, i8 %b) {
- ; FUN: test_i8:
- ; MUL: test_i8:
-
- %tmp.1 = mul i8 %a, %b
- ; FUN-NOT: mul
- ; FUN: brlid
- ; MUL-NOT: brlid
- ; MUL: mul
-
- ret i8 %tmp.1
- ; FUN: rtsd
- ; MUL: rtsd
-}
-
-define i16 @test_i16(i16 %a, i16 %b) {
- ; FUN: test_i16:
- ; MUL: test_i16:
-
- %tmp.1 = mul i16 %a, %b
- ; FUN-NOT: mul
- ; FUN: brlid
- ; MUL-NOT: brlid
- ; MUL: mul
-
- ret i16 %tmp.1
- ; FUN: rtsd
- ; MUL: rtsd
-}
-
-define i32 @test_i32(i32 %a, i32 %b) {
- ; FUN: test_i32:
- ; MUL: test_i32:
-
- %tmp.1 = mul i32 %a, %b
- ; FUN-NOT: mul
- ; FUN: brlid
- ; MUL-NOT: brlid
- ; MUL: mul
-
- ret i32 %tmp.1
- ; FUN: rtsd
- ; MUL: rtsd
-}
diff --git a/libclamav/c++/llvm/test/CodeGen/MBlaze/mul64.ll b/libclamav/c++/llvm/test/CodeGen/MBlaze/mul64.ll
deleted file mode 100644
index e0ef413..0000000
--- a/libclamav/c++/llvm/test/CodeGen/MBlaze/mul64.ll
+++ /dev/null
@@ -1,23 +0,0 @@
-; Ensure that multiplication is lowered to function calls when the 64-bit
-; multiplier unit is not available in the hardware and that function calls
-; are not used when the 64-bit multiplier unit is available in the hardware.
-;
-; RUN: llc < %s -march=mblaze | FileCheck -check-prefix=FUN %s
-; RUN: llc < %s -march=mblaze -mattr=+mul,+mul64 | \
-; RUN: FileCheck -check-prefix=MUL %s
-
-define i64 @test_i64(i64 %a, i64 %b) {
- ; FUN: test_i64:
- ; MUL: test_i64:
-
- %tmp.1 = mul i64 %a, %b
- ; FUN-NOT: mul
- ; FUN: brlid
- ; MUL-NOT: brlid
- ; MUL: mulh
- ; MUL: mul
-
- ret i64 %tmp.1
- ; FUN: rtsd
- ; MUL: rtsd
-}
diff --git a/libclamav/c++/llvm/test/CodeGen/MBlaze/select.ll b/libclamav/c++/llvm/test/CodeGen/MBlaze/select.ll
deleted file mode 100644
index 47a88a1..0000000
--- a/libclamav/c++/llvm/test/CodeGen/MBlaze/select.ll
+++ /dev/null
@@ -1,15 +0,0 @@
-; Ensure that the select instruction is supported and is lowered to
-; some sort of branch instruction.
-;
-; RUN: llc < %s -march=mblaze | FileCheck %s
-
-define i32 @testsel(i32 %a, i32 %b)
-{
- ; CHECK: testsel:
- %tmp.1 = icmp eq i32 %a, %b
- ; CHECK: cmp
- %tmp.2 = select i1 %tmp.1, i32 %a, i32 %b
- ; CHECK: {{bne|beq}}
- ret i32 %tmp.2
- ; CHECK: rtsd
-}
diff --git a/libclamav/c++/llvm/test/CodeGen/MBlaze/shift.ll b/libclamav/c++/llvm/test/CodeGen/MBlaze/shift.ll
deleted file mode 100644
index 186115e..0000000
--- a/libclamav/c++/llvm/test/CodeGen/MBlaze/shift.ll
+++ /dev/null
@@ -1,117 +0,0 @@
-; Ensure that shifts are lowered to loops when the barrel shifter unit is
-; not available in the hardware and that loops are not used when the
-; barrel shifter unit is available in the hardware.
-;
-; RUN: llc < %s -march=mblaze | FileCheck -check-prefix=FUN %s
-; RUN: llc < %s -march=mblaze -mattr=+barrel | FileCheck -check-prefix=SHT %s
-
-define i8 @test_i8(i8 %a, i8 %b) {
- ; FUN: test_i8:
- ; SHT: test_i8:
-
- %tmp.1 = shl i8 %a, %b
- ; FUN-NOT: bsll
- ; FUN: andi
- ; FUN: add
- ; FUN: bnei
- ; SHT-NOT: andi
- ; SHT-NOT: bnei
- ; SHT: bsll
-
- ret i8 %tmp.1
- ; FUN: rtsd
- ; SHT: rtsd
-}
-
-define i8 @testc_i8(i8 %a, i8 %b) {
- ; FUN: testc_i8:
- ; SHT: testc_i8:
-
- %tmp.1 = shl i8 %a, 5
- ; FUN-NOT: bsll
- ; FUN: andi
- ; FUN: add
- ; FUN: bnei
- ; SHT-NOT: andi
- ; SHT-NOT: add
- ; SHT-NOT: bnei
- ; SHT: bslli
-
- ret i8 %tmp.1
- ; FUN: rtsd
- ; SHT: rtsd
-}
-
-define i16 @test_i16(i16 %a, i16 %b) {
- ; FUN: test_i16:
- ; SHT: test_i16:
-
- %tmp.1 = shl i16 %a, %b
- ; FUN-NOT: bsll
- ; FUN: andi
- ; FUN: add
- ; FUN: bnei
- ; SHT-NOT: andi
- ; SHT-NOT: bnei
- ; SHT: bsll
-
- ret i16 %tmp.1
- ; FUN: rtsd
- ; SHT: rtsd
-}
-
-define i16 @testc_i16(i16 %a, i16 %b) {
- ; FUN: testc_i16:
- ; SHT: testc_i16:
-
- %tmp.1 = shl i16 %a, 5
- ; FUN-NOT: bsll
- ; FUN: andi
- ; FUN: add
- ; FUN: bnei
- ; SHT-NOT: andi
- ; SHT-NOT: add
- ; SHT-NOT: bnei
- ; SHT: bslli
-
- ret i16 %tmp.1
- ; FUN: rtsd
- ; SHT: rtsd
-}
-
-define i32 @test_i32(i32 %a, i32 %b) {
- ; FUN: test_i32:
- ; SHT: test_i32:
-
- %tmp.1 = shl i32 %a, %b
- ; FUN-NOT: bsll
- ; FUN: andi
- ; FUN: add
- ; FUN: bnei
- ; SHT-NOT: andi
- ; SHT-NOT: bnei
- ; SHT: bsll
-
- ret i32 %tmp.1
- ; FUN: rtsd
- ; SHT: rtsd
-}
-
-define i32 @testc_i32(i32 %a, i32 %b) {
- ; FUN: testc_i32:
- ; SHT: testc_i32:
-
- %tmp.1 = shl i32 %a, 5
- ; FUN-NOT: bsll
- ; FUN: andi
- ; FUN: add
- ; FUN: bnei
- ; SHT-NOT: andi
- ; SHT-NOT: add
- ; SHT-NOT: bnei
- ; SHT: bslli
-
- ret i32 %tmp.1
- ; FUN: rtsd
- ; SHT: rtsd
-}
diff --git a/libclamav/c++/llvm/test/Other/2002-01-31-CallGraph.ll b/libclamav/c++/llvm/test/Other/2002-01-31-CallGraph.ll
deleted file mode 100644
index 0e4c877..0000000
--- a/libclamav/c++/llvm/test/Other/2002-01-31-CallGraph.ll
+++ /dev/null
@@ -1,13 +0,0 @@
-; Call graph construction crash: Not handling indirect calls right
-;
-; RUN: opt < %s -analyze -print-callgraph >& /dev/null
-;
-
- %FunTy = type i32 (i32)
-
-define void @invoke(%FunTy* %x) {
- %foo = call i32 %x( i32 123 ) ; <i32> [#uses=0]
- ret void
-}
-
-
diff --git a/libclamav/c++/llvm/test/Other/2002-02-24-InlineBrokePHINodes.ll b/libclamav/c++/llvm/test/Other/2002-02-24-InlineBrokePHINodes.ll
deleted file mode 100644
index db26942..0000000
--- a/libclamav/c++/llvm/test/Other/2002-02-24-InlineBrokePHINodes.ll
+++ /dev/null
@@ -1,23 +0,0 @@
-; Inlining used to break PHI nodes. This tests that they are correctly updated
-; when a node is split around the call instruction. The verifier caught the error.
-;
-; RUN: opt < %s -inline
-;
-
-define i64 @test(i64 %X) {
- ret i64 %X
-}
-
-define i64 @fib(i64 %n) {
-; <label>:0
- %T = icmp ult i64 %n, 2 ; <i1> [#uses=1]
- br i1 %T, label %BaseCase, label %RecurseCase
-
-RecurseCase: ; preds = %0
- %result = call i64 @test( i64 %n ) ; <i64> [#uses=0]
- br label %BaseCase
-
-BaseCase: ; preds = %RecurseCase, %0
- %X = phi i64 [ 1, %0 ], [ 2, %RecurseCase ] ; <i64> [#uses=1]
- ret i64 %X
-}
diff --git a/libclamav/c++/llvm/test/Other/2002-03-11-ConstPropCrash.ll b/libclamav/c++/llvm/test/Other/2002-03-11-ConstPropCrash.ll
deleted file mode 100644
index a6d4f5b..0000000
--- a/libclamav/c++/llvm/test/Other/2002-03-11-ConstPropCrash.ll
+++ /dev/null
@@ -1,24 +0,0 @@
-; When constant propogating terminator instructions, the basic block iterator
-; was not updated to refer to the final position of the new terminator. This
-; can be bad, f.e. because constproping a terminator can lead to the
-; destruction of PHI nodes, which invalidates the iterator!
-;
-; Fixed by adding new arguments to ConstantFoldTerminator
-;
-; RUN: opt < %s -constprop
-
-define void @build_tree(i32 %ml) {
-; <label>:0
- br label %bb2
-
-bb2: ; preds = %bb2, %0
- %reg137 = phi i32 [ %reg140, %bb2 ], [ 12, %0 ] ; <i32> [#uses=1]
- %reg138 = phi i32 [ %reg139, %bb2 ], [ 0, %0 ] ; <i32> [#uses=1]
- %reg139 = add i32 %reg138, 1 ; <i32> [#uses=1]
- %reg140 = add i32 %reg137, -1 ; <i32> [#uses=1]
- br i1 false, label %bb2, label %bb3
-
-bb3: ; preds = %bb2
- ret void
-}
-
diff --git a/libclamav/c++/llvm/test/Other/2003-02-19-LoopInfoNestingBug.ll b/libclamav/c++/llvm/test/Other/2003-02-19-LoopInfoNestingBug.ll
deleted file mode 100644
index 13f8351..0000000
--- a/libclamav/c++/llvm/test/Other/2003-02-19-LoopInfoNestingBug.ll
+++ /dev/null
@@ -1,29 +0,0 @@
-; LoopInfo is incorrectly calculating loop nesting! In this case it doesn't
-; figure out that loop "Inner" should be nested inside of leep "LoopHeader",
-; and instead nests it just inside loop "Top"
-;
-; RUN: opt < %s -analyze -loops | \
-; RUN: grep { Loop at depth 3 containing: %Inner<header><latch><exiting>}
-;
-define void @test() {
- br label %Top
-
-Top: ; preds = %Out, %0
- br label %LoopHeader
-
-Next: ; preds = %LoopHeader
- br i1 false, label %Inner, label %Out
-
-Inner: ; preds = %Inner, %Next
- br i1 false, label %Inner, label %LoopHeader
-
-LoopHeader: ; preds = %Inner, %Top
- br label %Next
-
-Out: ; preds = %Next
- br i1 false, label %Top, label %Done
-
-Done: ; preds = %Out
- ret void
-}
-
diff --git a/libclamav/c++/llvm/test/Other/2004-08-16-PackedConstantInlineStore.ll b/libclamav/c++/llvm/test/Other/2004-08-16-PackedConstantInlineStore.ll
deleted file mode 100644
index 36ac4fd..0000000
--- a/libclamav/c++/llvm/test/Other/2004-08-16-PackedConstantInlineStore.ll
+++ /dev/null
@@ -1,8 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis
- at bar = external global <2 x i32> ; <<2 x i32>*> [#uses=1]
-
-define void @main() {
- store <2 x i32> < i32 0, i32 1 >, <2 x i32>* @bar
- ret void
-}
-
diff --git a/libclamav/c++/llvm/test/Other/2004-08-16-PackedGlobalConstant.ll b/libclamav/c++/llvm/test/Other/2004-08-16-PackedGlobalConstant.ll
deleted file mode 100644
index 9130ccb..0000000
--- a/libclamav/c++/llvm/test/Other/2004-08-16-PackedGlobalConstant.ll
+++ /dev/null
@@ -1,11 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis
-
- at foo = global <2 x i32> < i32 0, i32 1 > ; <<2 x i32>*> [#uses=1]
- at bar = external global <2 x i32> ; <<2 x i32>*> [#uses=1]
-
-define void @main() {
- %t0 = load <2 x i32>* @foo ; <<2 x i32>> [#uses=1]
- store <2 x i32> %t0, <2 x i32>* @bar
- ret void
-}
-
diff --git a/libclamav/c++/llvm/test/Other/2004-08-16-PackedSelect.ll b/libclamav/c++/llvm/test/Other/2004-08-16-PackedSelect.ll
deleted file mode 100644
index c1d6214..0000000
--- a/libclamav/c++/llvm/test/Other/2004-08-16-PackedSelect.ll
+++ /dev/null
@@ -1,13 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis
-
- at foo = external global <4 x float> ; <<4 x float>*> [#uses=1]
- at bar = external global <4 x float> ; <<4 x float>*> [#uses=1]
-
-define void @main() {
- %t0 = load <4 x float>* @foo ; <<4 x float>> [#uses=3]
- %t1 = fadd <4 x float> %t0, %t0 ; <<4 x float>> [#uses=1]
- %t2 = select i1 true, <4 x float> %t0, <4 x float> %t1 ; <<4 x float>> [#uses=1]
- store <4 x float> %t2, <4 x float>* @bar
- ret void
-}
-
diff --git a/libclamav/c++/llvm/test/Other/2004-08-16-PackedSimple.ll b/libclamav/c++/llvm/test/Other/2004-08-16-PackedSimple.ll
deleted file mode 100644
index 81cecd4..0000000
--- a/libclamav/c++/llvm/test/Other/2004-08-16-PackedSimple.ll
+++ /dev/null
@@ -1,13 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis
-
- at foo = external global <4 x float> ; <<4 x float>*> [#uses=1]
- at bar = external global <4 x float> ; <<4 x float>*> [#uses=1]
-
-define void @main() {
- %t0 = load <4 x float>* @foo ; <<4 x float>> [#uses=3]
- %t2 = fadd <4 x float> %t0, %t0 ; <<4 x float>> [#uses=1]
- %t3 = select i1 false, <4 x float> %t0, <4 x float> %t2 ; <<4 x float>> [#uses=1]
- store <4 x float> %t3, <4 x float>* @bar
- ret void
-}
-
diff --git a/libclamav/c++/llvm/test/Other/2004-08-20-PackedControlFlow.ll b/libclamav/c++/llvm/test/Other/2004-08-20-PackedControlFlow.ll
deleted file mode 100644
index 3943570..0000000
--- a/libclamav/c++/llvm/test/Other/2004-08-20-PackedControlFlow.ll
+++ /dev/null
@@ -1,22 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | llvm-as > /dev/null
-
- %v4f = type <4 x float>
- at foo = external global %v4f ; <%v4f*> [#uses=1]
- at bar = external global %v4f ; <%v4f*> [#uses=1]
-
-define void @main() {
- br label %A
-
-C: ; preds = %B
- store %v4f %t2, %v4f* @bar
- ret void
-
-B: ; preds = %A
- %t2 = fadd %v4f %t0, %t0 ; <%v4f> [#uses=1]
- br label %C
-
-A: ; preds = %0
- %t0 = load %v4f* @foo ; <%v4f> [#uses=2]
- br label %B
-}
-
diff --git a/libclamav/c++/llvm/test/Other/2006-02-05-PassManager.ll b/libclamav/c++/llvm/test/Other/2006-02-05-PassManager.ll
deleted file mode 100644
index 0ab5411..0000000
--- a/libclamav/c++/llvm/test/Other/2006-02-05-PassManager.ll
+++ /dev/null
@@ -1,5 +0,0 @@
-; RUN: opt < %s -domtree -gvn -domtree -constmerge -disable-output
-
-define i32 @test1() {
- unreachable
-}
diff --git a/libclamav/c++/llvm/test/Other/2007-04-24-eliminate-mostly-empty-blocks.ll b/libclamav/c++/llvm/test/Other/2007-04-24-eliminate-mostly-empty-blocks.ll
deleted file mode 100644
index c436e07..0000000
--- a/libclamav/c++/llvm/test/Other/2007-04-24-eliminate-mostly-empty-blocks.ll
+++ /dev/null
@@ -1,309 +0,0 @@
-;RUN: opt < %s -codegenprepare -disable-output
-
-define void @foo() {
-entry:
- br i1 false, label %cond_next31, label %cond_true
-
-cond_true: ; preds = %entry
- br i1 false, label %cond_true19, label %cond_next31
-
-cond_true19: ; preds = %cond_true
- br i1 false, label %bb510, label %cond_next31
-
-cond_next31: ; preds = %cond_true19, %cond_true, %entry
- br i1 false, label %cond_true61, label %cond_next78
-
-cond_true61: ; preds = %cond_next31
- br label %cond_next78
-
-cond_next78: ; preds = %cond_true61, %cond_next31
- br i1 false, label %cond_true93, label %bb.preheader
-
-cond_true93: ; preds = %cond_next78
- br label %bb.preheader
-
-bb.preheader: ; preds = %cond_true93, %cond_next78
- %iftmp.11.0.ph.ph = phi i16 [ 0, %cond_true93 ], [ 0, %cond_next78 ] ; <i16> [#uses=1]
- br label %bb
-
-bb: ; preds = %cond_next499, %bb.preheader
- %n.1 = phi i16 [ %iftmp.11.0.ph.ph, %cond_next499 ], [ 0, %bb.preheader ] ; <i16> [#uses=0]
- br i1 false, label %bb148.preheader, label %bb493
-
-bb148.preheader: ; preds = %bb
- br label %bb148
-
-bb148: ; preds = %cond_next475, %bb148.preheader
- br i1 false, label %cond_next175, label %bb184
-
-cond_next175: ; preds = %bb148
- br i1 false, label %bb184, label %bb185
-
-bb184: ; preds = %cond_next175, %bb148
- br label %bb185
-
-bb185: ; preds = %bb184, %cond_next175
- br i1 false, label %bb420.preheader, label %cond_true198
-
-bb420.preheader: ; preds = %bb185
- br label %bb420
-
-cond_true198: ; preds = %bb185
- br i1 false, label %bb294, label %cond_next208
-
-cond_next208: ; preds = %cond_true198
- br i1 false, label %cond_next249, label %cond_true214
-
-cond_true214: ; preds = %cond_next208
- br i1 false, label %bb294, label %cond_next262
-
-cond_next249: ; preds = %cond_next208
- br i1 false, label %bb294, label %cond_next262
-
-cond_next262: ; preds = %cond_next249, %cond_true214
- br label %bb269
-
-bb269: ; preds = %cond_next285, %cond_next262
- br i1 false, label %cond_next285, label %cond_true279
-
-cond_true279: ; preds = %bb269
- br label %cond_next285
-
-cond_next285: ; preds = %cond_true279, %bb269
- br i1 false, label %bb269, label %cond_next446.loopexit
-
-bb294: ; preds = %cond_next249, %cond_true214, %cond_true198
- br i1 false, label %cond_next336, label %cond_true301
-
-cond_true301: ; preds = %bb294
- br i1 false, label %cond_false398, label %cond_true344
-
-cond_next336: ; preds = %bb294
- br i1 false, label %cond_false398, label %cond_true344
-
-cond_true344: ; preds = %cond_next336, %cond_true301
- br i1 false, label %cond_false381, label %cond_true351
-
-cond_true351: ; preds = %cond_true344
- br label %cond_next387
-
-cond_false381: ; preds = %cond_true344
- br label %cond_next387
-
-cond_next387: ; preds = %cond_false381, %cond_true351
- br label %cond_next401
-
-cond_false398: ; preds = %cond_next336, %cond_true301
- br label %cond_next401
-
-cond_next401: ; preds = %cond_false398, %cond_next387
- br i1 false, label %cond_next475, label %cond_true453
-
-bb420: ; preds = %cond_next434, %bb420.preheader
- br i1 false, label %cond_next434, label %cond_true428
-
-cond_true428: ; preds = %bb420
- br label %cond_next434
-
-cond_next434: ; preds = %cond_true428, %bb420
- br i1 false, label %bb420, label %cond_next446.loopexit1
-
-cond_next446.loopexit: ; preds = %cond_next285
- br label %cond_next446
-
-cond_next446.loopexit1: ; preds = %cond_next434
- br label %cond_next446
-
-cond_next446: ; preds = %cond_next446.loopexit1, %cond_next446.loopexit
- br i1 false, label %cond_next475, label %cond_true453
-
-cond_true453: ; preds = %cond_next446, %cond_next401
- br i1 false, label %cond_true458, label %cond_next475
-
-cond_true458: ; preds = %cond_true453
- br label %cond_next475
-
-cond_next475: ; preds = %cond_true458, %cond_true453, %cond_next446, %cond_next401
- br i1 false, label %bb493.loopexit, label %bb148
-
-bb493.loopexit: ; preds = %cond_next475
- br label %bb493
-
-bb493: ; preds = %bb493.loopexit, %bb
- br i1 false, label %cond_next499, label %bb510.loopexit
-
-cond_next499: ; preds = %bb493
- br label %bb
-
-bb510.loopexit: ; preds = %bb493
- br label %bb510
-
-bb510: ; preds = %bb510.loopexit, %cond_true19
- br i1 false, label %cond_next524, label %cond_true517
-
-cond_true517: ; preds = %bb510
- br label %cond_next524
-
-cond_next524: ; preds = %cond_true517, %bb510
- br i1 false, label %cond_next540, label %cond_true533
-
-cond_true533: ; preds = %cond_next524
- br label %cond_next540
-
-cond_next540: ; preds = %cond_true533, %cond_next524
- br i1 false, label %cond_true554, label %cond_next560
-
-cond_true554: ; preds = %cond_next540
- br label %cond_next560
-
-cond_next560: ; preds = %cond_true554, %cond_next540
- br i1 false, label %cond_true566, label %cond_next572
-
-cond_true566: ; preds = %cond_next560
- br label %cond_next572
-
-cond_next572: ; preds = %cond_true566, %cond_next560
- br i1 false, label %bb608.preheader, label %bb791.preheader
-
-bb608.preheader: ; preds = %cond_next797.us, %cond_next572
- br label %bb608
-
-bb608: ; preds = %cond_next771, %bb608.preheader
- br i1 false, label %cond_false627, label %cond_true613
-
-cond_true613: ; preds = %bb608
- br label %cond_next640
-
-cond_false627: ; preds = %bb608
- br label %cond_next640
-
-cond_next640: ; preds = %cond_false627, %cond_true613
- br i1 false, label %cond_true653, label %cond_next671
-
-cond_true653: ; preds = %cond_next640
- br label %cond_next671
-
-cond_next671: ; preds = %cond_true653, %cond_next640
- br i1 false, label %cond_true683, label %cond_next724
-
-cond_true683: ; preds = %cond_next671
- br i1 false, label %cond_next724, label %L1
-
-cond_next724: ; preds = %cond_true683, %cond_next671
- br i1 false, label %cond_true735, label %L1
-
-cond_true735: ; preds = %cond_next724
- br label %L1
-
-L1: ; preds = %cond_true735, %cond_next724, %cond_true683
- br i1 false, label %cond_true745, label %cond_next771
-
-cond_true745: ; preds = %L1
- br label %cond_next771
-
-cond_next771: ; preds = %cond_true745, %L1
- br i1 false, label %bb608, label %bb791.preheader.loopexit
-
-bb791.preheader.loopexit: ; preds = %cond_next771
- br label %bb791.preheader
-
-bb791.preheader: ; preds = %bb791.preheader.loopexit, %cond_next572
- br i1 false, label %cond_next797.us, label %bb809.split
-
-cond_next797.us: ; preds = %bb791.preheader
- br label %bb608.preheader
-
-bb809.split: ; preds = %bb791.preheader
- br i1 false, label %cond_next827, label %cond_true820
-
-cond_true820: ; preds = %bb809.split
- br label %cond_next827
-
-cond_next827: ; preds = %cond_true820, %bb809.split
- br i1 false, label %cond_true833, label %cond_next840
-
-cond_true833: ; preds = %cond_next827
- br label %cond_next840
-
-cond_next840: ; preds = %cond_true833, %cond_next827
- br i1 false, label %bb866, label %bb1245
-
-bb866: ; preds = %bb1239, %cond_next840
- br i1 false, label %cond_true875, label %bb911
-
-cond_true875: ; preds = %bb866
- br label %cond_next1180
-
-bb911: ; preds = %bb866
- switch i32 0, label %bb1165 [
- i32 0, label %bb915
- i32 1, label %bb932
- i32 2, label %bb941
- i32 3, label %bb1029
- i32 4, label %bb1036
- i32 5, label %bb1069
- i32 6, label %L3
- ]
-
-bb915: ; preds = %cond_next1171, %bb911
- br i1 false, label %cond_next1171, label %cond_next1180
-
-bb932: ; preds = %cond_next1171, %bb911
- br label %L1970
-
-bb941: ; preds = %cond_next1171, %bb911
- br label %L1970
-
-L1970: ; preds = %bb941, %bb932
- br label %bb1165
-
-bb1029: ; preds = %cond_next1171, %bb911
- br label %L4
-
-bb1036: ; preds = %cond_next1171, %bb911
- br label %L4
-
-bb1069: ; preds = %cond_next1171, %bb911
- br i1 false, label %cond_next1121, label %cond_true1108
-
-L3: ; preds = %cond_next1171, %bb911
- br i1 false, label %cond_next1121, label %cond_true1108
-
-cond_true1108: ; preds = %L3, %bb1069
- br label %L4
-
-cond_next1121: ; preds = %L3, %bb1069
- br label %L4
-
-L4: ; preds = %cond_next1121, %cond_true1108, %bb1036, %bb1029
- br label %bb1165
-
-bb1165: ; preds = %cond_next1171, %L4, %L1970, %bb911
- br i1 false, label %cond_next1171, label %cond_next1180
-
-cond_next1171: ; preds = %bb1165, %bb915
- switch i32 0, label %bb1165 [
- i32 0, label %bb915
- i32 1, label %bb932
- i32 2, label %bb941
- i32 3, label %bb1029
- i32 4, label %bb1036
- i32 5, label %bb1069
- i32 6, label %L3
- ]
-
-cond_next1180: ; preds = %bb1165, %bb915, %cond_true875
- br label %bb1239
-
-bb1239: ; preds = %cond_next1251, %cond_next1180
- br i1 false, label %bb866, label %bb1245
-
-bb1245: ; preds = %bb1239, %cond_next840
- br i1 false, label %cond_next1251, label %bb1257
-
-cond_next1251: ; preds = %bb1245
- br label %bb1239
-
-bb1257: ; preds = %bb1245
- ret void
-}
diff --git a/libclamav/c++/llvm/test/Other/2007-06-05-PassID.ll b/libclamav/c++/llvm/test/Other/2007-06-05-PassID.ll
deleted file mode 100644
index 2554b8b..0000000
--- a/libclamav/c++/llvm/test/Other/2007-06-05-PassID.ll
+++ /dev/null
@@ -1,11 +0,0 @@
-;RUN: opt < %s -analyze -dot-cfg-only 2>/dev/null
-;PR 1497
-
-define void @foo() {
-entry:
- br label %return
-
-return: ; preds = %entry
- ret void
-}
-
diff --git a/libclamav/c++/llvm/test/Other/2007-06-28-PassManager.ll b/libclamav/c++/llvm/test/Other/2007-06-28-PassManager.ll
deleted file mode 100644
index 0ed2759..0000000
--- a/libclamav/c++/llvm/test/Other/2007-06-28-PassManager.ll
+++ /dev/null
@@ -1,7 +0,0 @@
-; RUN: opt < %s -analyze -inline
-; PR1526
-; RUN: opt < %s -analyze -indvars
-; PR1539
-define i32 @test1() {
- ret i32 0
-}
diff --git a/libclamav/c++/llvm/test/Other/2007-09-10-PassManager.ll b/libclamav/c++/llvm/test/Other/2007-09-10-PassManager.ll
deleted file mode 100644
index ded15e5..0000000
--- a/libclamav/c++/llvm/test/Other/2007-09-10-PassManager.ll
+++ /dev/null
@@ -1,32 +0,0 @@
-; RUN: opt < %s -loop-unswitch -indvars -disable-output
-; Require SCEV before LCSSA.
-define void @foo() {
-entry:
- %i = alloca i32, align 4 ; <i32*> [#uses=5]
- %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
- store i32 0, i32* %i, align 4
- br label %bb3
-
-bb: ; preds = %bb3
- %tmp = load i32* %i, align 4 ; <i32> [#uses=1]
- call void @bar( i32 %tmp )
- %tmp1 = load i32* %i, align 4 ; <i32> [#uses=1]
- %tmp2 = add i32 %tmp1, 1 ; <i32> [#uses=1]
- store i32 %tmp2, i32* %i, align 4
- br label %bb3
-
-bb3: ; preds = %bb, %entry
- %tmp4 = load i32* %i, align 4 ; <i32> [#uses=1]
- %tmp5 = icmp sle i32 %tmp4, 9 ; <i1> [#uses=1]
- %tmp56 = zext i1 %tmp5 to i8 ; <i8> [#uses=1]
- %toBool = icmp ne i8 %tmp56, 0 ; <i1> [#uses=1]
- br i1 %toBool, label %bb, label %bb7
-
-bb7: ; preds = %bb3
- br label %return
-
-return: ; preds = %bb7
- ret void
-}
-
-declare void @bar(i32)
diff --git a/libclamav/c++/llvm/test/Other/2008-02-14-PassManager.ll b/libclamav/c++/llvm/test/Other/2008-02-14-PassManager.ll
deleted file mode 100644
index bdaf933..0000000
--- a/libclamav/c++/llvm/test/Other/2008-02-14-PassManager.ll
+++ /dev/null
@@ -1,5 +0,0 @@
-; RUN: opt < %s -loop-unroll -loop-rotate -simplifycfg -disable-output
-; PR2028
-define i32 @test1() {
- ret i32 0
-}
diff --git a/libclamav/c++/llvm/test/Other/2008-06-04-FieldSizeInPacked.ll b/libclamav/c++/llvm/test/Other/2008-06-04-FieldSizeInPacked.ll
deleted file mode 100644
index d90209f..0000000
--- a/libclamav/c++/llvm/test/Other/2008-06-04-FieldSizeInPacked.ll
+++ /dev/null
@@ -1,14 +0,0 @@
-; RUN: opt < %s -instcombine -S | grep true
-
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
-target triple = "x86_64-unknown-linux-gnu"
- %packed = type <{ x86_fp80, i8 }>
- %unpacked = type { x86_fp80, i8 }
-
-define i1 @q() nounwind {
-entry:
- %char_p = getelementptr %packed* null, i32 0, i32 1 ; <i8*> [#uses=1]
- %char_u = getelementptr %unpacked* null, i32 0, i32 1 ; <i8*> [#uses=1]
- %res = icmp eq i8* %char_p, %char_u ; <i1> [#uses=1]
- ret i1 %res
-}
diff --git a/libclamav/c++/llvm/test/Other/2008-08-14-PassManager.ll b/libclamav/c++/llvm/test/Other/2008-08-14-PassManager.ll
deleted file mode 100644
index 8d6a6d8..0000000
--- a/libclamav/c++/llvm/test/Other/2008-08-14-PassManager.ll
+++ /dev/null
@@ -1,5 +0,0 @@
-; RUN: opt < %s -loop-deletion -loop-index-split -disable-output
-; PR2640
-define i32 @test1() {
- ret i32 0
-}
diff --git a/libclamav/c++/llvm/test/Other/2008-10-06-RemoveDeadPass.ll b/libclamav/c++/llvm/test/Other/2008-10-06-RemoveDeadPass.ll
deleted file mode 100644
index 7cec2c5..0000000
--- a/libclamav/c++/llvm/test/Other/2008-10-06-RemoveDeadPass.ll
+++ /dev/null
@@ -1,11 +0,0 @@
-; RUN: opt < %s -inline -internalize -disable-output
-define void @foo() nounwind {
- ret void
-}
-
-define void @main(...) nounwind {
- call void @foo()
- ret void
-}
-
-
diff --git a/libclamav/c++/llvm/test/Other/2008-10-15-MissingSpace.ll b/libclamav/c++/llvm/test/Other/2008-10-15-MissingSpace.ll
deleted file mode 100644
index a61fa61..0000000
--- a/libclamav/c++/llvm/test/Other/2008-10-15-MissingSpace.ll
+++ /dev/null
@@ -1,7 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | not grep {void@}
-; PR2894
-declare void @g()
-define void @f() {
- invoke void @g() to label %c unwind label %c
- c: ret void
-}
diff --git a/libclamav/c++/llvm/test/Other/2009-03-31-CallGraph.ll b/libclamav/c++/llvm/test/Other/2009-03-31-CallGraph.ll
deleted file mode 100644
index d6653ec..0000000
--- a/libclamav/c++/llvm/test/Other/2009-03-31-CallGraph.ll
+++ /dev/null
@@ -1,31 +0,0 @@
-; RUN: opt < %s -inline -prune-eh -disable-output
-define void @f2() {
- invoke void @f6()
- to label %ok1 unwind label %lpad1
-
-ok1:
- ret void
-
-lpad1:
- invoke void @f4()
- to label %ok2 unwind label %lpad2
-
-ok2:
- call void @f8()
- unreachable
-
-lpad2:
- unreachable
-}
-
-declare void @f3()
-
-define void @f4() {
- call void @f3()
- ret void
-}
-
-declare void @f6() nounwind
-
-declare void @f8()
-
diff --git a/libclamav/c++/llvm/test/Other/2009-06-05-no-implicit-float.ll b/libclamav/c++/llvm/test/Other/2009-06-05-no-implicit-float.ll
deleted file mode 100644
index 3f07170..0000000
--- a/libclamav/c++/llvm/test/Other/2009-06-05-no-implicit-float.ll
+++ /dev/null
@@ -1,4 +0,0 @@
-
-; RUN: opt < %s -verify -S | grep noimplicitfloat
-declare void @f() noimplicitfloat
-
diff --git a/libclamav/c++/llvm/test/Other/2009-09-14-function-elements.ll b/libclamav/c++/llvm/test/Other/2009-09-14-function-elements.ll
deleted file mode 100644
index 883d76d..0000000
--- a/libclamav/c++/llvm/test/Other/2009-09-14-function-elements.ll
+++ /dev/null
@@ -1,6 +0,0 @@
-; RUN: not llvm-as %s -disable-output 2>/dev/null
-
-; Arrays and structures with function types (not function pointers) are illegal.
-
- at foo = external global [4 x i32 (i32)]
- at bar = external global { i32 (i32) }
diff --git a/libclamav/c++/llvm/test/Other/constant-fold-gep.ll b/libclamav/c++/llvm/test/Other/constant-fold-gep.ll
deleted file mode 100644
index 5358e1f..0000000
--- a/libclamav/c++/llvm/test/Other/constant-fold-gep.ll
+++ /dev/null
@@ -1,470 +0,0 @@
-; "PLAIN" - No optimizations. This tests the target-independent
-; constant folder.
-; RUN: opt -S -o - < %s | FileCheck --check-prefix=PLAIN %s
-
-; "OPT" - Optimizations but no targetdata. This tests target-independent
-; folding in the optimizers.
-; RUN: opt -S -o - -instcombine -globalopt < %s | FileCheck --check-prefix=OPT %s
-
-; "TO" - Optimizations and targetdata. This tests target-dependent
-; folding in the optimizers.
-; RUN: opt -S -o - -instcombine -globalopt -default-data-layout="e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64" < %s | FileCheck --check-prefix=TO %s
-
-; "SCEV" - ScalarEvolution but no targetdata.
-; RUN: opt -analyze -scalar-evolution < %s | FileCheck --check-prefix=SCEV %s
-
-; ScalarEvolution with targetdata isn't interesting on these testcases
-; because ScalarEvolution doesn't attempt to duplicate all of instcombine's
-; and the constant folders' folding.
-
-; PLAIN: %0 = type { i1, double }
-; PLAIN: %1 = type { double, float, double, double }
-; PLAIN: %2 = type { i1, i1* }
-; PLAIN: %3 = type { i64, i64 }
-; OPT: %0 = type { i1, double }
-; OPT: %1 = type { double, float, double, double }
-; OPT: %2 = type { i1, i1* }
-; OPT: %3 = type { i64, i64 }
-
-; The automatic constant folder in opt does not have targetdata access, so
-; it can't fold gep arithmetic, in general. However, the constant folder run
-; from instcombine and global opt can use targetdata.
-
-; PLAIN: @G8 = global i8* getelementptr (i8* inttoptr (i32 1 to i8*), i32 -1)
-; PLAIN: @G1 = global i1* getelementptr (i1* inttoptr (i32 1 to i1*), i32 -1)
-; PLAIN: @F8 = global i8* getelementptr (i8* inttoptr (i32 1 to i8*), i32 -2)
-; PLAIN: @F1 = global i1* getelementptr (i1* inttoptr (i32 1 to i1*), i32 -2)
-; PLAIN: @H8 = global i8* getelementptr (i8* null, i32 -1)
-; PLAIN: @H1 = global i1* getelementptr (i1* null, i32 -1)
-; OPT: @G8 = global i8* getelementptr (i8* inttoptr (i32 1 to i8*), i32 -1)
-; OPT: @G1 = global i1* getelementptr (i1* inttoptr (i32 1 to i1*), i32 -1)
-; OPT: @F8 = global i8* getelementptr (i8* inttoptr (i32 1 to i8*), i32 -2)
-; OPT: @F1 = global i1* getelementptr (i1* inttoptr (i32 1 to i1*), i32 -2)
-; OPT: @H8 = global i8* getelementptr (i8* null, i32 -1)
-; OPT: @H1 = global i1* getelementptr (i1* null, i32 -1)
-; TO: @G8 = global i8* null
-; TO: @G1 = global i1* null
-; TO: @F8 = global i8* inttoptr (i64 -1 to i8*)
-; TO: @F1 = global i1* inttoptr (i64 -1 to i1*)
-; TO: @H8 = global i8* inttoptr (i64 -1 to i8*)
-; TO: @H1 = global i1* inttoptr (i64 -1 to i1*)
-
- at G8 = global i8* getelementptr (i8* inttoptr (i32 1 to i8*), i32 -1)
- at G1 = global i1* getelementptr (i1* inttoptr (i32 1 to i1*), i32 -1)
- at F8 = global i8* getelementptr (i8* inttoptr (i32 1 to i8*), i32 -2)
- at F1 = global i1* getelementptr (i1* inttoptr (i32 1 to i1*), i32 -2)
- at H8 = global i8* getelementptr (i8* inttoptr (i32 0 to i8*), i32 -1)
- at H1 = global i1* getelementptr (i1* inttoptr (i32 0 to i1*), i32 -1)
-
-; The target-independent folder should be able to do some clever
-; simplifications on sizeof, alignof, and offsetof expressions. The
-; target-dependent folder should fold these down to constants.
-
-; PLAIN: @a = constant i64 mul (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 2310)
-; PLAIN: @b = constant i64 ptrtoint (double* getelementptr (%0* null, i64 0, i32 1) to i64)
-; PLAIN: @c = constant i64 mul nuw (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 2)
-; PLAIN: @d = constant i64 mul nuw (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 11)
-; PLAIN: @e = constant i64 ptrtoint (double* getelementptr (%1* null, i64 0, i32 2) to i64)
-; PLAIN: @f = constant i64 1
-; PLAIN: @g = constant i64 ptrtoint (double* getelementptr (%0* null, i64 0, i32 1) to i64)
-; PLAIN: @h = constant i64 ptrtoint (i1** getelementptr (i1** null, i32 1) to i64)
-; PLAIN: @i = constant i64 ptrtoint (i1** getelementptr (%2* null, i64 0, i32 1) to i64)
-; PLAIN: @j = constant i64 ptrtoint (double* getelementptr (%0* null, i64 0, i32 1) to i64)
-; PLAIN: @k = constant i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64)
-; OPT: @a = constant i64 mul (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 2310)
-; OPT: @b = constant i64 ptrtoint (double* getelementptr (%0* null, i64 0, i32 1) to i64)
-; OPT: @c = constant i64 mul (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 2)
-; OPT: @d = constant i64 mul (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 11)
-; OPT: @e = constant i64 ptrtoint (double* getelementptr (%1* null, i64 0, i32 2) to i64)
-; OPT: @f = constant i64 1
-; OPT: @g = constant i64 ptrtoint (double* getelementptr (%0* null, i64 0, i32 1) to i64)
-; OPT: @h = constant i64 ptrtoint (i1** getelementptr (i1** null, i32 1) to i64)
-; OPT: @i = constant i64 ptrtoint (i1** getelementptr (%2* null, i64 0, i32 1) to i64)
-; OPT: @j = constant i64 ptrtoint (double* getelementptr (%0* null, i64 0, i32 1) to i64)
-; OPT: @k = constant i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64)
-; TO: @a = constant i64 18480
-; TO: @b = constant i64 8
-; TO: @c = constant i64 16
-; TO: @d = constant i64 88
-; TO: @e = constant i64 16
-; TO: @f = constant i64 1
-; TO: @g = constant i64 8
-; TO: @h = constant i64 8
-; TO: @i = constant i64 8
-; TO: @j = constant i64 8
-; TO: @k = constant i64 8
-
- at a = constant i64 mul (i64 3, i64 mul (i64 ptrtoint ({[7 x double], [7 x double]}* getelementptr ({[7 x double], [7 x double]}* null, i64 11) to i64), i64 5))
- at b = constant i64 ptrtoint ([13 x double]* getelementptr ({i1, [13 x double]}* null, i64 0, i32 1) to i64)
- at c = constant i64 ptrtoint (double* getelementptr ({double, double, double, double}* null, i64 0, i32 2) to i64)
- at d = constant i64 ptrtoint (double* getelementptr ([13 x double]* null, i64 0, i32 11) to i64)
- at e = constant i64 ptrtoint (double* getelementptr ({double, float, double, double}* null, i64 0, i32 2) to i64)
- at f = constant i64 ptrtoint (<{ i16, i128 }>* getelementptr ({i1, <{ i16, i128 }>}* null, i64 0, i32 1) to i64)
- at g = constant i64 ptrtoint ({double, double}* getelementptr ({i1, {double, double}}* null, i64 0, i32 1) to i64)
- at h = constant i64 ptrtoint (double** getelementptr (double** null, i64 1) to i64)
- at i = constant i64 ptrtoint (double** getelementptr ({i1, double*}* null, i64 0, i32 1) to i64)
- at j = constant i64 ptrtoint (union {double, double}* getelementptr ({i1, union {double, double}}* null, i64 0, i32 1) to i64)
- at k = constant i64 ptrtoint (union {double, double}* getelementptr (union {double, double}* null, i64 1) to i64)
-
-; The target-dependent folder should cast GEP indices to integer-sized pointers.
-
-; PLAIN: @M = constant i64* getelementptr (i64* null, i32 1)
-; PLAIN: @N = constant i64* getelementptr (%3* null, i32 0, i32 1)
-; PLAIN: @O = constant i64* getelementptr ([2 x i64]* null, i32 0, i32 1)
-; OPT: @M = constant i64* getelementptr (i64* null, i32 1)
-; OPT: @N = constant i64* getelementptr (%3* null, i32 0, i32 1)
-; OPT: @O = constant i64* getelementptr ([2 x i64]* null, i32 0, i32 1)
-; TO: @M = constant i64* inttoptr (i64 8 to i64*)
-; TO: @N = constant i64* inttoptr (i64 8 to i64*)
-; TO: @O = constant i64* inttoptr (i64 8 to i64*)
-
- at M = constant i64* getelementptr (i64 *null, i32 1)
- at N = constant i64* getelementptr ({ i64, i64 } *null, i32 0, i32 1)
- at O = constant i64* getelementptr ([2 x i64] *null, i32 0, i32 1)
-
-; Duplicate all of the above as function return values rather than
-; global initializers.
-
-; PLAIN: define i8* @goo8() nounwind {
-; PLAIN: %t = bitcast i8* getelementptr (i8* inttoptr (i32 1 to i8*), i32 -1) to i8*
-; PLAIN: ret i8* %t
-; PLAIN: }
-; PLAIN: define i1* @goo1() nounwind {
-; PLAIN: %t = bitcast i1* getelementptr (i1* inttoptr (i32 1 to i1*), i32 -1) to i1*
-; PLAIN: ret i1* %t
-; PLAIN: }
-; PLAIN: define i8* @foo8() nounwind {
-; PLAIN: %t = bitcast i8* getelementptr (i8* inttoptr (i32 1 to i8*), i32 -2) to i8*
-; PLAIN: ret i8* %t
-; PLAIN: }
-; PLAIN: define i1* @foo1() nounwind {
-; PLAIN: %t = bitcast i1* getelementptr (i1* inttoptr (i32 1 to i1*), i32 -2) to i1*
-; PLAIN: ret i1* %t
-; PLAIN: }
-; PLAIN: define i8* @hoo8() nounwind {
-; PLAIN: %t = bitcast i8* getelementptr (i8* null, i32 -1) to i8*
-; PLAIN: ret i8* %t
-; PLAIN: }
-; PLAIN: define i1* @hoo1() nounwind {
-; PLAIN: %t = bitcast i1* getelementptr (i1* null, i32 -1) to i1*
-; PLAIN: ret i1* %t
-; PLAIN: }
-; OPT: define i8* @goo8() nounwind {
-; OPT: ret i8* getelementptr (i8* inttoptr (i32 1 to i8*), i32 -1)
-; OPT: }
-; OPT: define i1* @goo1() nounwind {
-; OPT: ret i1* getelementptr (i1* inttoptr (i32 1 to i1*), i32 -1)
-; OPT: }
-; OPT: define i8* @foo8() nounwind {
-; OPT: ret i8* getelementptr (i8* inttoptr (i32 1 to i8*), i32 -2)
-; OPT: }
-; OPT: define i1* @foo1() nounwind {
-; OPT: ret i1* getelementptr (i1* inttoptr (i32 1 to i1*), i32 -2)
-; OPT: }
-; OPT: define i8* @hoo8() nounwind {
-; OPT: ret i8* getelementptr (i8* null, i32 -1)
-; OPT: }
-; OPT: define i1* @hoo1() nounwind {
-; OPT: ret i1* getelementptr (i1* null, i32 -1)
-; OPT: }
-; TO: define i8* @goo8() nounwind {
-; TO: ret i8* null
-; TO: }
-; TO: define i1* @goo1() nounwind {
-; TO: ret i1* null
-; TO: }
-; TO: define i8* @foo8() nounwind {
-; TO: ret i8* inttoptr (i64 -1 to i8*)
-; TO: }
-; TO: define i1* @foo1() nounwind {
-; TO: ret i1* inttoptr (i64 -1 to i1*)
-; TO: }
-; TO: define i8* @hoo8() nounwind {
-; TO: ret i8* inttoptr (i64 -1 to i8*)
-; TO: }
-; TO: define i1* @hoo1() nounwind {
-; TO: ret i1* inttoptr (i64 -1 to i1*)
-; TO: }
-; SCEV: Classifying expressions for: @goo8
-; SCEV: %t = bitcast i8* getelementptr (i8* inttoptr (i32 1 to i8*), i32 -1) to i8*
-; SCEV: --> ((-1 * sizeof(i8)) + inttoptr (i32 1 to i8*))
-; SCEV: Classifying expressions for: @goo1
-; SCEV: %t = bitcast i1* getelementptr (i1* inttoptr (i32 1 to i1*), i32 -1) to i1*
-; SCEV: --> ((-1 * sizeof(i1)) + inttoptr (i32 1 to i1*))
-; SCEV: Classifying expressions for: @foo8
-; SCEV: %t = bitcast i8* getelementptr (i8* inttoptr (i32 1 to i8*), i32 -2) to i8*
-; SCEV: --> ((-2 * sizeof(i8)) + inttoptr (i32 1 to i8*))
-; SCEV: Classifying expressions for: @foo1
-; SCEV: %t = bitcast i1* getelementptr (i1* inttoptr (i32 1 to i1*), i32 -2) to i1*
-; SCEV: --> ((-2 * sizeof(i1)) + inttoptr (i32 1 to i1*))
-; SCEV: Classifying expressions for: @hoo8
-; SCEV: --> (-1 * sizeof(i8))
-; SCEV: Classifying expressions for: @hoo1
-; SCEV: --> (-1 * sizeof(i1))
-
-define i8* @goo8() nounwind {
- %t = bitcast i8* getelementptr (i8* inttoptr (i32 1 to i8*), i32 -1) to i8*
- ret i8* %t
-}
-define i1* @goo1() nounwind {
- %t = bitcast i1* getelementptr (i1* inttoptr (i32 1 to i1*), i32 -1) to i1*
- ret i1* %t
-}
-define i8* @foo8() nounwind {
- %t = bitcast i8* getelementptr (i8* inttoptr (i32 1 to i8*), i32 -2) to i8*
- ret i8* %t
-}
-define i1* @foo1() nounwind {
- %t = bitcast i1* getelementptr (i1* inttoptr (i32 1 to i1*), i32 -2) to i1*
- ret i1* %t
-}
-define i8* @hoo8() nounwind {
- %t = bitcast i8* getelementptr (i8* inttoptr (i32 0 to i8*), i32 -1) to i8*
- ret i8* %t
-}
-define i1* @hoo1() nounwind {
- %t = bitcast i1* getelementptr (i1* inttoptr (i32 0 to i1*), i32 -1) to i1*
- ret i1* %t
-}
-
-; PLAIN: define i64 @fa() nounwind {
-; PLAIN: %t = bitcast i64 mul (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 2310) to i64
-; PLAIN: ret i64 %t
-; PLAIN: }
-; PLAIN: define i64 @fb() nounwind {
-; PLAIN: %t = bitcast i64 ptrtoint (double* getelementptr (%0* null, i64 0, i32 1) to i64) to i64
-; PLAIN: ret i64 %t
-; PLAIN: }
-; PLAIN: define i64 @fc() nounwind {
-; PLAIN: %t = bitcast i64 mul nuw (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 2) to i64
-; PLAIN: ret i64 %t
-; PLAIN: }
-; PLAIN: define i64 @fd() nounwind {
-; PLAIN: %t = bitcast i64 mul nuw (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 11) to i64
-; PLAIN: ret i64 %t
-; PLAIN: }
-; PLAIN: define i64 @fe() nounwind {
-; PLAIN: %t = bitcast i64 ptrtoint (double* getelementptr (%1* null, i64 0, i32 2) to i64) to i64
-; PLAIN: ret i64 %t
-; PLAIN: }
-; PLAIN: define i64 @ff() nounwind {
-; PLAIN: %t = bitcast i64 1 to i64
-; PLAIN: ret i64 %t
-; PLAIN: }
-; PLAIN: define i64 @fg() nounwind {
-; PLAIN: %t = bitcast i64 ptrtoint (double* getelementptr (%0* null, i64 0, i32 1) to i64) to i64
-; PLAIN: ret i64 %t
-; PLAIN: }
-; PLAIN: define i64 @fh() nounwind {
-; PLAIN: %t = bitcast i64 ptrtoint (i1** getelementptr (i1** null, i32 1) to i64) to i64
-; PLAIN: ret i64 %t
-; PLAIN: }
-; PLAIN: define i64 @fi() nounwind {
-; PLAIN: %t = bitcast i64 ptrtoint (i1** getelementptr (%2* null, i64 0, i32 1) to i64) to i64
-; PLAIN: ret i64 %t
-; PLAIN: }
-; PLAIN: define i64 @fj() nounwind {
-; PLAIN: %t = bitcast i64 ptrtoint (double* getelementptr (%0* null, i64 0, i32 1) to i64) to i64
-; PLAIN: ret i64 %t
-; PLAIN: }
-; PLAIN: define i64 @fk() nounwind {
-; PLAIN: %t = bitcast i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64) to i64
-; PLAIN: ret i64 %t
-; PLAIN: }
-; OPT: define i64 @fa() nounwind {
-; OPT: ret i64 mul (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 2310)
-; OPT: }
-; OPT: define i64 @fb() nounwind {
-; OPT: ret i64 ptrtoint (double* getelementptr (%0* null, i64 0, i32 1) to i64)
-; OPT: }
-; OPT: define i64 @fc() nounwind {
-; OPT: ret i64 mul nuw (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 2)
-; OPT: }
-; OPT: define i64 @fd() nounwind {
-; OPT: ret i64 mul nuw (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 11)
-; OPT: }
-; OPT: define i64 @fe() nounwind {
-; OPT: ret i64 ptrtoint (double* getelementptr (%1* null, i64 0, i32 2) to i64)
-; OPT: }
-; OPT: define i64 @ff() nounwind {
-; OPT: ret i64 1
-; OPT: }
-; OPT: define i64 @fg() nounwind {
-; OPT: ret i64 ptrtoint (double* getelementptr (%0* null, i64 0, i32 1) to i64)
-; OPT: }
-; OPT: define i64 @fh() nounwind {
-; OPT: ret i64 ptrtoint (i1** getelementptr (i1** null, i32 1) to i64)
-; OPT: }
-; OPT: define i64 @fi() nounwind {
-; OPT: ret i64 ptrtoint (i1** getelementptr (%2* null, i64 0, i32 1) to i64)
-; OPT: }
-; OPT: define i64 @fj() nounwind {
-; OPT: ret i64 ptrtoint (double* getelementptr (%0* null, i64 0, i32 1) to i64)
-; OPT: }
-; OPT: define i64 @fk() nounwind {
-; OPT: ret i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64)
-; OPT: }
-; TO: define i64 @fa() nounwind {
-; TO: ret i64 18480
-; TO: }
-; TO: define i64 @fb() nounwind {
-; TO: ret i64 8
-; TO: }
-; TO: define i64 @fc() nounwind {
-; TO: ret i64 16
-; TO: }
-; TO: define i64 @fd() nounwind {
-; TO: ret i64 88
-; TO: }
-; TO: define i64 @fe() nounwind {
-; TO: ret i64 16
-; TO: }
-; TO: define i64 @ff() nounwind {
-; TO: ret i64 1
-; TO: }
-; TO: define i64 @fg() nounwind {
-; TO: ret i64 8
-; TO: }
-; TO: define i64 @fh() nounwind {
-; TO: ret i64 8
-; TO: }
-; TO: define i64 @fi() nounwind {
-; TO: ret i64 8
-; TO: }
-; TO: define i64 @fj() nounwind {
-; TO: ret i64 8
-; TO: }
-; TO: define i64 @fk() nounwind {
-; TO: ret i64 8
-; TO: }
-; SCEV: Classifying expressions for: @fa
-; SCEV: %t = bitcast i64 mul (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 2310) to i64
-; SCEV: --> (2310 * sizeof(double))
-; SCEV: Classifying expressions for: @fb
-; SCEV: %t = bitcast i64 ptrtoint (double* getelementptr (%0* null, i64 0, i32 1) to i64) to i64
-; SCEV: --> alignof(double)
-; SCEV: Classifying expressions for: @fc
-; SCEV: %t = bitcast i64 mul nuw (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 2) to i64
-; SCEV: --> (2 * sizeof(double))
-; SCEV: Classifying expressions for: @fd
-; SCEV: %t = bitcast i64 mul nuw (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 11) to i64
-; SCEV: --> (11 * sizeof(double))
-; SCEV: Classifying expressions for: @fe
-; SCEV: %t = bitcast i64 ptrtoint (double* getelementptr (%1* null, i64 0, i32 2) to i64) to i64
-; SCEV: --> offsetof({ double, float, double, double }, 2)
-; SCEV: Classifying expressions for: @ff
-; SCEV: %t = bitcast i64 1 to i64
-; SCEV: --> 1
-; SCEV: Classifying expressions for: @fg
-; SCEV: %t = bitcast i64 ptrtoint (double* getelementptr (%0* null, i64 0, i32 1) to i64) to i64
-; SCEV: --> alignof(double)
-; SCEV: Classifying expressions for: @fh
-; SCEV: %t = bitcast i64 ptrtoint (i1** getelementptr (i1** null, i32 1) to i64) to i64
-; SCEV: --> sizeof(i1*)
-; SCEV: Classifying expressions for: @fi
-; SCEV: %t = bitcast i64 ptrtoint (i1** getelementptr (%2* null, i64 0, i32 1) to i64) to i64
-; SCEV: --> alignof(i1*)
-; SCEV: Classifying expressions for: @fj
-; SCEV: %t = bitcast i64 ptrtoint (double* getelementptr (%0* null, i64 0, i32 1) to i64) to i64
-; SCEV: --> alignof(double)
-; SCEV: Classifying expressions for: @fk
-; SCEV: %t = bitcast i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64) to i64
-; SCEV: --> sizeof(double)
-
-define i64 @fa() nounwind {
- %t = bitcast i64 mul (i64 3, i64 mul (i64 ptrtoint ({[7 x double], [7 x double]}* getelementptr ({[7 x double], [7 x double]}* null, i64 11) to i64), i64 5)) to i64
- ret i64 %t
-}
-define i64 @fb() nounwind {
- %t = bitcast i64 ptrtoint ([13 x double]* getelementptr ({i1, [13 x double]}* null, i64 0, i32 1) to i64) to i64
- ret i64 %t
-}
-define i64 @fc() nounwind {
- %t = bitcast i64 ptrtoint (double* getelementptr ({double, double, double, double}* null, i64 0, i32 2) to i64) to i64
- ret i64 %t
-}
-define i64 @fd() nounwind {
- %t = bitcast i64 ptrtoint (double* getelementptr ([13 x double]* null, i64 0, i32 11) to i64) to i64
- ret i64 %t
-}
-define i64 @fe() nounwind {
- %t = bitcast i64 ptrtoint (double* getelementptr ({double, float, double, double}* null, i64 0, i32 2) to i64) to i64
- ret i64 %t
-}
-define i64 @ff() nounwind {
- %t = bitcast i64 ptrtoint (<{ i16, i128 }>* getelementptr ({i1, <{ i16, i128 }>}* null, i64 0, i32 1) to i64) to i64
- ret i64 %t
-}
-define i64 @fg() nounwind {
- %t = bitcast i64 ptrtoint ({double, double}* getelementptr ({i1, {double, double}}* null, i64 0, i32 1) to i64) to i64
- ret i64 %t
-}
-define i64 @fh() nounwind {
- %t = bitcast i64 ptrtoint (double** getelementptr (double** null, i32 1) to i64) to i64
- ret i64 %t
-}
-define i64 @fi() nounwind {
- %t = bitcast i64 ptrtoint (double** getelementptr ({i1, double*}* null, i64 0, i32 1) to i64) to i64
- ret i64 %t
-}
-define i64 @fj() nounwind {
- %t = bitcast i64 ptrtoint (union {double, double}* getelementptr ({i1, union {double, double}}* null, i64 0, i32 1) to i64) to i64
- ret i64 %t
-}
-define i64 @fk() nounwind {
- %t = bitcast i64 ptrtoint (union {double, double}* getelementptr (union {double, double}* null, i64 1) to i64) to i64
- ret i64 %t
-}
-
-; PLAIN: define i64* @fM() nounwind {
-; PLAIN: %t = bitcast i64* getelementptr (i64* null, i32 1) to i64*
-; PLAIN: ret i64* %t
-; PLAIN: }
-; PLAIN: define i64* @fN() nounwind {
-; PLAIN: %t = bitcast i64* getelementptr (%3* null, i32 0, i32 1) to i64*
-; PLAIN: ret i64* %t
-; PLAIN: }
-; PLAIN: define i64* @fO() nounwind {
-; PLAIN: %t = bitcast i64* getelementptr ([2 x i64]* null, i32 0, i32 1) to i64*
-; PLAIN: ret i64* %t
-; PLAIN: }
-; OPT: define i64* @fM() nounwind {
-; OPT: ret i64* getelementptr (i64* null, i32 1)
-; OPT: }
-; OPT: define i64* @fN() nounwind {
-; OPT: ret i64* getelementptr (%3* null, i32 0, i32 1)
-; OPT: }
-; OPT: define i64* @fO() nounwind {
-; OPT: ret i64* getelementptr ([2 x i64]* null, i32 0, i32 1)
-; OPT: }
-; TO: define i64* @fM() nounwind {
-; TO: ret i64* inttoptr (i64 8 to i64*)
-; TO: }
-; TO: define i64* @fN() nounwind {
-; TO: ret i64* inttoptr (i64 8 to i64*)
-; TO: }
-; TO: define i64* @fO() nounwind {
-; TO: ret i64* inttoptr (i64 8 to i64*)
-; TO: }
-; SCEV: Classifying expressions for: @fM
-; SCEV: %t = bitcast i64* getelementptr (i64* null, i32 1) to i64*
-; SCEV: --> sizeof(i64)
-; SCEV: Classifying expressions for: @fN
-; SCEV: %t = bitcast i64* getelementptr (%3* null, i32 0, i32 1) to i64*
-; SCEV: --> sizeof(i64)
-; SCEV: Classifying expressions for: @fO
-; SCEV: %t = bitcast i64* getelementptr ([2 x i64]* null, i32 0, i32 1) to i64*
-; SCEV: --> sizeof(i64)
-
-define i64* @fM() nounwind {
- %t = bitcast i64* getelementptr (i64 *null, i32 1) to i64*
- ret i64* %t
-}
-define i64* @fN() nounwind {
- %t = bitcast i64* getelementptr ({ i64, i64 } *null, i32 0, i32 1) to i64*
- ret i64* %t
-}
-define i64* @fO() nounwind {
- %t = bitcast i64* getelementptr ([2 x i64] *null, i32 0, i32 1) to i64*
- ret i64* %t
-}
diff --git a/libclamav/c++/llvm/test/Other/dg.exp b/libclamav/c++/llvm/test/Other/dg.exp
deleted file mode 100644
index f200589..0000000
--- a/libclamav/c++/llvm/test/Other/dg.exp
+++ /dev/null
@@ -1,3 +0,0 @@
-load_lib llvm.exp
-
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
diff --git a/libclamav/c++/llvm/test/Other/invalid-commandline-option.ll b/libclamav/c++/llvm/test/Other/invalid-commandline-option.ll
deleted file mode 100644
index 60840fa..0000000
--- a/libclamav/c++/llvm/test/Other/invalid-commandline-option.ll
+++ /dev/null
@@ -1,3 +0,0 @@
-; RUN: not opt --foo |& grep {Unknown command line argument}
-
-; there is no --foo
diff --git a/libclamav/c++/llvm/test/TableGen/2003-08-03-PassCode.td b/libclamav/c++/llvm/test/TableGen/2003-08-03-PassCode.td
deleted file mode 100644
index 7142186..0000000
--- a/libclamav/c++/llvm/test/TableGen/2003-08-03-PassCode.td
+++ /dev/null
@@ -1,7 +0,0 @@
-// RUN: tblgen %s
-
-class test<code C> {
- code Code = C;
-}
-
-def foo : test<[{ hello world! }]>;
diff --git a/libclamav/c++/llvm/test/TableGen/2006-09-18-LargeInt.td b/libclamav/c++/llvm/test/TableGen/2006-09-18-LargeInt.td
deleted file mode 100644
index afd813f..0000000
--- a/libclamav/c++/llvm/test/TableGen/2006-09-18-LargeInt.td
+++ /dev/null
@@ -1,5 +0,0 @@
-// RUN: tblgen %s | grep -- 4294901760
-
-def X {
- int Y = 0xFFFF0000;
-}
diff --git a/libclamav/c++/llvm/test/TableGen/AnonDefinitionOnDemand.td b/libclamav/c++/llvm/test/TableGen/AnonDefinitionOnDemand.td
deleted file mode 100644
index d567fc8..0000000
--- a/libclamav/c++/llvm/test/TableGen/AnonDefinitionOnDemand.td
+++ /dev/null
@@ -1,12 +0,0 @@
-// RUN: tblgen < %s
-
-class foo<int X> { int THEVAL = X; }
-def foo_imp : foo<1>;
-
-def x {
- foo Y = foo_imp; // This works.
-}
-
-def X {
- foo Y = foo<1>; // This should work too, synthesizing a new foo<1>.
-}
diff --git a/libclamav/c++/llvm/test/TableGen/BitsInitOverflow.td b/libclamav/c++/llvm/test/TableGen/BitsInitOverflow.td
deleted file mode 100644
index 076b3f6..0000000
--- a/libclamav/c++/llvm/test/TableGen/BitsInitOverflow.td
+++ /dev/null
@@ -1,5 +0,0 @@
-// RUN: not tblgen %s 2> /dev/null
-
-def {
- bits<2> X = 5; // bitfield is too small, reject
-}
diff --git a/libclamav/c++/llvm/test/TableGen/CStyleComment.td b/libclamav/c++/llvm/test/TableGen/CStyleComment.td
deleted file mode 100644
index 703ae68..0000000
--- a/libclamav/c++/llvm/test/TableGen/CStyleComment.td
+++ /dev/null
@@ -1,14 +0,0 @@
-// Test that multiline, nested, comments work correctly.
-//
-// RUN: tblgen < %s
-
-/* Foo
- bar
- /*
- blah
- */
-
- stuff
- */
-
-def x;
diff --git a/libclamav/c++/llvm/test/TableGen/DagDefSubst.td b/libclamav/c++/llvm/test/TableGen/DagDefSubst.td
deleted file mode 100644
index e5eebe9..0000000
--- a/libclamav/c++/llvm/test/TableGen/DagDefSubst.td
+++ /dev/null
@@ -1,15 +0,0 @@
-// RUN: tblgen %s | grep {dag d = (X Y)}
-// RUN: tblgen %s | grep {dag e = (Y X)}
-def X;
-
-class yclass;
-def Y : yclass;
-
-class C<yclass N> {
- dag d = (X N);
- dag e = (N X);
-}
-
-def VAL : C<Y>;
-
-
diff --git a/libclamav/c++/llvm/test/TableGen/DagIntSubst.td b/libclamav/c++/llvm/test/TableGen/DagIntSubst.td
deleted file mode 100644
index 3c1291c..0000000
--- a/libclamav/c++/llvm/test/TableGen/DagIntSubst.td
+++ /dev/null
@@ -1,10 +0,0 @@
-// RUN: tblgen %s | grep {dag d = (X 13)}
-def X;
-
-class C<int N> {
- dag d = (X N);
-}
-
-def VAL : C<13>;
-
-
diff --git a/libclamav/c++/llvm/test/TableGen/DefmInherit.td b/libclamav/c++/llvm/test/TableGen/DefmInherit.td
deleted file mode 100644
index 4f37edf..0000000
--- a/libclamav/c++/llvm/test/TableGen/DefmInherit.td
+++ /dev/null
@@ -1,32 +0,0 @@
-// RUN: tblgen %s | grep {zing = 4} | count 4
-
-class C1<int A, string B> {
- int bar = A;
- string thestr = B;
- int zing;
-}
-
-def T : C1<4, "blah">;
-
-multiclass t<int a> {
- def S1 : C1<a, "foo"> {
- int foo = 4;
- let bar = 1;
- }
- def S2 : C1<a, "bar">;
-}
-
-multiclass s<int a> {
- def S3 : C1<a, "moo"> {
- int moo = 3;
- let bar = 1;
- }
- def S4 : C1<a, "baz">;
-}
-
-defm FOO : t<42>, s<24>;
-
-def T4 : C1<6, "foo">;
-
-let zing = 4 in
- defm BAZ : t<3>, s<4>;
diff --git a/libclamav/c++/llvm/test/TableGen/ForwardRef.td b/libclamav/c++/llvm/test/TableGen/ForwardRef.td
deleted file mode 100644
index 2056b1f..0000000
--- a/libclamav/c++/llvm/test/TableGen/ForwardRef.td
+++ /dev/null
@@ -1,15 +0,0 @@
-// RUN: tblgen %s -o -
-
-class bar {
- list<bar> x;
-}
-
-class foo;
-class foo;
-
-class baz { list<foo> y; }
-
-class foo {
-
-}
-
diff --git a/libclamav/c++/llvm/test/TableGen/GeneralList.td b/libclamav/c++/llvm/test/TableGen/GeneralList.td
deleted file mode 100644
index 7f099f2..0000000
--- a/libclamav/c++/llvm/test/TableGen/GeneralList.td
+++ /dev/null
@@ -1,8 +0,0 @@
-// RUN: tblgen %s
-//
-// Test to make sure that lists work with any data-type
-
-class foo {
- list<int> Test = [1, 2, 3];
- list<string> Test2 = ["abc", "xyz", "gtq"];
-}
diff --git a/libclamav/c++/llvm/test/TableGen/Include.inc b/libclamav/c++/llvm/test/TableGen/Include.inc
deleted file mode 100644
index 876bf47..0000000
--- a/libclamav/c++/llvm/test/TableGen/Include.inc
+++ /dev/null
@@ -1,4 +0,0 @@
-// This is used by the Include.td test
-def InInclude;
-
-
diff --git a/libclamav/c++/llvm/test/TableGen/Include.td b/libclamav/c++/llvm/test/TableGen/Include.td
deleted file mode 100644
index 29ed515..0000000
--- a/libclamav/c++/llvm/test/TableGen/Include.td
+++ /dev/null
@@ -1,7 +0,0 @@
-// RUN: tblgen -I %p %s
-def BeforeInclude;
-
-include "Include.inc"
-
-def AfterInclude;
-
diff --git a/libclamav/c++/llvm/test/TableGen/IntBitInit.td b/libclamav/c++/llvm/test/TableGen/IntBitInit.td
deleted file mode 100644
index b949bfe..0000000
--- a/libclamav/c++/llvm/test/TableGen/IntBitInit.td
+++ /dev/null
@@ -1,5 +0,0 @@
-// RUN: tblgen %s
-def {
- bit A = 1;
- int B = A;
-}
diff --git a/libclamav/c++/llvm/test/TableGen/LazyChange.td b/libclamav/c++/llvm/test/TableGen/LazyChange.td
deleted file mode 100644
index 145fd0b..0000000
--- a/libclamav/c++/llvm/test/TableGen/LazyChange.td
+++ /dev/null
@@ -1,11 +0,0 @@
-// RUN: tblgen %s | grep {int Y = 3}
-
-
-class C {
- int X = 4;
- int Y = X;
-}
-
-let X = 3 in
-def D : C; // Y should be 3 too!
-
diff --git a/libclamav/c++/llvm/test/TableGen/ListArgs.td b/libclamav/c++/llvm/test/TableGen/ListArgs.td
deleted file mode 100644
index daa0de6..0000000
--- a/libclamav/c++/llvm/test/TableGen/ListArgs.td
+++ /dev/null
@@ -1,11 +0,0 @@
-// RUN: tblgen %s
-
-class B<list<int> v> {
- list<int> vals = v;
-}
-
-class BB<list<list<int>> vals> : B<vals[0]>;
-class BBB<list<list<int>> vals> : BB<vals>;
-
-def OneB : BBB<[[1,2,3]]>;
-def TwoB : BBB<[[1,2,3],[4,5,6]]>;
diff --git a/libclamav/c++/llvm/test/TableGen/ListArgsSimple.td b/libclamav/c++/llvm/test/TableGen/ListArgsSimple.td
deleted file mode 100644
index b3b2078..0000000
--- a/libclamav/c++/llvm/test/TableGen/ListArgsSimple.td
+++ /dev/null
@@ -1,8 +0,0 @@
-// RUN: tblgen %s
-
-class B<int v> {
- int val = v;
-}
-
-class BB<list<int> vals> : B<vals[0]>;
-class BBB<list<int> vals> : BB<vals>;
diff --git a/libclamav/c++/llvm/test/TableGen/ListConversion.td b/libclamav/c++/llvm/test/TableGen/ListConversion.td
deleted file mode 100644
index 773ed6e..0000000
--- a/libclamav/c++/llvm/test/TableGen/ListConversion.td
+++ /dev/null
@@ -1,10 +0,0 @@
-// RUN: tblgen %s
-class A;
-class B : A;
-
-def b : B;
-
-def {
- list<B> X = [b];
- list<A> Y = X;
-}
diff --git a/libclamav/c++/llvm/test/TableGen/ListSlices.td b/libclamav/c++/llvm/test/TableGen/ListSlices.td
deleted file mode 100644
index be794cf..0000000
--- a/libclamav/c++/llvm/test/TableGen/ListSlices.td
+++ /dev/null
@@ -1,18 +0,0 @@
-// RUN: tblgen %s
-
-def A {
- list<int> B = [10, 20, 30, 4, 1, 1231, 20];
-}
-
-def B {
- list<int> X = [10, 20, 30, 4, 1, 1231, 20] [2-4,2,2,0-6];
-
- list<int> Y = X[4,5];
- int Z = X[4];
-
- list<int> C = A.B[1-4];
-
- list<list<int>> AA = [X, Y];
-
- int BB = AA[0][1];
-}
diff --git a/libclamav/c++/llvm/test/TableGen/MultiClass.td b/libclamav/c++/llvm/test/TableGen/MultiClass.td
deleted file mode 100644
index 52ba59c..0000000
--- a/libclamav/c++/llvm/test/TableGen/MultiClass.td
+++ /dev/null
@@ -1,25 +0,0 @@
-// RUN: tblgen %s | grep {zing = 4} | count 2
-
-class C1<int A, string B> {
- int bar = A;
- string thestr = B;
- int zing;
-}
-
-def T : C1<4, "blah">;
-
-multiclass t<int a> {
- def S1 : C1<a, "foo"> {
- int foo = 4;
- let bar = 1;
- }
- def S2 : C1<a, "bar">;
-}
-
-defm FOO : t<42>;
-
-def T4 : C1<6, "foo">;
-
-let zing = 4 in
- defm BAZ : t<3>;
-
diff --git a/libclamav/c++/llvm/test/TableGen/MultiClassDefName.td b/libclamav/c++/llvm/test/TableGen/MultiClassDefName.td
deleted file mode 100644
index 2e71f7d..0000000
--- a/libclamav/c++/llvm/test/TableGen/MultiClassDefName.td
+++ /dev/null
@@ -1,12 +0,0 @@
-// RUN: tblgen %s | grep WorldHelloCC | count 1
-
-class C<string n> {
- string name = n;
-}
-
-multiclass Names<string n, string m> {
- def CC : C<n>;
- def World#NAME#CC : C<m>;
-}
-
-defm Hello : Names<"hello", "world">;
diff --git a/libclamav/c++/llvm/test/TableGen/MultiClassInherit.td b/libclamav/c++/llvm/test/TableGen/MultiClassInherit.td
deleted file mode 100644
index d4c4ce5..0000000
--- a/libclamav/c++/llvm/test/TableGen/MultiClassInherit.td
+++ /dev/null
@@ -1,64 +0,0 @@
-// RUN: tblgen %s | grep {zing = 4} | count 28
-
-class C1<int A, string B> {
- int bar = A;
- string thestr = B;
- int zing;
-}
-
-def T : C1<4, "blah">;
-
-multiclass t1<int a1> {
- def S1 : C1<a1, "foo"> {
- int foo = 4;
- let bar = 1;
- }
- def S2 : C1<a1, "bar">;
-}
-
-multiclass t2<int a2> {
- def S3 : C1<a2, "foo"> {
- int foo = 4;
- let bar = 1;
- }
- def S4 : C1<a2, "bar">;
-}
-
-multiclass s1<int as1, int bs1> : t1<as1> {
- def S5 : C1<bs1, "moo"> {
- int moo = 3;
- let bar = 1;
- }
- def S6 : C1<bs1, "baz">;
-}
-
-multiclass s2<int as2> : t1<as2>, t2<as2>;
-
-multiclass s3<int as3, int bs3> : t1<as3>, t2<as3> {
- def S7 : C1<bs3, "moo"> {
- int moo = 3;
- let bar = 1;
- }
- def S8 : C1<bs3, "baz">;
-}
-
-let zing = 4 in
-defm FOO1 : s1<42, 24>;
-
-let zing = 4 in
-defm FOO2 : s2<99>;
-
-let zing = 4 in
-defm FOO3 : s3<84, 48>;
-
-def T4 : C1<6, "foo">;
-
-let zing = 4 in
- defm BAZ1 : s1<3, 4>;
-
-let zing = 4 in
- defm BAZ2 : s2<5>;
-
-let zing = 4 in
- defm BAZ3 : s3<6, 7>;
-
diff --git a/libclamav/c++/llvm/test/TableGen/Slice.td b/libclamav/c++/llvm/test/TableGen/Slice.td
deleted file mode 100644
index cd9c6da..0000000
--- a/libclamav/c++/llvm/test/TableGen/Slice.td
+++ /dev/null
@@ -1,87 +0,0 @@
-// RUN: tblgen %s | grep {\\\[(set} | count 2
-// RUN: tblgen %s | grep {\\\[\\\]} | count 2
-
-class ValueType<int size, int value> {
- int Size = size;
- int Value = value;
-}
-
-def f32 : ValueType<32, 1>; // 2 x i64 vector value
-
-class Intrinsic<string name> {
- string Name = name;
-}
-
-class Inst<bits<8> opcode, dag oopnds, dag iopnds, string asmstr,
- list<dag> pattern> {
- bits<8> Opcode = opcode;
- dag OutOperands = oopnds;
- dag InOperands = iopnds;
- string AssemblyString = asmstr;
- list<dag> Pattern = pattern;
-}
-
-def ops;
-def outs;
-def ins;
-
-def set;
-
-// Define registers
-class Register<string n> {
- string Name = n;
-}
-
-class RegisterClass<list<ValueType> regTypes, list<Register> regList> {
- list<ValueType> RegTypes = regTypes;
- list<Register> MemberList = regList;
-}
-
-def XMM0: Register<"xmm0">;
-def XMM1: Register<"xmm1">;
-def XMM2: Register<"xmm2">;
-def XMM3: Register<"xmm3">;
-def XMM4: Register<"xmm4">;
-def XMM5: Register<"xmm5">;
-def XMM6: Register<"xmm6">;
-def XMM7: Register<"xmm7">;
-def XMM8: Register<"xmm8">;
-def XMM9: Register<"xmm9">;
-def XMM10: Register<"xmm10">;
-def XMM11: Register<"xmm11">;
-def XMM12: Register<"xmm12">;
-def XMM13: Register<"xmm13">;
-def XMM14: Register<"xmm14">;
-def XMM15: Register<"xmm15">;
-
-def FR32 : RegisterClass<[f32],
- [XMM0, XMM1, XMM2, XMM3, XMM4, XMM5, XMM6, XMM7,
- XMM8, XMM9, XMM10, XMM11,
- XMM12, XMM13, XMM14, XMM15]>;
-
-class SDNode {}
-def not : SDNode;
-
-multiclass scalar<bits<8> opcode, string asmstr = "", list<list<dag>> patterns = []> {
- def SSrr : Inst<opcode, (outs FR32:$dst), (ins FR32:$src),
- !strconcat(asmstr, "\t$dst, $src"),
- !if(!null(patterns),[]<dag>,patterns[0])>;
- def SSrm : Inst<opcode, (outs FR32:$dst), (ins FR32:$src),
- !strconcat(asmstr, "\t$dst, $src"),
- !if(!null(patterns),[]<dag>,!if(!null(!cdr(patterns)),patterns[0],patterns[1]))>;
-}
-
-multiclass vscalar<bits<8> opcode, string asmstr = "", list<list<dag>> patterns = []> {
- def V#NAME#SSrr : Inst<opcode, (outs FR32:$dst), (ins FR32:$src),
- !strconcat(asmstr, "\t$dst, $src"),
- !if(!null(patterns),[]<dag>,patterns[0])>;
- def V#NAME#SSrm : Inst<opcode, (outs FR32:$dst), (ins FR32:$src),
- !strconcat(asmstr, "\t$dst, $src"),
- !if(!null(patterns),[]<dag>,!if(!null(!cdr(patterns)),patterns[0],patterns[1]))>;
-}
-
-multiclass myscalar<bits<8> opcode, string asmstr = "", list<list<dag>> patterns = []> :
- scalar<opcode, asmstr, patterns>,
- vscalar<opcode, asmstr, patterns>;
-
-defm NOT : myscalar<0x10, "not", [[], [(set FR32:$dst, (f32 (not FR32:$src)))]]>;
diff --git a/libclamav/c++/llvm/test/TableGen/String.td b/libclamav/c++/llvm/test/TableGen/String.td
deleted file mode 100644
index d2ae451..0000000
--- a/libclamav/c++/llvm/test/TableGen/String.td
+++ /dev/null
@@ -1,5 +0,0 @@
-// RUN: tblgen %s
-class x {
- string y = "missing terminating '\"' character";
-}
-
diff --git a/libclamav/c++/llvm/test/TableGen/SuperSubclassSameName.td b/libclamav/c++/llvm/test/TableGen/SuperSubclassSameName.td
deleted file mode 100644
index 087df87..0000000
--- a/libclamav/c++/llvm/test/TableGen/SuperSubclassSameName.td
+++ /dev/null
@@ -1,20 +0,0 @@
-// RUN: tblgen < %s
-// Test for template arguments that have the same name as superclass template
-// arguments.
-
-
-class Arg { int a; }
-def TheArg : Arg { let a = 1; }
-
-
-class Super<Arg F> {
- int X = F.a;
-}
-class Sub<Arg F> : Super<F>;
-def inst : Sub<TheArg>;
-
-
-class Super2<int F> {
- int X = F;
-}
-class Sub2<int F> : Super2<F>;
diff --git a/libclamav/c++/llvm/test/TableGen/TargetInstrInfo.td b/libclamav/c++/llvm/test/TableGen/TargetInstrInfo.td
deleted file mode 100644
index 8299541..0000000
--- a/libclamav/c++/llvm/test/TableGen/TargetInstrInfo.td
+++ /dev/null
@@ -1,148 +0,0 @@
-// This test describes how we eventually want to describe instructions in
-// the target independent code generators.
-// RUN: tblgen %s
-
-// Target indep stuff.
-class Instruction { // Would have other stuff eventually
- bit isTwoAddress = 0;
- string AssemblyString;
-}
-class RegisterClass;
-
-class RTLNode;
-
-def ops; // Marker for operand list.
-
-// Various expressions used in RTL descriptions.
-def imm8 : RTLNode;
-def imm32 : RTLNode;
-def addr : RTLNode;
-
-def set : RTLNode;
-def signext : RTLNode;
-def zeroext : RTLNode;
-def plus : RTLNode;
-def and : RTLNode;
-def xor : RTLNode;
-def shl : RTLNode;
-def load : RTLNode;
-def store : RTLNode;
-def unspec : RTLNode;
-
-// Start of X86 specific stuff.
-
-def R8 : RegisterClass;
-def R16 : RegisterClass;
-def R32 : RegisterClass;
-
-def CL; // As are currently defined
-def AL;
-def AX;
-def EDX;
-
-class Format<bits<5> val> {
- bits<5> Value = val;
-}
-
-def Pseudo : Format<0>; def RawFrm : Format<1>;
-def AddRegFrm : Format<2>; def MRMDestReg : Format<3>;
-def MRMDestMem : Format<4>; def MRMSrcReg : Format<5>;
-def MRMSrcMem : Format<6>;
-def MRM0r : Format<16>; def MRM1r : Format<17>; def MRM2r : Format<18>;
-def MRM3r : Format<19>; def MRM4r : Format<20>; def MRM5r : Format<21>;
-def MRM6r : Format<22>; def MRM7r : Format<23>;
-def MRM0m : Format<24>; def MRM1m : Format<25>; def MRM2m : Format<26>;
-def MRM3m : Format<27>; def MRM4m : Format<28>; def MRM5m : Format<29>;
-def MRM6m : Format<30>; def MRM7m : Format<31>;
-
-
-class Inst<dag opnds, string asmstr, bits<8> opcode,
- Format f, list<dag> rtl> : Instruction {
- dag Operands = opnds;
- string AssemblyString = asmstr;
- bits<8> Opcode = opcode;
- Format Format = f;
- list<dag> RTL = rtl;
-}
-
-
-// Start of instruction definitions, the real point of this file.
-//
-// Note that these patterns show a couple of important things:
-// 1. The order and contents of the operands of the MachineInstr are
-// described here. Eventually we can do away with this when everything
-// is generated from the description.
-// 2. The asm string is captured here, which makes it possible to get rid of
-// a ton of hacks in the various printers and a bunch of flags.
-// 3. Target specific properties (e.g. Format) can still be captured as
-// needed.
-// 4. We capture the behavior of the instruction with a simplified RTL-like
-// expression.
-// 5. The use/def properties for each operand are automatically inferred from
-// the pattern.
-// 6. Address expressions should become first-class entities.
-
-// Simple copy instruction. isMoveInstr could easily be inferred from this,
-// as could TargetRegisterInfo::copyRegToReg.
-def MOV8rr : Inst<(ops R8:$dst, R8:$src),
- "mov $dst, $src", 0x88, MRMDestReg,
- [(set R8:$dst, R8:$src)]>;
-
-// Simple immediate initialization.
-def MOV8ri : Inst<(ops R8:$dst, imm8:$src),
- "mov $dst, $src", 0xB0, AddRegFrm,
- [(set R8:$dst, imm8:$src)]>;
-
-// Two address instructions are described as three-addr instructions, with
-// the special target-independent isTwoAddress flag set. The asm pattern
-// should not refer to the $src1, this would be enforced by the
-// TargetInstrInfo tablegen backend.
-let isTwoAddress = 1 in
-def AND8rr : Inst<(ops R8:$dst, R8:$src1, R8:$src2),
- "and $dst, $src2", 0x20, MRMDestReg,
- [(set R8:$dst, (and R8:$src1, R8:$src2))]>;
-
-// Instructions that have explicit uses/defs make them explicit in the RTL.
-// Instructions that need extra stuff emitted in the assembly can, trivially.
-let isTwoAddress = 1 in
-def SHL32rCL : Inst<(ops R32:$dst, R32:$src),
- "shl $dst, CL", 0xD2, MRM4r,
- [(set R32:$dst, (shl R32:$src, CL))]>;
-
-// The RTL list is a list, allowing complex instructions to be defined easily.
-// Temporary 'internal' registers can be used to break instructions appart.
-let isTwoAddress = 1 in
-def XOR32mi : Inst<(ops addr:$addr, imm32:$imm),
- "xor $dst, $src2", 0x81, MRM6m,
- [(set R32:$tmp1, (load addr:$addr)),
- (set R32:$tmp2, (xor R32:$tmp1, imm32:$imm)),
- (store addr:$addr, R32:$tmp2)]>;
-
-// Alternatively, if each tmporary register is only used once, the instruction
-// can just be described in nested form. This would be the canonical
-// representation the target generator would convert the above into. Pick your
-// favorite indentation scheme.
-let isTwoAddress = 1 in
-def AND32mr : Inst<(ops addr:$addr, R32:$src),
- "xor $dst, $src2", 0x81, MRM6m,
- [(store addr:$addr,
- (and
- (load addr:$addr),
- R32:$src)
- )
- ]>;
-
-// Describing complex instructions is not too hard! Note how implicit uses/defs
-// become explicit here.
-def CBW : Inst<(ops),
- "cbw", 0x98, RawFrm,
- [(set AX, (signext AL))]>;
-
-// Noop, does nothing.
-def NOOP : Inst<(ops), "nop", 0x90, RawFrm, []>;
-
-
-// Instructions that don't expect optimization can use unspec.
-def IN8rr : Inst<(ops), "in AL, EDX", 0xEC, RawFrm,
- [(set AL, (unspec EDX))]>;
-
diff --git a/libclamav/c++/llvm/test/TableGen/TargetInstrSpec.td b/libclamav/c++/llvm/test/TableGen/TargetInstrSpec.td
deleted file mode 100644
index 7c3dd57..0000000
--- a/libclamav/c++/llvm/test/TableGen/TargetInstrSpec.td
+++ /dev/null
@@ -1,97 +0,0 @@
-// RUN: tblgen %s | grep {\\\[(set VR128:\$dst, (int_x86_sse2_add_pd VR128:\$src1, VR128:\$src2))\\\]} | count 1
-// RUN: tblgen %s | grep {\\\[(set VR128:\$dst, (int_x86_sse2_add_ps VR128:\$src1, VR128:\$src2))\\\]} | count 1
-
-class ValueType<int size, int value> {
- int Size = size;
- int Value = value;
-}
-
-def v2i64 : ValueType<128, 22>; // 2 x i64 vector value
-def v2f64 : ValueType<128, 28>; // 2 x f64 vector value
-
-class Intrinsic<string name> {
- string Name = name;
-}
-
-class Inst<bits<8> opcode, dag oopnds, dag iopnds, string asmstr,
- list<dag> pattern> {
- bits<8> Opcode = opcode;
- dag OutOperands = oopnds;
- dag InOperands = iopnds;
- string AssemblyString = asmstr;
- list<dag> Pattern = pattern;
-}
-
-def ops;
-def outs;
-def ins;
-
-def set;
-
-// Define registers
-class Register<string n> {
- string Name = n;
-}
-
-class RegisterClass<list<ValueType> regTypes, list<Register> regList> {
- list<ValueType> RegTypes = regTypes;
- list<Register> MemberList = regList;
-}
-
-def XMM0: Register<"xmm0">;
-def XMM1: Register<"xmm1">;
-def XMM2: Register<"xmm2">;
-def XMM3: Register<"xmm3">;
-def XMM4: Register<"xmm4">;
-def XMM5: Register<"xmm5">;
-def XMM6: Register<"xmm6">;
-def XMM7: Register<"xmm7">;
-def XMM8: Register<"xmm8">;
-def XMM9: Register<"xmm9">;
-def XMM10: Register<"xmm10">;
-def XMM11: Register<"xmm11">;
-def XMM12: Register<"xmm12">;
-def XMM13: Register<"xmm13">;
-def XMM14: Register<"xmm14">;
-def XMM15: Register<"xmm15">;
-
-def VR128 : RegisterClass<[v2i64, v2f64],
- [XMM0, XMM1, XMM2, XMM3, XMM4, XMM5, XMM6, XMM7,
- XMM8, XMM9, XMM10, XMM11,
- XMM12, XMM13, XMM14, XMM15]>;
-
-// Dummy for subst
-def REGCLASS : RegisterClass<[], []>;
-
-class decls {
- // Dummy for foreach
- dag pattern;
- int operand;
-}
-
-def Decls : decls;
-
-// Define intrinsics
-def int_x86_sse2_add_ps : Intrinsic<"addps">;
-def int_x86_sse2_add_pd : Intrinsic<"addpd">;
-def INTRINSIC : Intrinsic<"Dummy">;
-
-multiclass arith<bits<8> opcode, string asmstr, string intr, list<dag> patterns> {
- def PS : Inst<opcode, (outs VR128:$dst), (ins VR128:$src1, VR128:$src2),
- !strconcat(asmstr, "\t$dst, $src1, $src2"),
- !foreach(Decls.pattern, patterns,
- !foreach(Decls.operand, Decls.pattern,
- !subst(INTRINSIC, !cast<Intrinsic>(!subst("SUFFIX", "_ps", intr)),
- !subst(REGCLASS, VR128, Decls.operand))))>;
-
- def PD : Inst<opcode, (outs VR128:$dst), (ins VR128:$src1, VR128:$src2),
- !strconcat(asmstr, "\t$dst, $src1, $src2"),
- !foreach(Decls.pattern, patterns,
- !foreach(Decls.operand, Decls.pattern,
- !subst(INTRINSIC, !cast<Intrinsic>(!subst("SUFFIX", "_pd", intr)),
- !subst(REGCLASS, VR128, Decls.operand))))>;
-}
-
-defm ADD : arith<0x58, "add", "int_x86_sse2_addSUFFIX",
- [(set REGCLASS:$dst, (INTRINSIC REGCLASS:$src1, REGCLASS:$src2))]>;
-
diff --git a/libclamav/c++/llvm/test/TableGen/TemplateArgRename.td b/libclamav/c++/llvm/test/TableGen/TemplateArgRename.td
deleted file mode 100644
index 535c2e4..0000000
--- a/libclamav/c++/llvm/test/TableGen/TemplateArgRename.td
+++ /dev/null
@@ -1,17 +0,0 @@
-// RUN: tblgen %s
-
-// Make sure there is no collision between XX and XX.
-def S;
-
-class Before<int XX>;
-class After : Before<4> {
- dag XX = (S);
-}
-
-
-
-class C1<int X> {
- int Y = X;
-}
-class C2<int Y, dag X> : C1<Y>;
-
diff --git a/libclamav/c++/llvm/test/TableGen/Tree.td b/libclamav/c++/llvm/test/TableGen/Tree.td
deleted file mode 100644
index f9f1f15..0000000
--- a/libclamav/c++/llvm/test/TableGen/Tree.td
+++ /dev/null
@@ -1,18 +0,0 @@
-// This tests to make sure we can parse tree patterns.
-// RUN: tblgen %s
-
-class TreeNode;
-class RegisterClass;
-
-def set : TreeNode;
-def plus : TreeNode;
-def imm : TreeNode;
-def R32 : RegisterClass;
-
-class Inst<dag T> {
- dag Pattern = T;
-}
-
-def ADDrr32 : Inst<(set R32, (plus R32, R32))>; // a = b + c
-def ADDri32 : Inst<(set R32, (plus R32, imm))>; // a = b + imm
-
diff --git a/libclamav/c++/llvm/test/TableGen/TreeNames.td b/libclamav/c++/llvm/test/TableGen/TreeNames.td
deleted file mode 100644
index 05a3298..0000000
--- a/libclamav/c++/llvm/test/TableGen/TreeNames.td
+++ /dev/null
@@ -1,17 +0,0 @@
-// This tests to make sure we can parse tree patterns with names.
-// RUN: tblgen %s
-
-class TreeNode;
-class RegisterClass;
-
-def set : TreeNode;
-def plus : TreeNode;
-def imm : TreeNode;
-def R32 : RegisterClass;
-
-class Inst<dag T> {
- dag Pattern = T;
-}
-
-def ADDrr32 : Inst<(set R32, (plus R32:$A, R32:$def))>;
-
diff --git a/libclamav/c++/llvm/test/TableGen/UnsetBitInit.td b/libclamav/c++/llvm/test/TableGen/UnsetBitInit.td
deleted file mode 100644
index 91342ec..0000000
--- a/libclamav/c++/llvm/test/TableGen/UnsetBitInit.td
+++ /dev/null
@@ -1,10 +0,0 @@
-// RUN: tblgen %s
-class x {
- field bits<32> A;
-}
-
-class y<bits<2> B> : x {
- let A{21-20} = B;
-}
-
-def z : y<{0,?}>;
diff --git a/libclamav/c++/llvm/test/TableGen/UnterminatedComment.td b/libclamav/c++/llvm/test/TableGen/UnterminatedComment.td
deleted file mode 100644
index 158cede..0000000
--- a/libclamav/c++/llvm/test/TableGen/UnterminatedComment.td
+++ /dev/null
@@ -1,6 +0,0 @@
-// RUN: not tblgen < %s >& /dev/null
-
-def x;
-
-/* /* /* */
-
diff --git a/libclamav/c++/llvm/test/TableGen/cast.td b/libclamav/c++/llvm/test/TableGen/cast.td
deleted file mode 100644
index 4a771ae..0000000
--- a/libclamav/c++/llvm/test/TableGen/cast.td
+++ /dev/null
@@ -1,90 +0,0 @@
-// RUN: tblgen %s | grep {add_ps} | count 3
-
-class ValueType<int size, int value> {
- int Size = size;
- int Value = value;
-}
-
-def v2i64 : ValueType<128, 22>; // 2 x i64 vector value
-def v2f64 : ValueType<128, 28>; // 2 x f64 vector value
-
-class Intrinsic<string name> {
- string Name = name;
-}
-
-class Inst<bits<8> opcode, dag oopnds, dag iopnds, string asmstr,
- list<dag> pattern> {
- bits<8> Opcode = opcode;
- dag OutOperands = oopnds;
- dag InOperands = iopnds;
- string AssemblyString = asmstr;
- list<dag> Pattern = pattern;
-}
-
-def ops;
-def outs;
-def ins;
-
-def set;
-
-// Define registers
-class Register<string n> {
- string Name = n;
-}
-
-class RegisterClass<list<ValueType> regTypes, list<Register> regList> {
- list<ValueType> RegTypes = regTypes;
- list<Register> MemberList = regList;
-}
-
-def XMM0: Register<"xmm0">;
-def XMM1: Register<"xmm1">;
-def XMM2: Register<"xmm2">;
-def XMM3: Register<"xmm3">;
-def XMM4: Register<"xmm4">;
-def XMM5: Register<"xmm5">;
-def XMM6: Register<"xmm6">;
-def XMM7: Register<"xmm7">;
-def XMM8: Register<"xmm8">;
-def XMM9: Register<"xmm9">;
-def XMM10: Register<"xmm10">;
-def XMM11: Register<"xmm11">;
-def XMM12: Register<"xmm12">;
-def XMM13: Register<"xmm13">;
-def XMM14: Register<"xmm14">;
-def XMM15: Register<"xmm15">;
-
-def VR128 : RegisterClass<[v2i64, v2f64],
- [XMM0, XMM1, XMM2, XMM3, XMM4, XMM5, XMM6, XMM7,
- XMM8, XMM9, XMM10, XMM11,
- XMM12, XMM13, XMM14, XMM15]>;
-
-// Define intrinsics
-def int_x86_sse2_add_ps : Intrinsic<"addps">;
-def int_x86_sse2_add_pd : Intrinsic<"addpd">;
-
-multiclass arith<bits<8> opcode, string asmstr, string Intr> {
- def PS : Inst<opcode, (outs VR128:$dst), (ins VR128:$src1, VR128:$src2),
- !strconcat(asmstr, "\t$dst, $src1, $src2"),
- [(set VR128:$dst, (!cast<Intrinsic>(!strconcat(Intr, "_ps")) VR128:$src1, VR128:$src2))]>;
-
- def PD : Inst<opcode, (outs VR128:$dst), (ins VR128:$src1, VR128:$src2),
- !strconcat(asmstr, "\t$dst, $src1, $src2"),
- [(set VR128:$dst, (!cast<Intrinsic>(!strconcat(Intr, "_pd")) VR128:$src1, VR128:$src2))]>;
-}
-
-defm ADD : arith<0x58, "add", "int_x86_sse2_add">;
-
-class IntInst<bits<8> opcode, string asmstr, Intrinsic Intr> :
- Inst<opcode,(outs VR128:$dst), (ins VR128:$src1, VR128:$src2),
- !strconcat(asmstr, "\t$dst, $src1, $src2"),
- [(set VR128:$dst, (Intr VR128:$src1, VR128:$src2))]>;
-
-
-multiclass arith_int<bits<8> opcode, string asmstr, string Intr> {
- def PS_Int : IntInst<opcode, asmstr, !cast<Intrinsic>(!strconcat(Intr, "_ps"))>;
-
- def PD_Int : IntInst<opcode, asmstr, !cast<Intrinsic>(!strconcat(Intr, "_pd"))>;
-}
-
-defm ADD : arith_int<0x58, "add", "int_x86_sse2_add">;
diff --git a/libclamav/c++/llvm/test/TableGen/dg.exp b/libclamav/c++/llvm/test/TableGen/dg.exp
deleted file mode 100644
index f7d275a..0000000
--- a/libclamav/c++/llvm/test/TableGen/dg.exp
+++ /dev/null
@@ -1,3 +0,0 @@
-load_lib llvm.exp
-
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{td}]]
diff --git a/libclamav/c++/llvm/test/TableGen/eq.td b/libclamav/c++/llvm/test/TableGen/eq.td
deleted file mode 100644
index 8ba6d7e..0000000
--- a/libclamav/c++/llvm/test/TableGen/eq.td
+++ /dev/null
@@ -1,13 +0,0 @@
-// RUN: tblgen %s | FileCheck %s
-// CHECK: Value = 0
-// CHECK: Value = 1
-
-class Base<int V> {
- int Value = V;
-}
-
-class Derived<string Truth> :
- Base<!if(!eq(Truth, "true"), 1, 0)>;
-
-def TRUE : Derived<"true">;
-def FALSE : Derived<"false">;
diff --git a/libclamav/c++/llvm/test/TableGen/foreach.td b/libclamav/c++/llvm/test/TableGen/foreach.td
deleted file mode 100644
index acce449..0000000
--- a/libclamav/c++/llvm/test/TableGen/foreach.td
+++ /dev/null
@@ -1,31 +0,0 @@
-// RUN: tblgen %s | grep {Jr} | count 2
-// RUN: tblgen %s | grep {Sr} | count 2
-// RUN: tblgen %s | grep {NAME} | count 1
-
-// Variables for foreach
-class decls {
- string name;
-}
-
-def Decls : decls;
-
-class A<list<string> names> {
- list<string> Names = names;
-}
-
-class B<list<string> names> : A<!foreach(Decls.name, names, !strconcat(Decls.name, ", Sr."))>;
-
-class C<list<string> names> : A<!foreach(Decls.name, names, !strconcat(Decls.name, ", Jr."))>;
-
-class D<list<string> names> : A<!foreach(Decls.name, names, !subst("NAME", "John Smith", Decls.name))>;
-
-class Names {
- list<string> values = ["Ken Griffey", "Seymour Cray"];
-}
-
-def People : Names;
-
-def Seniors : B<People.values>;
-def Juniors : C<People.values>;
-def Smiths : D<["NAME", "Jane Smith"]>;
-def Unprocessed : D<People.values>;
diff --git a/libclamav/c++/llvm/test/TableGen/if.td b/libclamav/c++/llvm/test/TableGen/if.td
deleted file mode 100644
index 9b24382..0000000
--- a/libclamav/c++/llvm/test/TableGen/if.td
+++ /dev/null
@@ -1,20 +0,0 @@
-// RUN: tblgen %s | grep {\\\[1, 2, 3\\\]} | count 4
-// RUN: tblgen %s | grep {\\\[4, 5, 6\\\]} | count 2
-
-class A<list<list<int>> vals> {
- list<int> first = vals[0];
- list<int> rest = !if(!null(!cdr(vals)), vals[0], vals[1]);
-}
-
-def One : A<[[1,2,3]]>;
-def Two : A<[[1,2,3],[4,5,6]]>;
-
-class B<list<int> v> {
- list<int> vals = v;
-}
-
-class BB<list<list<int>> vals> : B<!if(!null(!cdr(vals)), vals[0], vals[1])>;
-class BBB<list<list<int>> vals> : BB<vals>;
-
-def OneB : BBB<[[1,2,3]]>;
-def TwoB : BBB<[[1,2,3],[4,5,6]]>;
diff --git a/libclamav/c++/llvm/test/TableGen/lisp.td b/libclamav/c++/llvm/test/TableGen/lisp.td
deleted file mode 100644
index 3e392fd..0000000
--- a/libclamav/c++/llvm/test/TableGen/lisp.td
+++ /dev/null
@@ -1,21 +0,0 @@
-// RUN: tblgen %s | grep {}
-
-class List<list<string> n> {
- list<string> names = n;
-}
-
-class CAR<string e> {
- string element = e;
-}
-
-class CDR<list<string> r, int n> {
- list<string> rest = r;
- int null = n;
-}
-
-class NameList<list<string> Names> :
- List<Names>, CAR<!car(Names)>, CDR<!cdr(Names), !null(!cdr(Names))>;
-
-def Three : NameList<["Tom", "Dick", "Harry"]>;
-
-def One : NameList<["Jeffrey Sinclair"]>;
diff --git a/libclamav/c++/llvm/test/TableGen/nameconcat.td b/libclamav/c++/llvm/test/TableGen/nameconcat.td
deleted file mode 100644
index fc865f9..0000000
--- a/libclamav/c++/llvm/test/TableGen/nameconcat.td
+++ /dev/null
@@ -1,90 +0,0 @@
-// RUN: tblgen %s | grep {add_ps} | count 3
-
-class ValueType<int size, int value> {
- int Size = size;
- int Value = value;
-}
-
-def v2i64 : ValueType<128, 22>; // 2 x i64 vector value
-def v2f64 : ValueType<128, 28>; // 2 x f64 vector value
-
-class Intrinsic<string name> {
- string Name = name;
-}
-
-class Inst<bits<8> opcode, dag oopnds, dag iopnds, string asmstr,
- list<dag> pattern> {
- bits<8> Opcode = opcode;
- dag OutOperands = oopnds;
- dag InOperands = iopnds;
- string AssemblyString = asmstr;
- list<dag> Pattern = pattern;
-}
-
-def ops;
-def outs;
-def ins;
-
-def set;
-
-// Define registers
-class Register<string n> {
- string Name = n;
-}
-
-class RegisterClass<list<ValueType> regTypes, list<Register> regList> {
- list<ValueType> RegTypes = regTypes;
- list<Register> MemberList = regList;
-}
-
-def XMM0: Register<"xmm0">;
-def XMM1: Register<"xmm1">;
-def XMM2: Register<"xmm2">;
-def XMM3: Register<"xmm3">;
-def XMM4: Register<"xmm4">;
-def XMM5: Register<"xmm5">;
-def XMM6: Register<"xmm6">;
-def XMM7: Register<"xmm7">;
-def XMM8: Register<"xmm8">;
-def XMM9: Register<"xmm9">;
-def XMM10: Register<"xmm10">;
-def XMM11: Register<"xmm11">;
-def XMM12: Register<"xmm12">;
-def XMM13: Register<"xmm13">;
-def XMM14: Register<"xmm14">;
-def XMM15: Register<"xmm15">;
-
-def VR128 : RegisterClass<[v2i64, v2f64],
- [XMM0, XMM1, XMM2, XMM3, XMM4, XMM5, XMM6, XMM7,
- XMM8, XMM9, XMM10, XMM11,
- XMM12, XMM13, XMM14, XMM15]>;
-
-// Define intrinsics
-def int_x86_sse2_add_ps : Intrinsic<"addps">;
-def int_x86_sse2_add_pd : Intrinsic<"addpd">;
-
-multiclass arith<bits<8> opcode, string asmstr, string Intr> {
- def PS : Inst<opcode, (outs VR128:$dst), (ins VR128:$src1, VR128:$src2),
- !strconcat(asmstr, "\t$dst, $src1, $src2"),
- [(set VR128:$dst, (!nameconcat<Intrinsic>(Intr, "_ps") VR128:$src1, VR128:$src2))]>;
-
- def PD : Inst<opcode, (outs VR128:$dst), (ins VR128:$src1, VR128:$src2),
- !strconcat(asmstr, "\t$dst, $src1, $src2"),
- [(set VR128:$dst, (!nameconcat<Intrinsic>(Intr, "_pd") VR128:$src1, VR128:$src2))]>;
-}
-
-defm ADD : arith<0x58, "add", "int_x86_sse2_add">;
-
-class IntInst<bits<8> opcode, string asmstr, Intrinsic Intr> :
- Inst<opcode,(outs VR128:$dst), (ins VR128:$src1, VR128:$src2),
- !strconcat(asmstr, "\t$dst, $src1, $src2"),
- [(set VR128:$dst, (Intr VR128:$src1, VR128:$src2))]>;
-
-
-multiclass arith_int<bits<8> opcode, string asmstr, string Intr> {
- def PS_Int : IntInst<opcode, asmstr, !nameconcat<Intrinsic>(Intr, "_ps")>;
-
- def PD_Int : IntInst<opcode, asmstr, !nameconcat<Intrinsic>(Intr, "_pd")>;
-}
-
-defm ADD : arith_int<0x58, "add", "int_x86_sse2_add">;
diff --git a/libclamav/c++/llvm/test/TableGen/nested-comment.td b/libclamav/c++/llvm/test/TableGen/nested-comment.td
deleted file mode 100644
index 68e2958..0000000
--- a/libclamav/c++/llvm/test/TableGen/nested-comment.td
+++ /dev/null
@@ -1,12 +0,0 @@
-// RUN: tblgen < %s
-
-/* foo
-
-/ foo
-
- /*NoReg*/, baz
-
-
- */
-
-def X;
diff --git a/libclamav/c++/llvm/test/TableGen/strconcat.td b/libclamav/c++/llvm/test/TableGen/strconcat.td
deleted file mode 100644
index fc0d805..0000000
--- a/libclamav/c++/llvm/test/TableGen/strconcat.td
+++ /dev/null
@@ -1,10 +0,0 @@
-// RUN: tblgen %s | grep fufoo
-
-class Y<string S> {
- string T = !strconcat(S, "foo");
-
- // String values concatenate lexically, as in C.
- string S = "foo" "bar";
-}
-
-def Z : Y<"fu">;
diff --git a/libclamav/c++/llvm/test/TableGen/subst.td b/libclamav/c++/llvm/test/TableGen/subst.td
deleted file mode 100644
index ce9f45d..0000000
--- a/libclamav/c++/llvm/test/TableGen/subst.td
+++ /dev/null
@@ -1,29 +0,0 @@
-// RUN: tblgen %s | grep {Smith} | count 7
-// RUN: tblgen %s | grep {Johnson} | count 2
-// RUN: tblgen %s | grep {FIRST} | count 1
-// RUN: tblgen %s | grep {LAST} | count 1
-// RUN: tblgen %s | grep {TVAR} | count 2
-// RUN: tblgen %s | grep {Bogus} | count 1
-
-class Honorific<string t> {
- string honorific = t;
-}
-
-def Mr : Honorific<"Mr.">;
-def Ms : Honorific<"Ms.">;
-def Mrs : Honorific<"Mrs.">;
-def TVAR : Honorific<"Bogus">;
-
-class Name<string n, Honorific t> {
- string name = n;
- Honorific honorific = t;
-}
-
-class AName<string name, Honorific honorific> :
- Name<!subst("FIRST", "John", !subst("LAST", "Smith", name)),
- !subst(TVAR, Mr, honorific)>;
-
-def JohnSmith : AName<"FIRST LAST", TVAR>;
-def JaneSmith : AName<"Jane LAST", Ms>;
-def JohnSmithJones : AName<"FIRST LAST-Jones", Mr>;
-def JimmyJohnson : AName<"Jimmy Johnson", Mr>;
diff --git a/libclamav/c++/llvm/test/TableGen/subst2.td b/libclamav/c++/llvm/test/TableGen/subst2.td
deleted file mode 100644
index 3366c9d..0000000
--- a/libclamav/c++/llvm/test/TableGen/subst2.td
+++ /dev/null
@@ -1,15 +0,0 @@
-// RUN: tblgen %s | FileCheck %s
-// CHECK: No subst
-// CHECK: No foo
-// CHECK: RECURSE foo
-
-class Recurse<string t> {
- string Text = t;
-}
-
-class Text<string text> :
- Recurse<!subst("RECURSE", "RECURSE", !subst("NORECURSE", "foo", text))>;
-
-def Ok1 : Text<"No subst">;
-def Ok2 : Text<"No NORECURSE">;
-def Trouble : Text<"RECURSE NORECURSE">;
diff --git a/libclamav/c++/llvmcheck.sh b/libclamav/c++/llvmcheck.sh
index 286c2a2..f1d01c9 100755
--- a/libclamav/c++/llvmcheck.sh
+++ b/libclamav/c++/llvmcheck.sh
@@ -1,8 +1,8 @@
#!/bin/sh
mkdir -p llvm/Release/bin
mkdir -p llvm/Debug/bin
-cp lli llc llvm-as not count FileCheck tblgen llvm-dis llvm/Release/bin/
-cp lli llc llvm-as not count FileCheck tblgen llvm-dis llvm/Debug/bin/
+cp lli llc llvm-as not count FileCheck llvm-dis llvm/Release/bin/
+cp lli llc llvm-as not count FileCheck llvm-dis llvm/Debug/bin/
$GMAKE -v || { echo "GNU make not found, skipping LLVM tests"; exit 77; }
python -V || { echo "Python not found, skipping LLVM tests"; exit 77; }
python <<EOF
diff --git a/libclamav/c++/strip-llvm.sh b/libclamav/c++/strip-llvm.sh
index 663a3bb..44bb1fe 100755
--- a/libclamav/c++/strip-llvm.sh
+++ b/libclamav/c++/strip-llvm.sh
@@ -13,12 +13,13 @@ for i in llvm/bindings/ llvm/examples/ llvm/projects/ llvm/runtime/\
llvm/test/FrontendAda/ llvm/test/FrontendC llvm/test/FrontendC++/\
llvm/test/FrontendFortran/ llvm/test/FrontendObjC\
llvm/test/FrontendObjC++ llvm/test/Linker/ llvm/test/LLVMC\
- llvm/test/MC llvm/test/Transforms\
+ llvm/test/MC llvm/test/Transforms llvm/test/Transforms/InstCombine\
llvm/test/BugPoint llvm/test/CodeGen/CPP llvm/test/CodeGen/Mips\
llvm/test/CodeGen/Alpha llvm/test/CodeGen/PIC16 llvm/test/CodeGen/SPARC\
- llvm/test/CodeGen/XCore llvm/test/CodeGen/MSP430\
+ llvm/test/CodeGen/XCore llvm/test/CodeGen/MSP430 llvm/test/CodeGen/MBlaze\
llvm/test/CodeGen/CellSPU llvm/test/CodeGen/CBackend\
- llvm/test/CodeGen/SystemZ llvm/test/CodeGen/Blackfin\
+ llvm/test/CodeGen/SystemZ llvm/test/CodeGen/Blackfin llvm/test/TableGen\
+ llvm/test/Analysis llvm/test/Assembler llvm/test/Other\
llvm/tools/bugpoint llvm/tools/gold llvm/tools/llvm-ar\
llvm/tools/llvm-bcanalyzer llvm/tools/llvm-db\
llvm/tools/llvm-extract llvm/tools/llvm-ld llvm/tools/llvm-link llvm/tools/llvm-mc\
@@ -27,10 +28,9 @@ for i in llvm/bindings/ llvm/examples/ llvm/projects/ llvm/runtime/\
llvm/tools/llvm-dis/Makefile llvm/tools/edis/ llvm/tools/llvm-shlib\
llvm/docs
do
- git rm -rf $i;
+ git rm -rf $i; git rm -f $i;
done
# config.status needs these
mkdir -p llvm/docs/doxygen
touch llvm/docs/doxygen.cfg.in
git add llvm/docs/doxygen.cfg.in
-mv ../../.git/SQUASH_MSG ../../.git/MERGE_MSG
--
Debian repository for ClamAV
More information about the Pkg-clamav-commits
mailing list