aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/cmp-test.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-02-21 07:42:26 +0000
committerTanya Lattner <tonic@nondot.org>2008-02-21 07:42:26 +0000
commit33eefffb2b25b5f4a313f08fa7c57ddfcbccf36e (patch)
treec8a69f1be3db80d136ec9dcc8e41d9d5affd35ad /test/CodeGen/X86/cmp-test.ll
parent7c1687c196e8dc89a4722e0463965f0b0f5f399c (diff)
Remove llvm-upgrade and update tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47432 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/cmp-test.ll')
-rw-r--r--test/CodeGen/X86/cmp-test.ll38
1 files changed, 19 insertions, 19 deletions
diff --git a/test/CodeGen/X86/cmp-test.ll b/test/CodeGen/X86/cmp-test.ll
index 2792b57bd7..91c8a87ea5 100644
--- a/test/CodeGen/X86/cmp-test.ll
+++ b/test/CodeGen/X86/cmp-test.ll
@@ -1,27 +1,27 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep cmp | count 1
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep test | count 1
+; RUN: llvm-as < %s | llc -march=x86 | grep cmp | count 1
+; RUN: llvm-as < %s | llc -march=x86 | grep test | count 1
-int %f1(int %X, int* %y) {
- %tmp = load int* %y
- %tmp = seteq int %tmp, 0
- br bool %tmp, label %ReturnBlock, label %cond_true
+define i32 @f1(i32 %X, i32* %y) {
+ %tmp = load i32* %y ; <i32> [#uses=1]
+ %tmp.upgrd.1 = icmp eq i32 %tmp, 0 ; <i1> [#uses=1]
+ br i1 %tmp.upgrd.1, label %ReturnBlock, label %cond_true
-cond_true:
- ret int 1
+cond_true: ; preds = %0
+ ret i32 1
-ReturnBlock:
- ret int 0
+ReturnBlock: ; preds = %0
+ ret i32 0
}
-int %f2(int %X, int* %y) {
- %tmp = load int* %y
- %tmp1 = shl int %tmp, ubyte 3
- %tmp1 = seteq int %tmp1, 0
- br bool %tmp1, label %ReturnBlock, label %cond_true
+define i32 @f2(i32 %X, i32* %y) {
+ %tmp = load i32* %y ; <i32> [#uses=1]
+ %tmp1 = shl i32 %tmp, 3 ; <i32> [#uses=1]
+ %tmp1.upgrd.2 = icmp eq i32 %tmp1, 0 ; <i1> [#uses=1]
+ br i1 %tmp1.upgrd.2, label %ReturnBlock, label %cond_true
-cond_true:
- ret int 1
+cond_true: ; preds = %0
+ ret i32 1
-ReturnBlock:
- ret int 0
+ReturnBlock: ; preds = %0
+ ret i32 0
}