mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
f2f6ce65b7
input filename so that opt doesn't print the input filename in the output so that grep lines in the tests don't unintentionally match strings in the input filename. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81537 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
954 B
LLVM
24 lines
954 B
LLVM
; RUN: opt < %s -reassociate -instcombine -S |\
|
|
; RUN: grep {ret i32 0}
|
|
|
|
define i32 @f(i32 %a0, i32 %a1, i32 %a2, i32 %a3, i32 %a4) {
|
|
%tmp.2 = add i32 %a4, %a3 ; <i32> [#uses=1]
|
|
%tmp.4 = add i32 %tmp.2, %a2 ; <i32> [#uses=1]
|
|
%tmp.6 = add i32 %tmp.4, %a1 ; <i32> [#uses=1]
|
|
%tmp.8 = add i32 %tmp.6, %a0 ; <i32> [#uses=1]
|
|
%tmp.11 = add i32 %a3, %a2 ; <i32> [#uses=1]
|
|
%tmp.13 = add i32 %tmp.11, %a1 ; <i32> [#uses=1]
|
|
%tmp.15 = add i32 %tmp.13, %a0 ; <i32> [#uses=1]
|
|
%tmp.18 = add i32 %a2, %a1 ; <i32> [#uses=1]
|
|
%tmp.20 = add i32 %tmp.18, %a0 ; <i32> [#uses=1]
|
|
%tmp.23 = add i32 %a1, %a0 ; <i32> [#uses=1]
|
|
%tmp.26 = sub i32 %tmp.8, %tmp.15 ; <i32> [#uses=1]
|
|
%tmp.28 = add i32 %tmp.26, %tmp.20 ; <i32> [#uses=1]
|
|
%tmp.30 = sub i32 %tmp.28, %tmp.23 ; <i32> [#uses=1]
|
|
%tmp.32 = sub i32 %tmp.30, %a4 ; <i32> [#uses=1]
|
|
%tmp.34 = sub i32 %tmp.32, %a2 ; <i32> [#uses=2]
|
|
%T = mul i32 %tmp.34, %tmp.34 ; <i32> [#uses=1]
|
|
ret i32 %T
|
|
}
|
|
|