Chris Lattner | 7ce1bbf | 2006-02-05 05:52:55 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc -march=sparc -mattr=-v9 && |
2 | ; RUN: llvm-as < %s | llc -march=sparc -mattr=v9 -enable-sparc-v9-insts && | ||||
3 | ; RUN: llvm-as < %s | llc -march=sparc -mattr=-v9 | not grep popc && | ||||
4 | ; RUN: llvm-as < %s | llc -march=sparc -mattr=v9 -enable-sparc-v9-insts | grep popc | ||||
5 | |||||
6 | declare uint %llvm.ctpop.i32(uint) | ||||
7 | uint %test(uint %X) { | ||||
8 | %Y = call uint %llvm.ctpop.i32(uint %X) | ||||
9 | ret uint %Y | ||||
10 | } | ||||
11 |