blob: 022a513ae42283d2ac2eed28878b1796b3e321d2 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; Ensure constant propogation of 'not' instructions is working correctly.
2
3; RUN: llvm-upgrade < %s | llvm-as | opt -constprop -die | llvm-dis | not grep xor
4
5int "test1"() {
6 %R = xor int 4, -1
7 ret int %R
8}
9
10int "test2"() {
11 %R = xor int -23, -1
12 ret int %R
13}
14
15bool "test3"() {
16 %R = xor bool true, true
17 ret bool %R
18}
19