2005-07-23 05:53:35 +08:00
|
|
|
; Make sure this testcase codegens to the ctpop instruction
|
2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s -march=alpha | grep -i {subl \$16,1,\$0}
|
2005-07-23 05:53:35 +08:00
|
|
|
|
|
|
|
|
2007-07-20 07:13:04 +08:00
|
|
|
define i32 @foo(i32 signext %x) signext {
|
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
|
|
|
}
|