llvm-svn: 14220
This commit is contained in:
Chris Lattner 2004-06-18 06:07:17 +00:00
parent 1e1abdd6ed
commit d5829aac27
1 changed files with 8 additions and 0 deletions

View File

@ -105,3 +105,11 @@ ubyte %test16(ubyte %A) {
%C = and ubyte %B, 3
ret ubyte %C
}
sbyte %test17(sbyte %X, sbyte %Y) { ;; ~(~X & Y) --> (X | ~Y)
%B = xor sbyte %X, -1
%C = and sbyte %B, %Y
%D = xor sbyte %C, -1
ret sbyte %D
}