Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; 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 | |||||
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 |