blob: ffeafbd75938dda3a67be891a9ba90f040f3db0d [file] [log] [blame]
Andrew Lenharth3fe8a6b2005-07-22 21:53:35 +00001; Make sure this testcase codegens to the ctpop instruction
Dan Gohmanc8054d92009-09-09 00:09:15 +00002; RUN: llc < %s -march=alpha | grep -i {subl \$16,1,\$0}
Andrew Lenharth3fe8a6b2005-07-22 21:53:35 +00003
Andrew Lenharth3fe8a6b2005-07-22 21:53:35 +00004
Reid Spencer314e1cb2007-07-19 23:13:04 +00005define i32 @foo(i32 signext %x) signext {
Andrew Lenharth3fe8a6b2005-07-22 21:53:35 +00006entry:
Reid Spencera6fda182007-01-03 04:20:23 +00007 %tmp.1 = add i32 %x, -1 ; <int> [#uses=1]
8 ret i32 %tmp.1
Andrew Lenharth3fe8a6b2005-07-22 21:53:35 +00009}