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
116 lines
3.7 KiB
LLVM
116 lines
3.7 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=skx | FileCheck %s
|
|
|
|
declare void @f()
|
|
define <4 x i1> @test_4i1(<4 x i32> %a, <4 x i32> %b) {
|
|
; CHECK-LABEL: test_4i1:
|
|
; CHECK: ## %bb.0:
|
|
; CHECK-NEXT: pushq %rax
|
|
; CHECK-NEXT: .cfi_def_cfa_offset 16
|
|
; CHECK-NEXT: vpcmpnleud %xmm1, %xmm0, %k0
|
|
; CHECK-NEXT: vpcmpgtd %xmm1, %xmm0, %k1
|
|
; CHECK-NEXT: korw %k1, %k0, %k0
|
|
; CHECK-NEXT: kmovw %k0, {{[-0-9]+}}(%r{{[sb]}}p) ## 2-byte Spill
|
|
; CHECK-NEXT: callq _f
|
|
; CHECK-NEXT: kmovw {{[-0-9]+}}(%r{{[sb]}}p), %k0 ## 2-byte Reload
|
|
; CHECK-NEXT: vpmovm2d %k0, %xmm0
|
|
; CHECK-NEXT: popq %rax
|
|
; CHECK-NEXT: retq
|
|
|
|
%cmp_res = icmp ugt <4 x i32> %a, %b
|
|
%cmp_res2 = icmp sgt <4 x i32> %a, %b
|
|
call void @f()
|
|
%res = or <4 x i1> %cmp_res, %cmp_res2
|
|
ret <4 x i1> %res
|
|
}
|
|
|
|
define <8 x i1> @test_8i1(<8 x i32> %a, <8 x i32> %b) {
|
|
; CHECK-LABEL: test_8i1:
|
|
; CHECK: ## %bb.0:
|
|
; CHECK-NEXT: pushq %rax
|
|
; CHECK-NEXT: .cfi_def_cfa_offset 16
|
|
; CHECK-NEXT: vpcmpnleud %ymm1, %ymm0, %k0
|
|
; CHECK-NEXT: vpcmpgtd %ymm1, %ymm0, %k1
|
|
; CHECK-NEXT: korb %k1, %k0, %k0
|
|
; CHECK-NEXT: kmovw %k0, {{[-0-9]+}}(%r{{[sb]}}p) ## 2-byte Spill
|
|
; CHECK-NEXT: vzeroupper
|
|
; CHECK-NEXT: callq _f
|
|
; CHECK-NEXT: kmovw {{[-0-9]+}}(%r{{[sb]}}p), %k0 ## 2-byte Reload
|
|
; CHECK-NEXT: vpmovm2w %k0, %xmm0
|
|
; CHECK-NEXT: popq %rax
|
|
; CHECK-NEXT: retq
|
|
|
|
%cmp_res = icmp ugt <8 x i32> %a, %b
|
|
%cmp_res2 = icmp sgt <8 x i32> %a, %b
|
|
call void @f()
|
|
%res = or <8 x i1> %cmp_res, %cmp_res2
|
|
ret <8 x i1> %res
|
|
}
|
|
|
|
define <16 x i1> @test_16i1(<16 x i32> %a, <16 x i32> %b) {
|
|
; CHECK-LABEL: test_16i1:
|
|
; CHECK: ## %bb.0:
|
|
; CHECK-NEXT: pushq %rax
|
|
; CHECK-NEXT: .cfi_def_cfa_offset 16
|
|
; CHECK-NEXT: vpcmpnleud %zmm1, %zmm0, %k0
|
|
; CHECK-NEXT: vpcmpgtd %zmm1, %zmm0, %k1
|
|
; CHECK-NEXT: korw %k1, %k0, %k0
|
|
; CHECK-NEXT: kmovw %k0, {{[-0-9]+}}(%r{{[sb]}}p) ## 2-byte Spill
|
|
; CHECK-NEXT: vzeroupper
|
|
; CHECK-NEXT: callq _f
|
|
; CHECK-NEXT: kmovw {{[-0-9]+}}(%r{{[sb]}}p), %k0 ## 2-byte Reload
|
|
; CHECK-NEXT: vpmovm2b %k0, %xmm0
|
|
; CHECK-NEXT: popq %rax
|
|
; CHECK-NEXT: retq
|
|
%cmp_res = icmp ugt <16 x i32> %a, %b
|
|
%cmp_res2 = icmp sgt <16 x i32> %a, %b
|
|
call void @f()
|
|
%res = or <16 x i1> %cmp_res, %cmp_res2
|
|
ret <16 x i1> %res
|
|
}
|
|
|
|
define <32 x i1> @test_32i1(<32 x i16> %a, <32 x i16> %b) {
|
|
; CHECK-LABEL: test_32i1:
|
|
; CHECK: ## %bb.0:
|
|
; CHECK-NEXT: pushq %rax
|
|
; CHECK-NEXT: .cfi_def_cfa_offset 16
|
|
; CHECK-NEXT: vpcmpnleuw %zmm1, %zmm0, %k0
|
|
; CHECK-NEXT: vpcmpgtw %zmm1, %zmm0, %k1
|
|
; CHECK-NEXT: kord %k1, %k0, %k0
|
|
; CHECK-NEXT: kmovd %k0, {{[-0-9]+}}(%r{{[sb]}}p) ## 4-byte Spill
|
|
; CHECK-NEXT: vzeroupper
|
|
; CHECK-NEXT: callq _f
|
|
; CHECK-NEXT: kmovd {{[-0-9]+}}(%r{{[sb]}}p), %k0 ## 4-byte Reload
|
|
; CHECK-NEXT: vpmovm2b %k0, %ymm0
|
|
; CHECK-NEXT: popq %rax
|
|
; CHECK-NEXT: retq
|
|
%cmp_res = icmp ugt <32 x i16> %a, %b
|
|
%cmp_res2 = icmp sgt <32 x i16> %a, %b
|
|
call void @f()
|
|
%res = or <32 x i1> %cmp_res, %cmp_res2
|
|
ret <32 x i1> %res
|
|
}
|
|
|
|
define <64 x i1> @test_64i1(<64 x i8> %a, <64 x i8> %b) {
|
|
; CHECK-LABEL: test_64i1:
|
|
; CHECK: ## %bb.0:
|
|
; CHECK-NEXT: pushq %rax
|
|
; CHECK-NEXT: .cfi_def_cfa_offset 16
|
|
; CHECK-NEXT: vpcmpnleub %zmm1, %zmm0, %k0
|
|
; CHECK-NEXT: vpcmpgtb %zmm1, %zmm0, %k1
|
|
; CHECK-NEXT: korq %k1, %k0, %k0
|
|
; CHECK-NEXT: kmovq %k0, (%rsp) ## 8-byte Spill
|
|
; CHECK-NEXT: vzeroupper
|
|
; CHECK-NEXT: callq _f
|
|
; CHECK-NEXT: kmovq (%rsp), %k0 ## 8-byte Reload
|
|
; CHECK-NEXT: vpmovm2b %k0, %zmm0
|
|
; CHECK-NEXT: popq %rax
|
|
; CHECK-NEXT: retq
|
|
|
|
%cmp_res = icmp ugt <64 x i8> %a, %b
|
|
%cmp_res2 = icmp sgt <64 x i8> %a, %b
|
|
call void @f()
|
|
%res = or <64 x i1> %cmp_res, %cmp_res2
|
|
ret <64 x i1> %res
|
|
}
|