repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[rtsan] Add fork/execve interceptors (#117198)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
InstSimplify
/
ConstProp
/
2006-12-01-bool-casts.ll
blob
5fb28d647ae8a35e6cbae7fde24f2c6707770308
1
; RUN: opt < %s -passes=instsimplify -S | \
2
; RUN: grep "ret i32 -1"
3
; RUN: opt < %s -passes=instsimplify -S | \
4
; RUN: grep "ret i32 1"
5
6
define i32 @test1() {
7
%A = sext i1 true to i32 ; <i32> [#uses=1]
8
ret i32 %A
9
}
10
11
define i32 @test2() {
12
%A = zext i1 true to i32 ; <i32> [#uses=1]
13
ret i32 %A
14
}
15