xref: /llvm-project/llvm/test/Transforms/Reassociate/2003-08-12-InfiniteLoop.ll (revision 0676acb6fd8d5e22fde16e6ec977ceac08427ab0)
1; RUN: opt < %s -passes=reassociate -disable-output
2
3define i32 @test(i32 %A.1, i32 %B.1, i32 %C.1, i32 %D.1) {
4	%tmp.16 = and i32 %A.1, %B.1		; <i32> [#uses=1]
5	%tmp.18 = and i32 %tmp.16, %C.1		; <i32> [#uses=1]
6	%tmp.20 = and i32 %tmp.18, %D.1		; <i32> [#uses=1]
7	ret i32 %tmp.20
8}
9
10