Fix a README item: when doing a comparison with the result
[oota-llvm.git] / test / Transforms / ConstProp / nottest.ll
1 ; Ensure constant propogation of 'not' instructions is working correctly.
2
3 ; RUN: opt < %s -constprop -die -S | not grep xor
4
5 define i32 @test1() {
6         %R = xor i32 4, -1              ; <i32> [#uses=1]
7         ret i32 %R
8 }
9
10 define i32 @test2() {
11         %R = xor i32 -23, -1            ; <i32> [#uses=1]
12         ret i32 %R
13 }
14
15 define i1 @test3() {
16         %R = xor i1 true, true          ; <i1> [#uses=1]
17         ret i1 %R
18 }
19