blob: ec29e6bbbd1ac1a29657b8b46796b4eb83cbefe0 (
plain)
1
2
3
4
5
6
7
8
9
10
|
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep add
int %test(int %A) {
%A.neg = sub int 0, %A
%.neg = sub int 0, 1
%X = add int %.neg, 1
%Y.neg.ra = add int %A, %X
%r = add int %A.neg, %Y.neg.ra
ret int %r
}
|