[AArch64 NEON] Fix invalid constant used in vselect condition.
[oota-llvm.git] / test / CodeGen / SPARC / ctpop.ll
1 ; RUN: llc < %s -march=sparc -mattr=-v9 | FileCheck %s -check-prefix=V8
2 ; RUN: llc < %s -march=sparc -mattr=+v9 | FileCheck %s -check-prefix=V9
3 ; RUN: llc < %s -march=sparcv9 | FileCheck %s -check-prefix=SPARC64
4
5 declare i32 @llvm.ctpop.i32(i32)
6
7 ; V8-LABEL: test
8 ; V8-NOT  : popc
9
10 ; V9-LABEL: test
11 ; V9:       srl %o0, 0, %o0
12 ; V9-NEXT:  jmp %o7+8
13 ; V9-NEXT:  popc %o0, %o0
14
15 ; SPARC64-LABEL: test
16 ; SPARC64:       srl %o0, 0, %o0
17 ; SPARC64:       jmp %o7+8
18 ; SPARC64:       popc %o0, %o0
19
20 define i32 @test(i32 %X) {
21         %Y = call i32 @llvm.ctpop.i32( i32 %X )         ; <i32> [#uses=1]
22         ret i32 %Y
23 }
24