In some rare cases, the register allocator can spill registers but end up not utilizi...
[llvm/msp430.git] / test / Transforms / ConstProp / nottest.ll
blob41ea1b3873046e8a9fd425ab9a7e19a0e53c7a13
1 ; Ensure constant propogation of 'not' instructions is working correctly.
3 ; RUN: llvm-as < %s | opt -constprop -die | llvm-dis | not grep xor
5 define i32 @test1() {
6         %R = xor i32 4, -1              ; <i32> [#uses=1]
7         ret i32 %R
10 define i32 @test2() {
11         %R = xor i32 -23, -1            ; <i32> [#uses=1]
12         ret i32 %R
15 define i1 @test3() {
16         %R = xor i1 true, true          ; <i1> [#uses=1]
17         ret i1 %R