1; RUN: opt < %s -reassociate -S | FileCheck %s
2
3define i32 @test1(i32 %A) {
4; CHECK-LABEL: test1
5; CHECK: ret i32 0
6  %X = add i32 %A, 1
7  %Y = add i32 %A, 1
8  %r = sub i32 %X, %Y
9  ret i32 %r
10}
11