blob: cfff9aebab01be9dd6cd591bee9b90e9e57f4728 [file] [log] [blame]
Chris Lattnere473a342002-05-07 20:22:12 +00001; Ensure constant propogation of 'not' instructions is working correctly.
2
Chris Lattner0a1581b2002-05-07 20:25:44 +00003; RUN: if as < %s | opt -constprop -die | dis | grep not
Chris Lattnere473a342002-05-07 20:22:12 +00004; RUN: then exit 1
5; RUN: else exit 0
6; RUN: fi
7
8int "test1"() {
9 %R = not int 4
10 ret int %R
11}
12
13int "test2"() {
14 %R = not int -23
15 ret int %R
16}
17
18bool "test3"() {
19 %R = not bool true
20 ret bool %R
21}
22