blob: 37d1c5a5706dfa8691fbe509ce166ba1232cf39b [file] [log] [blame]
Dan Gohman0cb2f672009-09-11 18:36:27 +00001; RUN: llc < %s -march=sparc -mattr=v9 -enable-sparc-v9-insts
Dan Gohmanda594cf2009-09-09 00:09:15 +00002; RUN: llc < %s -march=sparc -mattr=-v9 | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003; RUN: not grep popc
Dan Gohman0cb2f672009-09-11 18:36:27 +00004; RUN: llc < %s -march=sparc -mattr=v9 -enable-sparc-v9-insts | grep popc
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00006declare i32 @llvm.ctpop.i32(i32)
7
8define i32 @test(i32 %X) {
9 %Y = call i32 @llvm.ctpop.i32( i32 %X ) ; <i32> [#uses=1]
10 ret i32 %Y
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011}
12