Test limited reassociation

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5742 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-03-11 00:10:59 +00:00
parent 8408add00a
commit be0fe12f72
2 changed files with 7 additions and 0 deletions

View File

@ -57,3 +57,4 @@ int %test8(int %A, int %B) { ; (A & C1)+(B & C2) -> (A & C1)|(B & C2) iff C1
%C = add int %A1, %B1
ret int %C
}

View File

@ -99,3 +99,9 @@ int %test16(int %A, int %B) { ; (A & C1)^(B & C2) -> (A & C1)|(B & C2) iff C
ret int %OROK
}
ubyte %test17(ubyte %A, ubyte %B) { ; Test that (A|c1)|(B|c2) == (A|B)|(c1|c2)
%C = or ubyte %A, 1
%D = or ubyte %B, 254
%E = or ubyte %C, %D
ret ubyte %E
}