mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
b74dee264e
intended. llvm-svn: 210685
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
|
|
}
|