Skip to content

Commit

Permalink
Test that demorgan's law is instcombined successfully
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3494 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Aug 23, 2002
1 parent 615cdb9 commit 31901f8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/Transforms/InstCombine/not.ll
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ bool %test2(int %A, int %B) {
%Ret = xor bool %cond, true
ret bool %Ret
}


; Test that demorgans law can be instcombined
int %test3(int %A, int %B) {
%a = xor int %A, -1
%b = xor int %B, -1
%c = and int %a, %b
%d = xor int %c, -1
ret int %d
}

0 comments on commit 31901f8

Please sign in to comment.