Add new testcase for arithmetic shr of -1

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4069 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-10-08 16:10:35 +00:00
parent 2e217a7d96
commit af1b4ad24c

View File

@ -37,3 +37,8 @@ uint %test6(uint %A) {
%B = shl uint %A, ubyte 1 ;; convert to an add instruction
ret uint %B
}
int %test7(ubyte %A) {
%B = shr int -1, ubyte %A ;; Always equal to -1
ret int %B
}