projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ISelDAG: spot chain cycles involving MachineNodes
[oota-llvm.git]
/
test
/
CodeGen
/
X86
/
2007-02-23-DAGCombine-Miscompile.ll
1
; PR1219
2
; RUN: llc < %s -march=x86 | FileCheck %s
3
4
define i32 @test(i1 %X) {
5
; CHECK-LABEL: test:
6
; CHECK-NOT: ret
7
; CHECK: movl $1, %eax
8
; CHECK: ret
9
10
%hvar2 = zext i1 %X to i32
11
%C = icmp sgt i32 %hvar2, -1
12
br i1 %C, label %cond_true15, label %cond_true
13
cond_true15:
14
ret i32 1
15
cond_true:
16
ret i32 2
17
}