1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll
2014-06-11 18:28:45 +00:00

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
}