new testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21714 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-05-06 04:11:32 +00:00
parent 7aed7ac5e1
commit 1b50d062c8
2 changed files with 14 additions and 0 deletions

View File

@ -158,3 +158,9 @@ bool %test22(ubyte %A) {
ret bool %C
}
sbyte %test23(int %A) {
%B = shl int %A, ubyte 24 ;; casts not needed
%C = shr int %B, ubyte 24
%D = cast int %C to sbyte
ret sbyte %D
}

View File

@ -146,3 +146,11 @@ int %test21(bool %C, int %A, int %B) {
%D = select bool %C2, int %A, int %B
ret int %D
}
int %test22(bool %X) {
%Y = xor bool %X, true
%Z = cast bool %Y to int
%Q = xor int %Z, 1
ret int %Q
}