818 lines
29 KiB
LLVM
818 lines
29 KiB
LLVM
|
; RUN: llc < %s -mtriple=ve -mattr=+vpu | FileCheck %s
|
||
|
|
||
|
;;; Test vector convert to fixed point intrinsic instructions
|
||
|
;;;
|
||
|
;;; Note:
|
||
|
;;; We test VCVT*vl, VCVT*vl_v, VCVT*vml_v, PVCVT*vl, PVCVT*vl_v, and
|
||
|
;;; PVCVT*vml_v instructions.
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwdsx_vvl(<256 x double> %0) {
|
||
|
; CHECK-LABEL: vcvtwdsx_vvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 256
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.d.sx %v0, %v0
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%2 = tail call fast <256 x double> @llvm.ve.vl.vcvtwdsx.vvl(<256 x double> %0, i32 256)
|
||
|
ret <256 x double> %2
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwdsx.vvl(<256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwdsx_vvvl(<256 x double> %0, <256 x double> %1) {
|
||
|
; CHECK-LABEL: vcvtwdsx_vvvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.d.sx %v1, %v0
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%3 = tail call fast <256 x double> @llvm.ve.vl.vcvtwdsx.vvvl(<256 x double> %0, <256 x double> %1, i32 128)
|
||
|
ret <256 x double> %3
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwdsx.vvvl(<256 x double>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwdsx_vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2) {
|
||
|
; CHECK-LABEL: vcvtwdsx_vvmvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.d.sx %v1, %v0, %vm1
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%4 = tail call fast <256 x double> @llvm.ve.vl.vcvtwdsx.vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2, i32 128)
|
||
|
ret <256 x double> %4
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwdsx.vvmvl(<256 x double>, <256 x i1>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwdsxrz_vvl(<256 x double> %0) {
|
||
|
; CHECK-LABEL: vcvtwdsxrz_vvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 256
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.d.sx.rz %v0, %v0
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%2 = tail call fast <256 x double> @llvm.ve.vl.vcvtwdsxrz.vvl(<256 x double> %0, i32 256)
|
||
|
ret <256 x double> %2
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwdsxrz.vvl(<256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwdsxrz_vvvl(<256 x double> %0, <256 x double> %1) {
|
||
|
; CHECK-LABEL: vcvtwdsxrz_vvvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.d.sx.rz %v1, %v0
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%3 = tail call fast <256 x double> @llvm.ve.vl.vcvtwdsxrz.vvvl(<256 x double> %0, <256 x double> %1, i32 128)
|
||
|
ret <256 x double> %3
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwdsxrz.vvvl(<256 x double>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwdsxrz_vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2) {
|
||
|
; CHECK-LABEL: vcvtwdsxrz_vvmvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.d.sx.rz %v1, %v0, %vm1
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%4 = tail call fast <256 x double> @llvm.ve.vl.vcvtwdsxrz.vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2, i32 128)
|
||
|
ret <256 x double> %4
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwdsxrz.vvmvl(<256 x double>, <256 x i1>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwdzx_vvl(<256 x double> %0) {
|
||
|
; CHECK-LABEL: vcvtwdzx_vvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 256
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.d.zx %v0, %v0
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%2 = tail call fast <256 x double> @llvm.ve.vl.vcvtwdzx.vvl(<256 x double> %0, i32 256)
|
||
|
ret <256 x double> %2
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwdzx.vvl(<256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwdzx_vvvl(<256 x double> %0, <256 x double> %1) {
|
||
|
; CHECK-LABEL: vcvtwdzx_vvvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.d.zx %v1, %v0
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%3 = tail call fast <256 x double> @llvm.ve.vl.vcvtwdzx.vvvl(<256 x double> %0, <256 x double> %1, i32 128)
|
||
|
ret <256 x double> %3
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwdzx.vvvl(<256 x double>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwdzx_vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2) {
|
||
|
; CHECK-LABEL: vcvtwdzx_vvmvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.d.zx %v1, %v0, %vm1
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%4 = tail call fast <256 x double> @llvm.ve.vl.vcvtwdzx.vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2, i32 128)
|
||
|
ret <256 x double> %4
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwdzx.vvmvl(<256 x double>, <256 x i1>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwdzxrz_vvl(<256 x double> %0) {
|
||
|
; CHECK-LABEL: vcvtwdzxrz_vvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 256
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.d.zx.rz %v0, %v0
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%2 = tail call fast <256 x double> @llvm.ve.vl.vcvtwdzxrz.vvl(<256 x double> %0, i32 256)
|
||
|
ret <256 x double> %2
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwdzxrz.vvl(<256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwdzxrz_vvvl(<256 x double> %0, <256 x double> %1) {
|
||
|
; CHECK-LABEL: vcvtwdzxrz_vvvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.d.zx.rz %v1, %v0
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%3 = tail call fast <256 x double> @llvm.ve.vl.vcvtwdzxrz.vvvl(<256 x double> %0, <256 x double> %1, i32 128)
|
||
|
ret <256 x double> %3
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwdzxrz.vvvl(<256 x double>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwdzxrz_vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2) {
|
||
|
; CHECK-LABEL: vcvtwdzxrz_vvmvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.d.zx.rz %v1, %v0, %vm1
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%4 = tail call fast <256 x double> @llvm.ve.vl.vcvtwdzxrz.vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2, i32 128)
|
||
|
ret <256 x double> %4
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwdzxrz.vvmvl(<256 x double>, <256 x i1>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwssx_vvl(<256 x double> %0) {
|
||
|
; CHECK-LABEL: vcvtwssx_vvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 256
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.s.sx %v0, %v0
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%2 = tail call fast <256 x double> @llvm.ve.vl.vcvtwssx.vvl(<256 x double> %0, i32 256)
|
||
|
ret <256 x double> %2
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwssx.vvl(<256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwssx_vvvl(<256 x double> %0, <256 x double> %1) {
|
||
|
; CHECK-LABEL: vcvtwssx_vvvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.s.sx %v1, %v0
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%3 = tail call fast <256 x double> @llvm.ve.vl.vcvtwssx.vvvl(<256 x double> %0, <256 x double> %1, i32 128)
|
||
|
ret <256 x double> %3
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwssx.vvvl(<256 x double>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwssx_vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2) {
|
||
|
; CHECK-LABEL: vcvtwssx_vvmvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.s.sx %v1, %v0, %vm1
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%4 = tail call fast <256 x double> @llvm.ve.vl.vcvtwssx.vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2, i32 128)
|
||
|
ret <256 x double> %4
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwssx.vvmvl(<256 x double>, <256 x i1>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwssxrz_vvl(<256 x double> %0) {
|
||
|
; CHECK-LABEL: vcvtwssxrz_vvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 256
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.s.sx.rz %v0, %v0
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%2 = tail call fast <256 x double> @llvm.ve.vl.vcvtwssxrz.vvl(<256 x double> %0, i32 256)
|
||
|
ret <256 x double> %2
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwssxrz.vvl(<256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwssxrz_vvvl(<256 x double> %0, <256 x double> %1) {
|
||
|
; CHECK-LABEL: vcvtwssxrz_vvvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.s.sx.rz %v1, %v0
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%3 = tail call fast <256 x double> @llvm.ve.vl.vcvtwssxrz.vvvl(<256 x double> %0, <256 x double> %1, i32 128)
|
||
|
ret <256 x double> %3
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwssxrz.vvvl(<256 x double>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwssxrz_vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2) {
|
||
|
; CHECK-LABEL: vcvtwssxrz_vvmvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.s.sx.rz %v1, %v0, %vm1
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%4 = tail call fast <256 x double> @llvm.ve.vl.vcvtwssxrz.vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2, i32 128)
|
||
|
ret <256 x double> %4
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwssxrz.vvmvl(<256 x double>, <256 x i1>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwszx_vvl(<256 x double> %0) {
|
||
|
; CHECK-LABEL: vcvtwszx_vvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 256
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.s.zx %v0, %v0
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%2 = tail call fast <256 x double> @llvm.ve.vl.vcvtwszx.vvl(<256 x double> %0, i32 256)
|
||
|
ret <256 x double> %2
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwszx.vvl(<256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwszx_vvvl(<256 x double> %0, <256 x double> %1) {
|
||
|
; CHECK-LABEL: vcvtwszx_vvvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.s.zx %v1, %v0
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%3 = tail call fast <256 x double> @llvm.ve.vl.vcvtwszx.vvvl(<256 x double> %0, <256 x double> %1, i32 128)
|
||
|
ret <256 x double> %3
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwszx.vvvl(<256 x double>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwszx_vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2) {
|
||
|
; CHECK-LABEL: vcvtwszx_vvmvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.s.zx %v1, %v0, %vm1
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%4 = tail call fast <256 x double> @llvm.ve.vl.vcvtwszx.vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2, i32 128)
|
||
|
ret <256 x double> %4
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwszx.vvmvl(<256 x double>, <256 x i1>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwszxrz_vvl(<256 x double> %0) {
|
||
|
; CHECK-LABEL: vcvtwszxrz_vvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 256
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.s.zx.rz %v0, %v0
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%2 = tail call fast <256 x double> @llvm.ve.vl.vcvtwszxrz.vvl(<256 x double> %0, i32 256)
|
||
|
ret <256 x double> %2
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwszxrz.vvl(<256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwszxrz_vvvl(<256 x double> %0, <256 x double> %1) {
|
||
|
; CHECK-LABEL: vcvtwszxrz_vvvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.s.zx.rz %v1, %v0
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%3 = tail call fast <256 x double> @llvm.ve.vl.vcvtwszxrz.vvvl(<256 x double> %0, <256 x double> %1, i32 128)
|
||
|
ret <256 x double> %3
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwszxrz.vvvl(<256 x double>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtwszxrz_vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2) {
|
||
|
; CHECK-LABEL: vcvtwszxrz_vvmvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.w.s.zx.rz %v1, %v0, %vm1
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%4 = tail call fast <256 x double> @llvm.ve.vl.vcvtwszxrz.vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2, i32 128)
|
||
|
ret <256 x double> %4
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtwszxrz.vvmvl(<256 x double>, <256 x i1>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtld_vvl(<256 x double> %0) {
|
||
|
; CHECK-LABEL: vcvtld_vvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 256
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.l.d %v0, %v0
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%2 = tail call fast <256 x double> @llvm.ve.vl.vcvtld.vvl(<256 x double> %0, i32 256)
|
||
|
ret <256 x double> %2
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtld.vvl(<256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtld_vvvl(<256 x double> %0, <256 x double> %1) {
|
||
|
; CHECK-LABEL: vcvtld_vvvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.l.d %v1, %v0
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%3 = tail call fast <256 x double> @llvm.ve.vl.vcvtld.vvvl(<256 x double> %0, <256 x double> %1, i32 128)
|
||
|
ret <256 x double> %3
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtld.vvvl(<256 x double>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtld_vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2) {
|
||
|
; CHECK-LABEL: vcvtld_vvmvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.l.d %v1, %v0, %vm1
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%4 = tail call fast <256 x double> @llvm.ve.vl.vcvtld.vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2, i32 128)
|
||
|
ret <256 x double> %4
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtld.vvmvl(<256 x double>, <256 x i1>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtldrz_vvl(<256 x double> %0) {
|
||
|
; CHECK-LABEL: vcvtldrz_vvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 256
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.l.d.rz %v0, %v0
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%2 = tail call fast <256 x double> @llvm.ve.vl.vcvtldrz.vvl(<256 x double> %0, i32 256)
|
||
|
ret <256 x double> %2
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtldrz.vvl(<256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtldrz_vvvl(<256 x double> %0, <256 x double> %1) {
|
||
|
; CHECK-LABEL: vcvtldrz_vvvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.l.d.rz %v1, %v0
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%3 = tail call fast <256 x double> @llvm.ve.vl.vcvtldrz.vvvl(<256 x double> %0, <256 x double> %1, i32 128)
|
||
|
ret <256 x double> %3
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtldrz.vvvl(<256 x double>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtldrz_vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2) {
|
||
|
; CHECK-LABEL: vcvtldrz_vvmvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.l.d.rz %v1, %v0, %vm1
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%4 = tail call fast <256 x double> @llvm.ve.vl.vcvtldrz.vvmvl(<256 x double> %0, <256 x i1> %1, <256 x double> %2, i32 128)
|
||
|
ret <256 x double> %4
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtldrz.vvmvl(<256 x double>, <256 x i1>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtdw_vvl(<256 x double> %0) {
|
||
|
; CHECK-LABEL: vcvtdw_vvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 256
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.d.w %v0, %v0
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%2 = tail call fast <256 x double> @llvm.ve.vl.vcvtdw.vvl(<256 x double> %0, i32 256)
|
||
|
ret <256 x double> %2
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtdw.vvl(<256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtdw_vvvl(<256 x double> %0, <256 x double> %1) {
|
||
|
; CHECK-LABEL: vcvtdw_vvvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.d.w %v1, %v0
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%3 = tail call fast <256 x double> @llvm.ve.vl.vcvtdw.vvvl(<256 x double> %0, <256 x double> %1, i32 128)
|
||
|
ret <256 x double> %3
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtdw.vvvl(<256 x double>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtsw_vvl(<256 x double> %0) {
|
||
|
; CHECK-LABEL: vcvtsw_vvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 256
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.s.w %v0, %v0
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%2 = tail call fast <256 x double> @llvm.ve.vl.vcvtsw.vvl(<256 x double> %0, i32 256)
|
||
|
ret <256 x double> %2
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtsw.vvl(<256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtsw_vvvl(<256 x double> %0, <256 x double> %1) {
|
||
|
; CHECK-LABEL: vcvtsw_vvvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.s.w %v1, %v0
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%3 = tail call fast <256 x double> @llvm.ve.vl.vcvtsw.vvvl(<256 x double> %0, <256 x double> %1, i32 128)
|
||
|
ret <256 x double> %3
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtsw.vvvl(<256 x double>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtdl_vvl(<256 x double> %0) {
|
||
|
; CHECK-LABEL: vcvtdl_vvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 256
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.d.l %v0, %v0
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%2 = tail call fast <256 x double> @llvm.ve.vl.vcvtdl.vvl(<256 x double> %0, i32 256)
|
||
|
ret <256 x double> %2
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtdl.vvl(<256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtdl_vvvl(<256 x double> %0, <256 x double> %1) {
|
||
|
; CHECK-LABEL: vcvtdl_vvvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.d.l %v1, %v0
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%3 = tail call fast <256 x double> @llvm.ve.vl.vcvtdl.vvvl(<256 x double> %0, <256 x double> %1, i32 128)
|
||
|
ret <256 x double> %3
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtdl.vvvl(<256 x double>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtds_vvl(<256 x double> %0) {
|
||
|
; CHECK-LABEL: vcvtds_vvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 256
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.d.s %v0, %v0
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%2 = tail call fast <256 x double> @llvm.ve.vl.vcvtds.vvl(<256 x double> %0, i32 256)
|
||
|
ret <256 x double> %2
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtds.vvl(<256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtds_vvvl(<256 x double> %0, <256 x double> %1) {
|
||
|
; CHECK-LABEL: vcvtds_vvvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.d.s %v1, %v0
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%3 = tail call fast <256 x double> @llvm.ve.vl.vcvtds.vvvl(<256 x double> %0, <256 x double> %1, i32 128)
|
||
|
ret <256 x double> %3
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtds.vvvl(<256 x double>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtsd_vvl(<256 x double> %0) {
|
||
|
; CHECK-LABEL: vcvtsd_vvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 256
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.s.d %v0, %v0
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%2 = tail call fast <256 x double> @llvm.ve.vl.vcvtsd.vvl(<256 x double> %0, i32 256)
|
||
|
ret <256 x double> %2
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtsd.vvl(<256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @vcvtsd_vvvl(<256 x double> %0, <256 x double> %1) {
|
||
|
; CHECK-LABEL: vcvtsd_vvvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: vcvt.s.d %v1, %v0
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%3 = tail call fast <256 x double> @llvm.ve.vl.vcvtsd.vvvl(<256 x double> %0, <256 x double> %1, i32 128)
|
||
|
ret <256 x double> %3
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.vcvtsd.vvvl(<256 x double>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @pvcvtws_vvl(<256 x double> %0) {
|
||
|
; CHECK-LABEL: pvcvtws_vvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 256
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: pvcvt.w.s %v0, %v0
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%2 = tail call fast <256 x double> @llvm.ve.vl.pvcvtws.vvl(<256 x double> %0, i32 256)
|
||
|
ret <256 x double> %2
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.pvcvtws.vvl(<256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @pvcvtws_vvvl(<256 x double> %0, <256 x double> %1) {
|
||
|
; CHECK-LABEL: pvcvtws_vvvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: pvcvt.w.s %v1, %v0
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%3 = tail call fast <256 x double> @llvm.ve.vl.pvcvtws.vvvl(<256 x double> %0, <256 x double> %1, i32 128)
|
||
|
ret <256 x double> %3
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.pvcvtws.vvvl(<256 x double>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @pvcvtws_vvMvl(<256 x double> %0, <512 x i1> %1, <256 x double> %2) {
|
||
|
; CHECK-LABEL: pvcvtws_vvMvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: pvcvt.w.s %v1, %v0, %vm2
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%4 = tail call fast <256 x double> @llvm.ve.vl.pvcvtws.vvMvl(<256 x double> %0, <512 x i1> %1, <256 x double> %2, i32 128)
|
||
|
ret <256 x double> %4
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.pvcvtws.vvMvl(<256 x double>, <512 x i1>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @pvcvtwsrz_vvl(<256 x double> %0) {
|
||
|
; CHECK-LABEL: pvcvtwsrz_vvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 256
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: pvcvt.w.s.rz %v0, %v0
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%2 = tail call fast <256 x double> @llvm.ve.vl.pvcvtwsrz.vvl(<256 x double> %0, i32 256)
|
||
|
ret <256 x double> %2
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.pvcvtwsrz.vvl(<256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @pvcvtwsrz_vvvl(<256 x double> %0, <256 x double> %1) {
|
||
|
; CHECK-LABEL: pvcvtwsrz_vvvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: pvcvt.w.s.rz %v1, %v0
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%3 = tail call fast <256 x double> @llvm.ve.vl.pvcvtwsrz.vvvl(<256 x double> %0, <256 x double> %1, i32 128)
|
||
|
ret <256 x double> %3
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.pvcvtwsrz.vvvl(<256 x double>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @pvcvtwsrz_vvMvl(<256 x double> %0, <512 x i1> %1, <256 x double> %2) {
|
||
|
; CHECK-LABEL: pvcvtwsrz_vvMvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: pvcvt.w.s.rz %v1, %v0, %vm2
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%4 = tail call fast <256 x double> @llvm.ve.vl.pvcvtwsrz.vvMvl(<256 x double> %0, <512 x i1> %1, <256 x double> %2, i32 128)
|
||
|
ret <256 x double> %4
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.pvcvtwsrz.vvMvl(<256 x double>, <512 x i1>, <256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @pvcvtsw_vvl(<256 x double> %0) {
|
||
|
; CHECK-LABEL: pvcvtsw_vvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 256
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: pvcvt.s.w %v0, %v0
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%2 = tail call fast <256 x double> @llvm.ve.vl.pvcvtsw.vvl(<256 x double> %0, i32 256)
|
||
|
ret <256 x double> %2
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.pvcvtsw.vvl(<256 x double>, i32)
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define fastcc <256 x double> @pvcvtsw_vvvl(<256 x double> %0, <256 x double> %1) {
|
||
|
; CHECK-LABEL: pvcvtsw_vvvl:
|
||
|
; CHECK: # %bb.0:
|
||
|
; CHECK-NEXT: lea %s0, 128
|
||
|
; CHECK-NEXT: lvl %s0
|
||
|
; CHECK-NEXT: pvcvt.s.w %v1, %v0
|
||
|
; CHECK-NEXT: lea %s16, 256
|
||
|
; CHECK-NEXT: lvl %s16
|
||
|
; CHECK-NEXT: vor %v0, (0)1, %v1
|
||
|
; CHECK-NEXT: b.l.t (, %s10)
|
||
|
%3 = tail call fast <256 x double> @llvm.ve.vl.pvcvtsw.vvvl(<256 x double> %0, <256 x double> %1, i32 128)
|
||
|
ret <256 x double> %3
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare <256 x double> @llvm.ve.vl.pvcvtsw.vvvl(<256 x double>, <256 x double>, i32)
|