mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-06 19:31:13 +00:00
4572ce85b0
llvm-svn: 33296
9 lines
243 B
LLVM
9 lines
243 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine -constprop -dce | llvm-dis | not grep add
|
|
|
|
int %test(int %A) {
|
|
%X = add int %A, 1
|
|
%Y = add int %A, 1
|
|
%r = sub int %X, %Y
|
|
ret int %r ; Should be equal to 0!
|
|
}
|