summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/2006-12-07-SelectCrash.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-03-25 04:26:08 +0000
committerTanya Lattner <tonic@nondot.org>2008-03-25 04:26:08 +0000
commit6f729d601c8a6a9710356aadb42dc8d0efa95bf2 (patch)
treee662b3ee5539d7594ab49eda3eae140424ce499d /test/CodeGen/PowerPC/2006-12-07-SelectCrash.ll
parenta2fb634defce316ec972aa6f3ca3a941b4656f5e (diff)
Byebye llvm-upgrade!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48762 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/2006-12-07-SelectCrash.ll')
-rw-r--r--test/CodeGen/PowerPC/2006-12-07-SelectCrash.ll41
1 files changed, 18 insertions, 23 deletions
diff --git a/test/CodeGen/PowerPC/2006-12-07-SelectCrash.ll b/test/CodeGen/PowerPC/2006-12-07-SelectCrash.ll
index 6fa410e6fa5..058166ff93d 100644
--- a/test/CodeGen/PowerPC/2006-12-07-SelectCrash.ll
+++ b/test/CodeGen/PowerPC/2006-12-07-SelectCrash.ll
@@ -1,27 +1,22 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32
-; RUN: llvm-upgrade < %s | llvm-as | llc
+; RUN: llvm-as < %s | llc -march=ppc64
+; RUN: llvm-as < %s | llc -march=ppc32
+; RUN: llvm-as < %s | llc
-%qsz.b = external global bool ; <bool*> [#uses=1]
+@qsz.b = external global i1 ; <i1*> [#uses=1]
-implementation ; Functions:
-
-fastcc void %qst() {
+define fastcc void @qst() {
entry:
- br bool true, label %cond_next71, label %cond_true
-
-cond_true: ; preds = %entry
- ret void
-
-cond_next71: ; preds = %entry
- %tmp73.b = load bool* %qsz.b ; <bool> [#uses=1]
- %ii.4.ph = select bool %tmp73.b, ulong 4, ulong 0 ; <ulong> [#uses=1]
- br label %bb139
-
-bb82: ; preds = %bb139
- ret void
-
-bb139: ; preds = %bb139, %cond_next71
- %exitcond89 = seteq ulong 0, %ii.4.ph ; <bool> [#uses=1]
- br bool %exitcond89, label %bb82, label %bb139
+ br i1 true, label %cond_next71, label %cond_true
+cond_true: ; preds = %entry
+ ret void
+cond_next71: ; preds = %entry
+ %tmp73.b = load i1* @qsz.b ; <i1> [#uses=1]
+ %ii.4.ph = select i1 %tmp73.b, i64 4, i64 0 ; <i64> [#uses=1]
+ br label %bb139
+bb82: ; preds = %bb139
+ ret void
+bb139: ; preds = %bb139, %cond_next71
+ %exitcond89 = icmp eq i64 0, %ii.4.ph ; <i1> [#uses=1]
+ br i1 %exitcond89, label %bb82, label %bb139
}
+