1 ; This test makes sure that these instructions are properly eliminated.
4 ; RUN: if as < %s | opt -instcombine -die | dis | grep xor
17 bool %test2(int %A, int %B) {
18 %cond = setle int %A, %B ; Can change into setge
19 %Ret = xor bool %cond, true
24 ; Test that demorgans law can be instcombined
25 int %test3(int %A, int %B) {
33 ; Test that demorgens law can work with constants
34 int %test4(int %A, int %B) {
36 %c = and int %a, 5 ; 5 = ~c2
41 ; test the mirror of demorgans law...
42 int %test5(int %A, int %B) {