Renamed `as' => `llvm-as', `dis' => `llvm-dis', `link' => `llvm-link'.
[oota-llvm.git] / test / Transforms / ConstProp / 2002-05-03-NotOperator.ll
1 ; This bug has to do with the fact that constant propogation was implemented in
2 ; terms of _logical_ not (! in C) instead of _bitwise_ not (~ in C).  This was
3 ; due to a spec change.
4
5 ; Fix #2: The unary not instruction now no longer exists. Change to xor.
6
7 ; RUN: llvm-as < %s | opt -constprop | llvm-dis | not grep 'int 0'
8
9 int "test1"() {
10         %R = xor int 123, -1
11         ret int %R
12 }
13
14 int "test2"() {
15         %R = xor int -123, -1
16         ret int %R
17 }