repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Signed saturation patterns
[llvm-complete.git]
/
test
/
CodeGen
/
X86
/
2007-02-23-DAGCombine-Miscompile.ll
blob
be4e16917446bdf257f11de292c2feb925426469
1
; PR1219
2
; RUN: llc < %s -mtriple=i686-- | 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
}