Dan Gohman | 0cb2f67 | 2009-09-11 18:36:27 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -march=sparc -mattr=v9 -enable-sparc-v9-insts |
Dan Gohman | da594cf | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 2 | ; RUN: llc < %s -march=sparc -mattr=-v9 | \ |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 3 | ; RUN: not grep popc |
Dan Gohman | 0cb2f67 | 2009-09-11 18:36:27 +0000 | [diff] [blame^] | 4 | ; RUN: llc < %s -march=sparc -mattr=v9 -enable-sparc-v9-insts | grep popc |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 5 | |
Tanya Lattner | f28e0ce | 2008-02-19 01:41:04 +0000 | [diff] [blame] | 6 | declare i32 @llvm.ctpop.i32(i32) |
| 7 | |
| 8 | define i32 @test(i32 %X) { |
| 9 | %Y = call i32 @llvm.ctpop.i32( i32 %X ) ; <i32> [#uses=1] |
| 10 | ret i32 %Y |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 11 | } |
| 12 | |