Debian Codegraph @

llvm/test/CodeGen/VE/VELIntrinsics/vcp.ll

raw
1 ; RUN: llc < %s -mtriple=ve -mattr=+vpu | FileCheck %s
2
3 ;;; Test vector compress intrinsic instructions
4 ;;;
5 ;;; Note:
6 ;;; We test VCP*vml_v instruction.
7
8 ; Function Attrs: nounwind readnone
9 define fastcc <256 x double> @vcp_vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2) {
10 ; CHECK-LABEL: vcp_vvmvl:
11 ; CHECK: # %bb.0:
12 ; CHECK-NEXT: lea %s0, 128
13 ; CHECK-NEXT: lvl %s0
14 ; CHECK-NEXT: vcp %v1, %v0, %vm1
15 ; CHECK-NEXT: lea %s16, 256
16 ; CHECK-NEXT: lvl %s16
17 ; CHECK-NEXT: vor %v0, (0)1, %v1
18 ; CHECK-NEXT: b.l.t (, %s10)
19 %4 = tail call fast <256 x double> @llvm.ve.vl.vcp.vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2, i32 128)
20 ret <256 x double> %4
21 }
22
23 ; Function Attrs: nounwind readnone
24 declare <256 x double> @llvm.ve.vl.vcp.vvmvl(<256 x double>, <256 x i1>, <256 x double>, i32)