Andrew Lenharth | 3fe8a6b | 2005-07-22 21:53:35 +0000 | [diff] [blame] | 1 | ; Make sure this testcase codegens to the ctpop instruction |
Reid Spencer | d1f8369 | 2007-04-15 18:40:57 +0000 | [diff] [blame] | 2 | ; RUN: llvm-as < %s | llc -march=alpha | grep -i {subl \$16,1,\$0} |
Andrew Lenharth | 3fe8a6b | 2005-07-22 21:53:35 +0000 | [diff] [blame] | 3 | |
Andrew Lenharth | 3fe8a6b | 2005-07-22 21:53:35 +0000 | [diff] [blame] | 4 | |
Reid Spencer | 314e1cb | 2007-07-19 23:13:04 +0000 | [diff] [blame] | 5 | define i32 @foo(i32 signext %x) signext { |
Andrew Lenharth | 3fe8a6b | 2005-07-22 21:53:35 +0000 | [diff] [blame] | 6 | entry: |
Reid Spencer | a6fda18 | 2007-01-03 04:20:23 +0000 | [diff] [blame] | 7 | %tmp.1 = add i32 %x, -1 ; <int> [#uses=1] |
| 8 | ret i32 %tmp.1 |
Andrew Lenharth | 3fe8a6b | 2005-07-22 21:53:35 +0000 | [diff] [blame] | 9 | } |