repo.or.cz
/
llvm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix a globalopt crash on two Adobe-C++ testcases that the recent
[llvm.git]
/
test
/
Transforms
/
InstSimplify
/
2010-12-20-I1Arithmetic.ll
blob
8b795eaaab6b8035ca3da2fd128a44c398600a90
1
; RUN: opt < %s -instsimplify -S | FileCheck %s
2
3
define i1 @add(i1 %x) {
4
; CHECK: @add
5
%z = add i1 %x, %x
6
ret i1 %z
7
; CHECK: ret i1 false
8
}
9
10
define i1 @sub(i1 %x) {
11
; CHECK: @sub
12
%z = sub i1 false, %x
13
ret i1 %z
14
; CHECK: ret i1 %x
15
}
16
17
define i1 @mul(i1 %x) {
18
; CHECK: @mul
19
%z = mul i1 %x, %x
20
ret i1 %z
21
; CHECK: ret i1 %x
22
}