make sure we always handle small negatives well

llvm-svn: 22503
This commit is contained in:
Andrew Lenharth 2005-07-22 21:53:35 +00:00
parent c32843ed2b
commit 3fe8a6b104
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
; Make sure this testcase codegens to the ctpop instruction
; RUN: llvm-as < %s | llc -march=alpha | grep -i 'subl $16,1,$0'
implementation ; Functions:
int %foo(int %x) {
entry:
%tmp.1 = add int %x, -1 ; <int> [#uses=1]
ret int %tmp.1
}