Add new testcases

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5591 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-02-18 19:55:31 +00:00
parent b19fa8d3d6
commit fa59079c3c
2 changed files with 24 additions and 0 deletions

View File

@ -39,3 +39,15 @@ int %test5(int %A, int %B) {
ret int %D
}
int %test6(int %A) {
%B = mul int 7, %A
%C = add int %B, %A ; C = 7*A+A == 8*A == A << 3
ret int %C
}
int %test7(int %A) {
%B = mul int 7, %A
%C = add int %A, %B ; C = A+7*A == 8*A == A << 3
ret int %C
}

View File

@ -47,3 +47,15 @@ int %test7(int %A) {
ret int %B
}
int %test8(int %A) {
%B = mul int 9, %A
%C = sub int %B, %A ; C = 9*A-A == A*8 == A << 3
ret int %C
}
int %test9(int %A) {
%B = mul int 3, %A
%C = sub int %A, %B ; C = A-3*A == A*-2
ret int %C
}