CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
157 lines
5.8 KiB
LLVM
157 lines
5.8 KiB
LLVM
; RUN: llc -mv65 -mattr=+hvxv65,hvx-length64b -mtriple=hexagon -O0 < %s | FileCheck %s
|
|
; RUN: llc -mv65 -mattr=+hvxv65,hvx-length64b -mtriple=hexagon -O0 < %s | FileCheck -check-prefix=CHECK-CALL %s
|
|
|
|
; CHECK-CALL-NOT: call
|
|
|
|
declare i32 @llvm.hexagon.A6.vcmpbeq.notany(i64, i64)
|
|
define i32 @A6_vcmpbeq_notany(i64 %a, i64 %b) {
|
|
%c = call i32 @llvm.hexagon.A6.vcmpbeq.notany(i64 %a, i64 %b)
|
|
ret i32 %c
|
|
}
|
|
; CHECK: = !any8(vcmpb.eq(r1:0,r3:2))
|
|
|
|
declare <16 x i32> @llvm.hexagon.V6.vabsb(<16 x i32>)
|
|
define <16 x i32> @V6_vabsb(<16 x i32> %a) {
|
|
%b = call <16 x i32> @llvm.hexagon.V6.vabsb(<16 x i32> %a)
|
|
ret <16 x i32> %b
|
|
}
|
|
; CHECK: = vabs(v0.b)
|
|
|
|
declare <16 x i32> @llvm.hexagon.V6.vabsb.sat(<16 x i32>)
|
|
define <16 x i32> @V6_vabsb_sat(<16 x i32> %a) {
|
|
%b = call <16 x i32> @llvm.hexagon.V6.vabsb.sat(<16 x i32> %a)
|
|
ret <16 x i32> %b
|
|
}
|
|
; CHECK: = vabs(v0.b):sat
|
|
|
|
declare <16 x i32> @llvm.hexagon.V6.vaslh.acc(<16 x i32>, <16 x i32>, i32)
|
|
define <16 x i32> @V6_vaslh_acc(<16 x i32> %a, <16 x i32> %b, i32 %c) {
|
|
%d = call <16 x i32> @llvm.hexagon.V6.vaslh.acc(<16 x i32> %a, <16 x i32> %b, i32 %c)
|
|
ret <16 x i32> %d
|
|
}
|
|
; CHECK: += vasl(v1.h,r0)
|
|
|
|
declare <16 x i32> @llvm.hexagon.V6.vasrh.acc(<16 x i32>, <16 x i32>, i32)
|
|
define <16 x i32> @V6_vasrh_acc(<16 x i32> %a, <16 x i32> %b, i32 %c) {
|
|
%d = call <16 x i32> @llvm.hexagon.V6.vasrh.acc(<16 x i32> %a, <16 x i32> %b, i32 %c)
|
|
ret <16 x i32> %d
|
|
}
|
|
; CHECK: += vasr(v1.h,r0)
|
|
|
|
declare <16 x i32> @llvm.hexagon.V6.vasruwuhsat(<16 x i32>, <16 x i32>, i32)
|
|
define <16 x i32> @V6_vasruwuhsat(<16 x i32> %a, <16 x i32> %b, i32 %c) {
|
|
%d = call <16 x i32> @llvm.hexagon.V6.vasruwuhsat(<16 x i32> %a, <16 x i32> %b, i32 %c)
|
|
ret <16 x i32> %d
|
|
}
|
|
; CHECK: = vasr(v0.uw,v1.uw,r0):sat
|
|
|
|
declare <16 x i32> @llvm.hexagon.V6.vasruhubsat(<16 x i32>, <16 x i32>, i32)
|
|
define <16 x i32> @V6_vasruhubsat(<16 x i32> %a, <16 x i32> %b, i32 %c) {
|
|
%d = call <16 x i32> @llvm.hexagon.V6.vasruhubsat(<16 x i32> %a, <16 x i32> %b, i32 %c)
|
|
ret <16 x i32> %d
|
|
}
|
|
; CHECK: = vasr(v0.uh,v1.uh,r0):sat
|
|
|
|
declare <16 x i32> @llvm.hexagon.V6.vasruhubrndsat(<16 x i32>, <16 x i32>, i32)
|
|
define <16 x i32> @V6_vasruhubrndsat(<16 x i32> %a, <16 x i32> %b, i32 %c) {
|
|
%d = call <16 x i32> @llvm.hexagon.V6.vasruhubrndsat(<16 x i32> %a, <16 x i32> %b, i32 %c)
|
|
ret <16 x i32> %d
|
|
}
|
|
; CHECK: = vasr(v0.uh,v1.uh,r0):rnd:sat
|
|
|
|
declare <16 x i32> @llvm.hexagon.V6.vavguw(<16 x i32>, <16 x i32>)
|
|
define <16 x i32> @V6_vavguw(<16 x i32> %a, <16 x i32> %b) {
|
|
%c = call <16 x i32> @llvm.hexagon.V6.vavguw(<16 x i32> %a, <16 x i32> %b)
|
|
ret <16 x i32> %c
|
|
}
|
|
; CHECK: = vavg(v0.uw,v1.uw)
|
|
|
|
declare <16 x i32> @llvm.hexagon.V6.vavguwrnd(<16 x i32>, <16 x i32>)
|
|
define <16 x i32> @V6_vavguwrnd(<16 x i32> %a, <16 x i32> %b) {
|
|
%c = call <16 x i32> @llvm.hexagon.V6.vavguwrnd(<16 x i32> %a, <16 x i32> %b)
|
|
ret <16 x i32> %c
|
|
}
|
|
; CHECK: = vavg(v0.uw,v1.uw):rnd
|
|
|
|
declare <16 x i32> @llvm.hexagon.V6.vavgb(<16 x i32>, <16 x i32>)
|
|
define <16 x i32> @V6_vavgb(<16 x i32> %a, <16 x i32> %b) {
|
|
%c = call <16 x i32> @llvm.hexagon.V6.vavgb(<16 x i32> %a, <16 x i32> %b)
|
|
ret <16 x i32> %c
|
|
}
|
|
; CHECK: = vavg(v0.b,v1.b)
|
|
|
|
declare <16 x i32> @llvm.hexagon.V6.vavgbrnd(<16 x i32>, <16 x i32>)
|
|
define <16 x i32> @V6_vavgbrnd(<16 x i32> %a, <16 x i32> %b) {
|
|
%c = call <16 x i32> @llvm.hexagon.V6.vavgbrnd(<16 x i32> %a, <16 x i32> %b)
|
|
ret <16 x i32> %c
|
|
}
|
|
; CHECK: = vavg(v0.b,v1.b):rnd
|
|
|
|
declare <16 x i32> @llvm.hexagon.V6.vnavgb(<16 x i32>, <16 x i32>)
|
|
define <16 x i32> @V6_vnavgb(<16 x i32> %a, <16 x i32> %b) {
|
|
%c = call <16 x i32> @llvm.hexagon.V6.vnavgb(<16 x i32> %a, <16 x i32> %b)
|
|
ret <16 x i32> %c
|
|
}
|
|
; CHECK: = vnavg(v0.b,v1.b)
|
|
|
|
declare <32 x i32> @llvm.hexagon.V6.vmpabuu(<32 x i32>, i32)
|
|
define <32 x i32> @V6_vmpabuu(<32 x i32> %a, i32 %b) {
|
|
%c = call <32 x i32> @llvm.hexagon.V6.vmpabuu(<32 x i32> %a, i32 %b)
|
|
ret <32 x i32> %c
|
|
}
|
|
; CHECK: = vmpa(v1:0.ub,r0.ub)
|
|
|
|
declare <32 x i32> @llvm.hexagon.V6.vmpabuu.acc(<32 x i32>, <32 x i32>, i32)
|
|
define <32 x i32> @V6_vmpabuu_acc(<32 x i32> %a, <32 x i32> %b, i32 %c) {
|
|
%d = call <32 x i32> @llvm.hexagon.V6.vmpabuu.acc(<32 x i32> %a, <32 x i32> %b, i32 %c)
|
|
ret <32 x i32> %d
|
|
}
|
|
; CHECK: += vmpa(v3:2.ub,r0.ub)
|
|
|
|
declare <16 x i32> @llvm.hexagon.V6.vmpauhuhsat(<16 x i32>, <16 x i32>, i64)
|
|
define <16 x i32> @V6_vmpauhuhsat(<16 x i32> %a, <16 x i32> %b, i64 %c) {
|
|
%d = call <16 x i32> @llvm.hexagon.V6.vmpauhuhsat(<16 x i32> %a, <16 x i32> %b, i64 %c)
|
|
ret <16 x i32> %d
|
|
}
|
|
; CHECK: = vmpa(v0.h,v1.uh,r1:0.uh):sat
|
|
|
|
declare <16 x i32> @llvm.hexagon.V6.vmpsuhuhsat(<16 x i32>, <16 x i32>, i64)
|
|
define <16 x i32> @V6_vmpsuhuhsat(<16 x i32> %a, <16 x i32> %b, i64 %c) {
|
|
%d = call <16 x i32> @llvm.hexagon.V6.vmpsuhuhsat(<16 x i32> %a, <16 x i32> %b, i64 %c)
|
|
ret <16 x i32> %d
|
|
}
|
|
; CHECK: = vmps(v0.h,v1.uh,r1:0.uh):sat
|
|
|
|
declare <32 x i32> @llvm.hexagon.V6.vmpyh.acc(<32 x i32>, <16 x i32>, i32)
|
|
define <32 x i32> @V6_vmpyh_acc(<32 x i32> %a, <16 x i32> %b, i32 %c) {
|
|
%d = call <32 x i32> @llvm.hexagon.V6.vmpyh.acc(<32 x i32> %a, <16 x i32> %b, i32 %c)
|
|
ret <32 x i32> %d
|
|
}
|
|
; CHECK: += vmpy(v2.h,r0.h)
|
|
|
|
declare <16 x i32> @llvm.hexagon.V6.vmpyuhe(<16 x i32>, i32)
|
|
define <16 x i32> @V6_vmpyuhe(<16 x i32> %a, i32 %b) {
|
|
%c = call <16 x i32> @llvm.hexagon.V6.vmpyuhe(<16 x i32> %a, i32 %b)
|
|
ret <16 x i32> %c
|
|
}
|
|
; CHECK: = vmpye(v0.uh,r0.uh)
|
|
|
|
;declare <16 x i32> @llvm.hexagon.V6.vprefixqb(<64 x i1>)
|
|
;define <16 x i32> @V6_vprefixqb(<64 x i1> %a) {
|
|
; %b = call <16 x i32> @llvm.hexagon.V6.vprefixqb(<64 x i1> %a)
|
|
; ret <16 x i32> %b
|
|
;}
|
|
|
|
;declare <16 x i32> @llvm.hexagon.V6.vprefixqh(<64 x i1>)
|
|
;define <16 x i32> @V6_vprefixqh(<64 x i1> %a) {
|
|
; %b = call <16 x i32> @llvm.hexagon.V6.vprefixqh(<64 x i1> %a)
|
|
; ret <16 x i32> %b
|
|
;}
|
|
|
|
;declare <16 x i32> @llvm.hexagon.V6.vprefixqw(<64 x i1>)
|
|
;define <16 x i32> @V6_vprefixqw(<64 x i1> %a) {
|
|
; %b = call <16 x i32> @llvm.hexagon.V6.vprefixqw(<64 x i1> %a)
|
|
; ret <16 x i32> %b
|
|
;}
|
|
|