mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
205b641954
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. llvm-svn: 81537
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
|
|
}
|
|
|