1 ; This test makes sure that these instructions are properly eliminated.
4 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep xor
14 bool %test2(int %A, int %B) {
15 %cond = setle int %A, %B ; Can change into setge
16 %Ret = xor bool %cond, true
21 ; Test that demorgans law can be instcombined
22 int %test3(int %A, int %B) {
30 ; Test that demorgens law can work with constants
31 int %test4(int %A, int %B) {
33 %c = and int %a, 5 ; 5 = ~c2
38 ; test the mirror of demorgans law...
39 int %test5(int %A, int %B) {