blob: 55fa8c52edcc9d15ed65764e952edf8d00b204c4 [file] [log] [blame]
Reid Spencereb1d74e2007-04-16 17:36:08 +00001; 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
Chris Lattner7ce1bbf2006-02-05 05:52:55 +00007
8declare uint %llvm.ctpop.i32(uint)
9uint %test(uint %X) {
10 %Y = call uint %llvm.ctpop.i32(uint %X)
11 ret uint %Y
12}
13