brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · f7dc1fb Raw
32 lines · plain
1; RUN: llc < %s -mtriple=sparc -mattr=-v9 | FileCheck %s -check-prefix=V82; RUN: llc < %s -mtriple=sparc -mattr=+v9,+popc | FileCheck %s -check-prefix=V93; RUN: llc < %s -mtriple=sparc -mcpu=v9 | FileCheck %s -check-prefix=V84; RUN: llc < %s -mtriple=sparc -mcpu=ultrasparc | FileCheck %s -check-prefix=V85; RUN: llc < %s -mtriple=sparc -mcpu=ultrasparc3 | FileCheck %s -check-prefix=V86; RUN: llc < %s -mtriple=sparc -mcpu=niagara | FileCheck %s -check-prefix=V87; RUN: llc < %s -mtriple=sparc -mcpu=niagara2 | FileCheck %s -check-prefix=V98; RUN: llc < %s -mtriple=sparc -mcpu=niagara3 | FileCheck %s -check-prefix=V99; RUN: llc < %s -mtriple=sparc -mcpu=niagara4 | FileCheck %s -check-prefix=V910; RUN: llc < %s -mtriple=sparcv9 -mattr=+popc | FileCheck %s -check-prefix=SPARC6411 12declare i32 @llvm.ctpop.i32(i32)13 14; V8-LABEL: test15; V8-NOT: popc16 17; V9-LABEL: test18; V9:       srl %o0, 0, %o019; V9-NEXT:  retl20; V9-NEXT:  popc %o0, %o021 22; SPARC64-LABEL: test23; SPARC64:       srl %o0, 0, %o024; SPARC64:       retl25; SPARC64:       popc %o0, %o026 27define i32 @test(i32 %X) {28        %Y = call i32 @llvm.ctpop.i32( i32 %X )         ; <i32> [#uses=1]29        ret i32 %Y30}31 32