mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 07:39:31 +00:00
Test limited reassociation
llvm-svn: 5742
This commit is contained in:
parent
d0ab973bd2
commit
5b6745ef74
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user