2005-07-23 05:53:35 +08:00
|
|
|
; Make sure this testcase codegens to the ctpop instruction
|
2007-04-16 02:40:57 +08:00
|
|
|
; RUN: llvm-as < %s | llc -march=alpha | grep -i {subl \$16,1,\$0}
|
2005-07-23 05:53:35 +08:00
|
|
|
|
|
|
|
|
2007-01-26 16:25:06 +08:00
|
|
|
define i32 @foo(i32 sext %x) sext {
|
2005-07-23 05:53:35 +08:00
|
|
|
entry:
|
2007-01-03 12:20:23 +08:00
|
|
|
%tmp.1 = add i32 %x, -1 ; <int> [#uses=1]
|
|
|
|
ret i32 %tmp.1
|
2005-07-23 05:53:35 +08:00
|
|
|
}
|