Add some more tests for: (A <setcc1> B) logicalop (A <setcc2> B)

llvm-svn: 7827
This commit is contained in:
Chris Lattner 2003-08-13 20:13:15 +00:00
parent ed474bb329
commit faedc5ef79
1 changed files with 14 additions and 0 deletions

View File

@ -84,3 +84,17 @@ bool %test12(ubyte %A) {
%c = setne ubyte %B, 0
ret bool %c
}
bool %test13(ubyte %A, ubyte %B) {
%C = setlt ubyte %A, %B
%D = setgt ubyte %A, %B
%E = xor bool %C, %D ; E = setne %A, %B
ret bool %E
}
bool %test14(ubyte %A, ubyte %B) {
%C = seteq ubyte %A, %B
%D = setne ubyte %B, %A
%E = xor bool %C, %D ; E = true
ret bool %E
}