blob: ffe00fcc406a2cdc27a810b659ce7840d1642ea2 [file] [log] [blame]
Chris Lattner7ce1bbf2006-02-05 05:52:55 +00001; 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
6declare uint %llvm.ctpop.i32(uint)
7uint %test(uint %X) {
8 %Y = call uint %llvm.ctpop.i32(uint %X)
9 ret uint %Y
10}
11