brintos

brintos / llvm-project-archived public Read only

0
0
Text · 578 B · f9e1aee Raw
22 lines · plain
1; RUN: llc < %s -mtriple=ve -mattr=+vpu | FileCheck %s2 3;;; Test population count of vm intrinsic instructions4;;;5;;; Note:6;;;   We test PCVM*ml instruction.7 8; Function Attrs: nounwind readnone9define fastcc i64 @pcvm_sml(<256 x i1> %0) {10; CHECK-LABEL: pcvm_sml:11; CHECK:       # %bb.0:12; CHECK-NEXT:    lea %s0, 25613; CHECK-NEXT:    lvl %s014; CHECK-NEXT:    pcvm %s0, %vm115; CHECK-NEXT:    b.l.t (, %s10)16  %2 = tail call i64 @llvm.ve.vl.pcvm.sml(<256 x i1> %0, i32 256)17  ret i64 %218}19 20; Function Attrs: nounwind readnone21declare i64 @llvm.ve.vl.pcvm.sml(<256 x i1>, i32)22