8625704ad8
Former-commit-id: 67aa10e65b237e1c4537630979ee99ebe1374215
11 lines
195 B
LLVM
11 lines
195 B
LLVM
; RUN: opt < %s -reassociate -S | FileCheck %s
|
|
|
|
define i32 @test1(i32 %A) {
|
|
; CHECK-LABEL: test1
|
|
; CHECK: ret i32 0
|
|
%X = add i32 %A, 1
|
|
%Y = add i32 %A, 1
|
|
%r = sub i32 %X, %Y
|
|
ret i32 %r
|
|
}
|