summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2008-01-08-SchedulerCrash.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-01-09 23:01:55 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-01-09 23:01:55 +0000
commit19107563af7568713193c60be24503446556bff2 (patch)
tree64bab13a16c649421a1dbc05e312126af8a9c4fd /test/CodeGen/X86/2008-01-08-SchedulerCrash.ll
parentec1213fbbba161401e22bd41005a3b1a39008807 (diff)
downloadllvm-19107563af7568713193c60be24503446556bff2.tar.gz
llvm-19107563af7568713193c60be24503446556bff2.tar.bz2
llvm-19107563af7568713193c60be24503446556bff2.tar.xz
Special copy SUnit's do not have SDNode's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2008-01-08-SchedulerCrash.ll')
-rw-r--r--test/CodeGen/X86/2008-01-08-SchedulerCrash.ll32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2008-01-08-SchedulerCrash.ll b/test/CodeGen/X86/2008-01-08-SchedulerCrash.ll
new file mode 100644
index 0000000000..f31a38e28b
--- /dev/null
+++ b/test/CodeGen/X86/2008-01-08-SchedulerCrash.ll
@@ -0,0 +1,32 @@
+; RUN: llvm-as < %s | llc -march=x86
+
+ %struct.indexentry = type { i32, i8*, i8*, i8*, i8*, i8* }
+
+define i32 @_bfd_stab_section_find_nearest_line(i32 %offset) nounwind {
+entry:
+ %tmp910 = add i32 0, %offset ; <i32> [#uses=1]
+ br i1 true, label %bb951, label %bb917
+
+bb917: ; preds = %entry
+ ret i32 0
+
+bb951: ; preds = %bb986, %entry
+ %tmp955 = sdiv i32 0, 2 ; <i32> [#uses=3]
+ %tmp961 = getelementptr %struct.indexentry* null, i32 %tmp955, i32 0 ; <i32*> [#uses=1]
+ br i1 true, label %bb986, label %bb967
+
+bb967: ; preds = %bb951
+ ret i32 0
+
+bb986: ; preds = %bb951
+ %tmp993 = load i32* %tmp961, align 4 ; <i32> [#uses=1]
+ %tmp995 = icmp ugt i32 %tmp993, %tmp910 ; <i1> [#uses=2]
+ %tmp1002 = add i32 %tmp955, 1 ; <i32> [#uses=1]
+ %low.0 = select i1 %tmp995, i32 0, i32 %tmp1002 ; <i32> [#uses=1]
+ %high.0 = select i1 %tmp995, i32 %tmp955, i32 0 ; <i32> [#uses=1]
+ %tmp1006 = icmp eq i32 %low.0, %high.0 ; <i1> [#uses=1]
+ br i1 %tmp1006, label %UnifiedReturnBlock, label %bb951
+
+UnifiedReturnBlock: ; preds = %bb986
+ ret i32 1
+}