blob: 37d1c5a5706dfa8691fbe509ce166ba1232cf39b [file] [log] [blame]
Dan Gohmanb7c0b242009-09-11 18:36:27 +00001; RUN: llc < %s -march=sparc -mattr=v9 -enable-sparc-v9-insts
Dan Gohmanfce288f2009-09-09 00:09:15 +00002; RUN: llc < %s -march=sparc -mattr=-v9 | \
Reid Spencereb1d74e2007-04-16 17:36:08 +00003; RUN: not grep popc
Dan Gohmanb7c0b242009-09-11 18:36:27 +00004; RUN: llc < %s -march=sparc -mattr=v9 -enable-sparc-v9-insts | grep popc
Chris Lattner7ce1bbf2006-02-05 05:52:55 +00005
Tanya Lattner53a66d12008-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
Chris Lattner7ce1bbf2006-02-05 05:52:55 +000011}
12