summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-09 17:17:26 +0000
committerChris Lattner <sabre@nondot.org>2009-12-09 17:17:26 +0000
commit8f77035568118aec2d4d57d498d1fbb4c314690c (patch)
treebd285f641c0167b510601faae58658b9ac1f57b1 /llvm/test
parent1042bf4ae2c9d64d3c859bf003b8d5f679874324 (diff)
downloadbcm5719-llvm-8f77035568118aec2d4d57d498d1fbb4c314690c.tar.gz
bcm5719-llvm-8f77035568118aec2d4d57d498d1fbb4c314690c.zip
merge crash-2.ll into crash.ll
llvm-svn: 90969
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Transforms/GVN/crash-2.ll43
-rw-r--r--llvm/test/Transforms/GVN/crash.ll43
2 files changed, 43 insertions, 43 deletions
diff --git a/llvm/test/Transforms/GVN/crash-2.ll b/llvm/test/Transforms/GVN/crash-2.ll
deleted file mode 100644
index 2bb5fb02168..00000000000
--- a/llvm/test/Transforms/GVN/crash-2.ll
+++ /dev/null
@@ -1,43 +0,0 @@
-; RUN: opt -gvn -S %s
-; rdar://7438974
-
-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-darwin9.0"
-
-@g = external global i64, align 8
-
-define i32* @foo() {
-do.end17.i:
- %tmp18.i = load i7** undef
- %tmp1 = bitcast i7* %tmp18.i to i8*
- br i1 undef, label %do.body36.i, label %if.then21.i
-
-if.then21.i:
- %tmp2 = bitcast i7* %tmp18.i to i8*
- ret i32* undef
-
-do.body36.i:
- %ivar38.i = load i64* @g
- %tmp3 = bitcast i7* %tmp18.i to i8*
- %add.ptr39.sum.i = add i64 %ivar38.i, 8
- %tmp40.i = getelementptr inbounds i8* %tmp3, i64 %add.ptr39.sum.i
- %tmp4 = bitcast i8* %tmp40.i to i64*
- %tmp41.i = load i64* %tmp4
- br i1 undef, label %if.then48.i, label %do.body57.i
-
-if.then48.i:
- %call54.i = call i32 @foo2()
- br label %do.body57.i
-
-do.body57.i:
- %tmp58.i = load i7** undef
- %ivar59.i = load i64* @g
- %tmp5 = bitcast i7* %tmp58.i to i8*
- %add.ptr65.sum.i = add i64 %ivar59.i, 8
- %tmp66.i = getelementptr inbounds i8* %tmp5, i64 %add.ptr65.sum.i
- %tmp6 = bitcast i8* %tmp66.i to i64*
- %tmp67.i = load i64* %tmp6
- ret i32* undef
-}
-
-declare i32 @foo2()
diff --git a/llvm/test/Transforms/GVN/crash.ll b/llvm/test/Transforms/GVN/crash.ll
index 30563cd5848..9167b6ec684 100644
--- a/llvm/test/Transforms/GVN/crash.ll
+++ b/llvm/test/Transforms/GVN/crash.ll
@@ -92,3 +92,46 @@ bb64.i: ; Unreachable
bb66.i: ; Unreachable
br label %bb69.i
}
+
+
+
+; rdar://7438974
+
+@g = external global i64, align 8
+
+define i32* @foo() {
+do.end17.i:
+ %tmp18.i = load i7** undef
+ %tmp1 = bitcast i7* %tmp18.i to i8*
+ br i1 undef, label %do.body36.i, label %if.then21.i
+
+if.then21.i:
+ %tmp2 = bitcast i7* %tmp18.i to i8*
+ ret i32* undef
+
+do.body36.i:
+ %ivar38.i = load i64* @g
+ %tmp3 = bitcast i7* %tmp18.i to i8*
+ %add.ptr39.sum.i = add i64 %ivar38.i, 8
+ %tmp40.i = getelementptr inbounds i8* %tmp3, i64 %add.ptr39.sum.i
+ %tmp4 = bitcast i8* %tmp40.i to i64*
+ %tmp41.i = load i64* %tmp4
+ br i1 undef, label %if.then48.i, label %do.body57.i
+
+if.then48.i:
+ %call54.i = call i32 @foo2()
+ br label %do.body57.i
+
+do.body57.i:
+ %tmp58.i = load i7** undef
+ %ivar59.i = load i64* @g
+ %tmp5 = bitcast i7* %tmp58.i to i8*
+ %add.ptr65.sum.i = add i64 %ivar59.i, 8
+ %tmp66.i = getelementptr inbounds i8* %tmp5, i64 %add.ptr65.sum.i
+ %tmp6 = bitcast i8* %tmp66.i to i64*
+ %tmp67.i = load i64* %tmp6
+ ret i32* undef
+}
+
+declare i32 @foo2()
+
OpenPOWER on IntegriCloud