blob: 7af813454072dadd13f4b31f93c3972dffb405a9 [file] [log] [blame]
Andrew Lenharth3fe8a6b2005-07-22 21:53:35 +00001; Make sure this testcase codegens to the ctpop instruction
Reid Spencerd1f83692007-04-15 18:40:57 +00002; RUN: llvm-as < %s | llc -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}