Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | \ |
2 | ; RUN: llc -march=sparc -mattr=v9 -enable-sparc-v9-insts | ||||
3 | ; RUN: llvm-upgrade < %s | llvm-as | llc -march=sparc -mattr=-v9 | \ | ||||
4 | ; RUN: not grep popc | ||||
5 | ; RUN: llvm-upgrade < %s | llvm-as | \ | ||||
6 | ; RUN: llc -march=sparc -mattr=v9 -enable-sparc-v9-insts | grep popc | ||||
7 | |||||
8 | declare uint %llvm.ctpop.i32(uint) | ||||
9 | uint %test(uint %X) { | ||||
10 | %Y = call uint %llvm.ctpop.i32(uint %X) | ||||
11 | ret uint %Y | ||||
12 | } | ||||
13 |