mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-07 11:33:44 +00:00
test case we alredy get right.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92380 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
371da99e64
commit
75954e0bbd
@ -179,3 +179,15 @@ define i32 @test12(i32 %X) {
|
||||
; CHECK-NEXT: ret i32
|
||||
}
|
||||
|
||||
define i32 @test13(i32 %X1, i32 %X2, i32 %X3) {
|
||||
%A = sub i32 0, %X1
|
||||
%B = mul i32 %A, %X2 ; -X1*X2
|
||||
%C = mul i32 %X1, %X3 ; X1*X3
|
||||
%D = add i32 %B, %C ; -X1*X2 + X1*X3 -> X1*(X3-X2)
|
||||
ret i32 %D
|
||||
; CHECK: @test13
|
||||
; CHECK-NEXT: sub i32 %X3, %X2
|
||||
; CHECK-NEXT: mul i32 {{.*}}, %X1
|
||||
; CHECK-NEXT: ret i32
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user