Add testcases for harder combining cases.

llvm-svn: 12799
This commit is contained in:
Chris Lattner 2004-04-09 23:43:48 +00:00
parent 8ccddbd123
commit 5b62a97808

View File

@ -61,3 +61,21 @@ int %test11(int %a) {
ret int %R
}
int %test12(bool %cond, int %a) {
%b = or int %a, 1
%c = select bool %cond, int %b, int %a
ret int %c
}
int %test12a(bool %cond, int %a) {
%b = shr int %a, ubyte 1
%c = select bool %cond, int %b, int %a
ret int %c
}
int %test12b(bool %cond, int %a) {
%b = shr int %a, ubyte 1
%c = select bool %cond, int %a, int %b
ret int %c
}