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: if as < %s | opt -constprop -die | dis | grep xor
4
; RUN: then exit 1
5
; RUN: else exit 0
6
; RUN: fi
7
8
int "test1"() {
9
%R = xor int 4, -1
10
ret int %R
11
}
12
13
int "test2"() {
14
%R = xor int -23, -1
15
ret int %R
16
}
17
18
bool "test3"() {
19
%R = xor bool true, true
20
ret bool %R
21
}
22