projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
new testcase
[oota-llvm.git]
/
test
/
Transforms
/
ConstProp
/
nottest.ll
1
; Ensure constant propogation of 'not' instructions is working correctly.
2
3
; RUN: llvm-as < %s | opt -constprop -die | llvm-dis | not grep xor
4
5
int "test1"() {
6
%R = xor int 4, -1
7
ret int %R
8
}
9
10
int "test2"() {
11
%R = xor int -23, -1
12
ret int %R
13
}
14
15
bool "test3"() {
16
%R = xor bool true, true
17
ret bool %R
18
}
19