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
463 lines
31 KiB
LLVM
463 lines
31 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 2
|
|
; Check memory cost model action for fixed vector SVE and Neon
|
|
; Vector bits size lower than 256 bits end up assuming Neon cost model
|
|
; CHECK-NEON has same performance as CHECK-SVE-128
|
|
|
|
; RUN: opt -passes="print<cost-model>" -cost-kind=all 2>&1 -disable-output -mtriple=aarch64--linux-gnu -mattr=+neon < %s | FileCheck %s --check-prefix=CHECK-NEON
|
|
; RUN: opt -passes="print<cost-model>" -cost-kind=all 2>&1 -disable-output -mtriple=aarch64--linux-gnu -mattr=+sve -aarch64-sve-vector-bits-min=128 < %s | FileCheck %s --check-prefix=CHECK-SVE-128
|
|
; RUN: opt -passes="print<cost-model>" -cost-kind=all 2>&1 -disable-output -mtriple=aarch64--linux-gnu -mattr=+sve -aarch64-sve-vector-bits-min=256 < %s | FileCheck %s --check-prefix=CHECK-SVE-256
|
|
; RUN: opt -passes="print<cost-model>" -cost-kind=all 2>&1 -disable-output -mtriple=aarch64--linux-gnu -mattr=+sve -aarch64-sve-vector-bits-min=512 < %s | FileCheck %s --check-prefix=CHECK-SVE-512
|
|
|
|
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
|
|
|
|
define <16 x i8> @load16(ptr %ptr) {
|
|
; CHECK: function 'load16'
|
|
; CHECK-NEON-LABEL: 'load16'
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:4 SizeLat:1 for: %out = load <16 x i8>, ptr %ptr, align 16
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <16 x i8> %out
|
|
;
|
|
; CHECK-SVE-128-LABEL: 'load16'
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:4 SizeLat:1 for: %out = load <16 x i8>, ptr %ptr, align 16
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <16 x i8> %out
|
|
;
|
|
; CHECK-SVE-256-LABEL: 'load16'
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:4 SizeLat:1 for: %out = load <16 x i8>, ptr %ptr, align 16
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <16 x i8> %out
|
|
;
|
|
; CHECK-SVE-512-LABEL: 'load16'
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:4 SizeLat:1 for: %out = load <16 x i8>, ptr %ptr, align 16
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <16 x i8> %out
|
|
;
|
|
%out = load <16 x i8>, ptr %ptr
|
|
ret <16 x i8> %out
|
|
}
|
|
|
|
define void @store16(ptr %ptr, <16 x i8> %val) {
|
|
; CHECK: function 'store16'
|
|
; CHECK-NEON-LABEL: 'store16'
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of 1 for: store <16 x i8> %val, ptr %ptr, align 16
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-128-LABEL: 'store16'
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of 1 for: store <16 x i8> %val, ptr %ptr, align 16
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-256-LABEL: 'store16'
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of 1 for: store <16 x i8> %val, ptr %ptr, align 16
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-512-LABEL: 'store16'
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of 1 for: store <16 x i8> %val, ptr %ptr, align 16
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
store <16 x i8> %val, ptr %ptr
|
|
ret void
|
|
}
|
|
|
|
define <8 x i8> @load8(ptr %ptr) {
|
|
; CHECK: function 'load8'
|
|
; CHECK-NEON-LABEL: 'load8'
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:4 SizeLat:1 for: %out = load <8 x i8>, ptr %ptr, align 8
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x i8> %out
|
|
;
|
|
; CHECK-SVE-128-LABEL: 'load8'
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:4 SizeLat:1 for: %out = load <8 x i8>, ptr %ptr, align 8
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x i8> %out
|
|
;
|
|
; CHECK-SVE-256-LABEL: 'load8'
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:4 SizeLat:1 for: %out = load <8 x i8>, ptr %ptr, align 8
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x i8> %out
|
|
;
|
|
; CHECK-SVE-512-LABEL: 'load8'
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:4 SizeLat:1 for: %out = load <8 x i8>, ptr %ptr, align 8
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x i8> %out
|
|
;
|
|
%out = load <8 x i8>, ptr %ptr
|
|
ret <8 x i8> %out
|
|
}
|
|
|
|
define void @store8(ptr %ptr, <8 x i8> %val) {
|
|
; CHECK: function 'store8'
|
|
; CHECK-NEON-LABEL: 'store8'
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of 1 for: store <8 x i8> %val, ptr %ptr, align 8
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-128-LABEL: 'store8'
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of 1 for: store <8 x i8> %val, ptr %ptr, align 8
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-256-LABEL: 'store8'
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of 1 for: store <8 x i8> %val, ptr %ptr, align 8
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-512-LABEL: 'store8'
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of 1 for: store <8 x i8> %val, ptr %ptr, align 8
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
store <8 x i8> %val, ptr %ptr
|
|
ret void
|
|
}
|
|
|
|
define <4 x i8> @load4(ptr %ptr) {
|
|
; CHECK: function 'load4'
|
|
; CHECK-NEON-LABEL: 'load4'
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:4 SizeLat:1 for: %out = load <4 x i8>, ptr %ptr, align 4
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i8> %out
|
|
;
|
|
; CHECK-SVE-128-LABEL: 'load4'
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:4 SizeLat:1 for: %out = load <4 x i8>, ptr %ptr, align 4
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i8> %out
|
|
;
|
|
; CHECK-SVE-256-LABEL: 'load4'
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:4 SizeLat:1 for: %out = load <4 x i8>, ptr %ptr, align 4
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i8> %out
|
|
;
|
|
; CHECK-SVE-512-LABEL: 'load4'
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:4 SizeLat:1 for: %out = load <4 x i8>, ptr %ptr, align 4
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i8> %out
|
|
;
|
|
%out = load <4 x i8>, ptr %ptr
|
|
ret <4 x i8> %out
|
|
}
|
|
|
|
define void @store4(ptr %ptr, <4 x i8> %val) {
|
|
; CHECK: function 'store4'
|
|
; CHECK-NEON-LABEL: 'store4'
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: store <4 x i8> %val, ptr %ptr, align 4
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-128-LABEL: 'store4'
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:2 CodeSize:1 Lat:1 SizeLat:1 for: store <4 x i8> %val, ptr %ptr, align 4
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-256-LABEL: 'store4'
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of 1 for: store <4 x i8> %val, ptr %ptr, align 4
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-512-LABEL: 'store4'
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of 1 for: store <4 x i8> %val, ptr %ptr, align 4
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
store <4 x i8> %val, ptr %ptr
|
|
ret void
|
|
}
|
|
|
|
define <16 x i16> @load_256(ptr %ptr) {
|
|
; CHECK: function 'load_256'
|
|
; CHECK-NEON-LABEL: 'load_256'
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:4 SizeLat:2 for: %out = load <16 x i16>, ptr %ptr, align 32
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <16 x i16> %out
|
|
;
|
|
; CHECK-SVE-128-LABEL: 'load_256'
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:4 SizeLat:2 for: %out = load <16 x i16>, ptr %ptr, align 32
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <16 x i16> %out
|
|
;
|
|
; CHECK-SVE-256-LABEL: 'load_256'
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:4 SizeLat:1 for: %out = load <16 x i16>, ptr %ptr, align 32
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <16 x i16> %out
|
|
;
|
|
; CHECK-SVE-512-LABEL: 'load_256'
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:4 SizeLat:1 for: %out = load <16 x i16>, ptr %ptr, align 32
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <16 x i16> %out
|
|
;
|
|
%out = load <16 x i16>, ptr %ptr
|
|
ret <16 x i16> %out
|
|
}
|
|
|
|
define <8 x i64> @load_512(ptr %ptr) {
|
|
; CHECK: function 'load_512'
|
|
; CHECK-NEON-LABEL: 'load_512'
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of 4 for: %out = load <8 x i64>, ptr %ptr, align 64
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x i64> %out
|
|
;
|
|
; CHECK-SVE-128-LABEL: 'load_512'
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of 4 for: %out = load <8 x i64>, ptr %ptr, align 64
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x i64> %out
|
|
;
|
|
; CHECK-SVE-256-LABEL: 'load_512'
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:2 CodeSize:2 Lat:4 SizeLat:2 for: %out = load <8 x i64>, ptr %ptr, align 64
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x i64> %out
|
|
;
|
|
; CHECK-SVE-512-LABEL: 'load_512'
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:1 CodeSize:1 Lat:4 SizeLat:1 for: %out = load <8 x i64>, ptr %ptr, align 64
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x i64> %out
|
|
;
|
|
%out = load <8 x i64>, ptr %ptr
|
|
ret <8 x i64> %out
|
|
}
|
|
|
|
declare <4 x i8> @llvm.masked.gather.v4i8.v4p0(<4 x ptr>, i32 immarg, <4 x i1>, <4 x i8>)
|
|
define <4 x i8> @gather_load_4xi8_constant_mask(<4 x ptr> %ptrs) {
|
|
; CHECK: gather_load_4xi8_constant_mask
|
|
; CHECK-NEON-LABEL: 'gather_load_4xi8_constant_mask'
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:20 CodeSize:12 Lat:32 SizeLat:20 for: %lv = call <4 x i8> @llvm.masked.gather.v4i8.v4p0(<4 x ptr> align 1 %ptrs, <4 x i1> splat (i1 true), <4 x i8> undef)
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i8> %lv
|
|
;
|
|
; CHECK-SVE-128-LABEL: 'gather_load_4xi8_constant_mask'
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:20 CodeSize:12 Lat:32 SizeLat:20 for: %lv = call <4 x i8> @llvm.masked.gather.v4i8.v4p0(<4 x ptr> align 1 %ptrs, <4 x i1> splat (i1 true), <4 x i8> undef)
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i8> %lv
|
|
;
|
|
; CHECK-SVE-256-LABEL: 'gather_load_4xi8_constant_mask'
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:40 CodeSize:40 Lat:160 SizeLat:40 for: %lv = call <4 x i8> @llvm.masked.gather.v4i8.v4p0(<4 x ptr> align 1 %ptrs, <4 x i1> splat (i1 true), <4 x i8> undef)
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i8> %lv
|
|
;
|
|
; CHECK-SVE-512-LABEL: 'gather_load_4xi8_constant_mask'
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:40 CodeSize:40 Lat:160 SizeLat:40 for: %lv = call <4 x i8> @llvm.masked.gather.v4i8.v4p0(<4 x ptr> align 1 %ptrs, <4 x i1> splat (i1 true), <4 x i8> undef)
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i8> %lv
|
|
;
|
|
%lv = call <4 x i8> @llvm.masked.gather.v4i8.v4p0(<4 x ptr> %ptrs, i32 1, <4 x i1> <i1 true, i1 true, i1 true, i1 true>, <4 x i8> undef)
|
|
ret <4 x i8> %lv
|
|
}
|
|
|
|
define <4 x i8> @gather_load_4xi8_variable_mask(<4 x ptr> %ptrs, <4 x i1> %cond) {
|
|
; CHECK: gather_load_4xi8_variable_mask
|
|
; CHECK-NEON-LABEL: 'gather_load_4xi8_variable_mask'
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:28 CodeSize:20 Lat:44 SizeLat:32 for: %lv = call <4 x i8> @llvm.masked.gather.v4i8.v4p0(<4 x ptr> align 1 %ptrs, <4 x i1> %cond, <4 x i8> undef)
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i8> %lv
|
|
;
|
|
; CHECK-SVE-128-LABEL: 'gather_load_4xi8_variable_mask'
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:28 CodeSize:20 Lat:44 SizeLat:32 for: %lv = call <4 x i8> @llvm.masked.gather.v4i8.v4p0(<4 x ptr> align 1 %ptrs, <4 x i1> %cond, <4 x i8> undef)
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i8> %lv
|
|
;
|
|
; CHECK-SVE-256-LABEL: 'gather_load_4xi8_variable_mask'
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:40 CodeSize:40 Lat:160 SizeLat:40 for: %lv = call <4 x i8> @llvm.masked.gather.v4i8.v4p0(<4 x ptr> align 1 %ptrs, <4 x i1> %cond, <4 x i8> undef)
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i8> %lv
|
|
;
|
|
; CHECK-SVE-512-LABEL: 'gather_load_4xi8_variable_mask'
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:40 CodeSize:40 Lat:160 SizeLat:40 for: %lv = call <4 x i8> @llvm.masked.gather.v4i8.v4p0(<4 x ptr> align 1 %ptrs, <4 x i1> %cond, <4 x i8> undef)
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i8> %lv
|
|
;
|
|
%lv = call <4 x i8> @llvm.masked.gather.v4i8.v4p0(<4 x ptr> %ptrs, i32 1, <4 x i1> %cond, <4 x i8> undef)
|
|
ret <4 x i8> %lv
|
|
}
|
|
|
|
declare void @llvm.masked.scatter.v4i8.v4p0(<4 x i8>, <4 x ptr>, i32 immarg, <4 x i1>)
|
|
define void @scatter_store_4xi8_constant_mask(<4 x i8> %val, <4 x ptr> %ptrs) {
|
|
; CHECK: scatter_store_4xi8_constant_mask
|
|
; CHECK-NEON-LABEL: 'scatter_store_4xi8_constant_mask'
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:20 CodeSize:12 Lat:20 SizeLat:20 for: call void @llvm.masked.scatter.v4i8.v4p0(<4 x i8> %val, <4 x ptr> align 1 %ptrs, <4 x i1> splat (i1 true))
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-128-LABEL: 'scatter_store_4xi8_constant_mask'
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:20 CodeSize:12 Lat:20 SizeLat:20 for: call void @llvm.masked.scatter.v4i8.v4p0(<4 x i8> %val, <4 x ptr> align 1 %ptrs, <4 x i1> splat (i1 true))
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-256-LABEL: 'scatter_store_4xi8_constant_mask'
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of 40 for: call void @llvm.masked.scatter.v4i8.v4p0(<4 x i8> %val, <4 x ptr> align 1 %ptrs, <4 x i1> splat (i1 true))
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-512-LABEL: 'scatter_store_4xi8_constant_mask'
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of 40 for: call void @llvm.masked.scatter.v4i8.v4p0(<4 x i8> %val, <4 x ptr> align 1 %ptrs, <4 x i1> splat (i1 true))
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
call void @llvm.masked.scatter.v4i8.v4p0(<4 x i8> %val, <4 x ptr> %ptrs, i32 1, <4 x i1> <i1 true, i1 true, i1 true, i1 true>)
|
|
ret void
|
|
}
|
|
|
|
define void @scatter_store_4xi8_variable_mask(<4 x i8> %val, <4 x ptr> %ptrs, <4 x i1> %cond) {
|
|
; CHECK: scatter_store_4xi8_variable_mask
|
|
; CHECK-NEON-LABEL: 'scatter_store_4xi8_variable_mask'
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:28 CodeSize:20 Lat:32 SizeLat:32 for: call void @llvm.masked.scatter.v4i8.v4p0(<4 x i8> %val, <4 x ptr> align 1 %ptrs, <4 x i1> %cond)
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-128-LABEL: 'scatter_store_4xi8_variable_mask'
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:28 CodeSize:20 Lat:32 SizeLat:32 for: call void @llvm.masked.scatter.v4i8.v4p0(<4 x i8> %val, <4 x ptr> align 1 %ptrs, <4 x i1> %cond)
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-256-LABEL: 'scatter_store_4xi8_variable_mask'
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of 40 for: call void @llvm.masked.scatter.v4i8.v4p0(<4 x i8> %val, <4 x ptr> align 1 %ptrs, <4 x i1> %cond)
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-512-LABEL: 'scatter_store_4xi8_variable_mask'
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of 40 for: call void @llvm.masked.scatter.v4i8.v4p0(<4 x i8> %val, <4 x ptr> align 1 %ptrs, <4 x i1> %cond)
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
call void @llvm.masked.scatter.v4i8.v4p0(<4 x i8> %val, <4 x ptr> %ptrs, i32 1, <4 x i1> %cond)
|
|
ret void
|
|
}
|
|
|
|
declare <4 x i32> @llvm.masked.gather.v4i32.v4p0(<4 x ptr>, i32 immarg, <4 x i1>, <4 x i32>)
|
|
define <4 x i32> @gather_load_4xi32_constant_mask(<4 x ptr> %ptrs) {
|
|
; CHECK: gather_load_4xi32_constant_mask
|
|
; CHECK-NEON-LABEL: 'gather_load_4xi32_constant_mask'
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:20 CodeSize:12 Lat:32 SizeLat:20 for: %lv = call <4 x i32> @llvm.masked.gather.v4i32.v4p0(<4 x ptr> align 1 %ptrs, <4 x i1> splat (i1 true), <4 x i32> undef)
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i32> %lv
|
|
;
|
|
; CHECK-SVE-128-LABEL: 'gather_load_4xi32_constant_mask'
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:20 CodeSize:12 Lat:32 SizeLat:20 for: %lv = call <4 x i32> @llvm.masked.gather.v4i32.v4p0(<4 x ptr> align 1 %ptrs, <4 x i1> splat (i1 true), <4 x i32> undef)
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i32> %lv
|
|
;
|
|
; CHECK-SVE-256-LABEL: 'gather_load_4xi32_constant_mask'
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:40 CodeSize:40 Lat:160 SizeLat:40 for: %lv = call <4 x i32> @llvm.masked.gather.v4i32.v4p0(<4 x ptr> align 1 %ptrs, <4 x i1> splat (i1 true), <4 x i32> undef)
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i32> %lv
|
|
;
|
|
; CHECK-SVE-512-LABEL: 'gather_load_4xi32_constant_mask'
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:40 CodeSize:40 Lat:160 SizeLat:40 for: %lv = call <4 x i32> @llvm.masked.gather.v4i32.v4p0(<4 x ptr> align 1 %ptrs, <4 x i1> splat (i1 true), <4 x i32> undef)
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i32> %lv
|
|
;
|
|
%lv = call <4 x i32> @llvm.masked.gather.v4i32.v4p0(<4 x ptr> %ptrs, i32 1, <4 x i1> <i1 true, i1 true, i1 true, i1 true>, <4 x i32> undef)
|
|
ret <4 x i32> %lv
|
|
}
|
|
|
|
define <4 x i32> @gather_load_4xi32_variable_mask(<4 x ptr> %ptrs, <4 x i1> %cond) {
|
|
; CHECK: gather_load_4xi32_variable_mask
|
|
; CHECK-NEON-LABEL: 'gather_load_4xi32_variable_mask'
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:28 CodeSize:20 Lat:44 SizeLat:32 for: %lv = call <4 x i32> @llvm.masked.gather.v4i32.v4p0(<4 x ptr> align 1 %ptrs, <4 x i1> %cond, <4 x i32> undef)
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i32> %lv
|
|
;
|
|
; CHECK-SVE-128-LABEL: 'gather_load_4xi32_variable_mask'
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:28 CodeSize:20 Lat:44 SizeLat:32 for: %lv = call <4 x i32> @llvm.masked.gather.v4i32.v4p0(<4 x ptr> align 1 %ptrs, <4 x i1> %cond, <4 x i32> undef)
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i32> %lv
|
|
;
|
|
; CHECK-SVE-256-LABEL: 'gather_load_4xi32_variable_mask'
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:40 CodeSize:40 Lat:160 SizeLat:40 for: %lv = call <4 x i32> @llvm.masked.gather.v4i32.v4p0(<4 x ptr> align 1 %ptrs, <4 x i1> %cond, <4 x i32> undef)
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i32> %lv
|
|
;
|
|
; CHECK-SVE-512-LABEL: 'gather_load_4xi32_variable_mask'
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:40 CodeSize:40 Lat:160 SizeLat:40 for: %lv = call <4 x i32> @llvm.masked.gather.v4i32.v4p0(<4 x ptr> align 1 %ptrs, <4 x i1> %cond, <4 x i32> undef)
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i32> %lv
|
|
;
|
|
%lv = call <4 x i32> @llvm.masked.gather.v4i32.v4p0(<4 x ptr> %ptrs, i32 1, <4 x i1> %cond, <4 x i32> undef)
|
|
ret <4 x i32> %lv
|
|
}
|
|
|
|
declare void @llvm.masked.scatter.v4i32.v4p0(<4 x i32>, <4 x ptr>, i32 immarg, <4 x i1>)
|
|
define void @scatter_store_4xi32_constant_mask(<4 x i32> %val, <4 x ptr> %ptrs) {
|
|
; CHECK: scatter_store_4xi32_constant_mask
|
|
; CHECK-NEON-LABEL: 'scatter_store_4xi32_constant_mask'
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:20 CodeSize:12 Lat:20 SizeLat:20 for: call void @llvm.masked.scatter.v4i32.v4p0(<4 x i32> %val, <4 x ptr> align 1 %ptrs, <4 x i1> splat (i1 true))
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-128-LABEL: 'scatter_store_4xi32_constant_mask'
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:20 CodeSize:12 Lat:20 SizeLat:20 for: call void @llvm.masked.scatter.v4i32.v4p0(<4 x i32> %val, <4 x ptr> align 1 %ptrs, <4 x i1> splat (i1 true))
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-256-LABEL: 'scatter_store_4xi32_constant_mask'
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of 40 for: call void @llvm.masked.scatter.v4i32.v4p0(<4 x i32> %val, <4 x ptr> align 1 %ptrs, <4 x i1> splat (i1 true))
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-512-LABEL: 'scatter_store_4xi32_constant_mask'
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of 40 for: call void @llvm.masked.scatter.v4i32.v4p0(<4 x i32> %val, <4 x ptr> align 1 %ptrs, <4 x i1> splat (i1 true))
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
call void @llvm.masked.scatter.v4i32.v4p0(<4 x i32> %val, <4 x ptr> %ptrs, i32 1, <4 x i1> <i1 true, i1 true, i1 true, i1 true>)
|
|
ret void
|
|
}
|
|
|
|
define void @scatter_store_4xi32_variable_mask(<4 x i32> %val, <4 x ptr> %ptrs, <4 x i1> %cond) {
|
|
; CHECK: scatter_store_4xi32_variable_mask
|
|
; CHECK-NEON-LABEL: 'scatter_store_4xi32_variable_mask'
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:28 CodeSize:20 Lat:32 SizeLat:32 for: call void @llvm.masked.scatter.v4i32.v4p0(<4 x i32> %val, <4 x ptr> align 1 %ptrs, <4 x i1> %cond)
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-128-LABEL: 'scatter_store_4xi32_variable_mask'
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:28 CodeSize:20 Lat:32 SizeLat:32 for: call void @llvm.masked.scatter.v4i32.v4p0(<4 x i32> %val, <4 x ptr> align 1 %ptrs, <4 x i1> %cond)
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-256-LABEL: 'scatter_store_4xi32_variable_mask'
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of 40 for: call void @llvm.masked.scatter.v4i32.v4p0(<4 x i32> %val, <4 x ptr> align 1 %ptrs, <4 x i1> %cond)
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-512-LABEL: 'scatter_store_4xi32_variable_mask'
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of 40 for: call void @llvm.masked.scatter.v4i32.v4p0(<4 x i32> %val, <4 x ptr> align 1 %ptrs, <4 x i1> %cond)
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
call void @llvm.masked.scatter.v4i32.v4p0(<4 x i32> %val, <4 x ptr> %ptrs, i32 1, <4 x i1> %cond)
|
|
ret void
|
|
}
|
|
|
|
declare <256 x i16> @llvm.masked.gather.v256i16.v256p0(<256 x ptr>, i32, <256 x i1>, <256 x i16>)
|
|
define void @sve_gather_vls(<256 x i1> %v256i1mask) {
|
|
; CHECK-LABEL: 'sve_scatter_vls'
|
|
; CHECK-NEON-LABEL: 'sve_gather_vls'
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:1792 CodeSize:1280 Lat:2816 SizeLat:2048 for: %res.v256i16 = call <256 x i16> @llvm.masked.gather.v256i16.v256p0(<256 x ptr> align 2 undef, <256 x i1> %v256i1mask, <256 x i16> zeroinitializer)
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-128-LABEL: 'sve_gather_vls'
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:1792 CodeSize:1280 Lat:2816 SizeLat:2048 for: %res.v256i16 = call <256 x i16> @llvm.masked.gather.v256i16.v256p0(<256 x ptr> align 2 undef, <256 x i1> %v256i1mask, <256 x i16> zeroinitializer)
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-256-LABEL: 'sve_gather_vls'
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:2560 CodeSize:2560 Lat:10240 SizeLat:2560 for: %res.v256i16 = call <256 x i16> @llvm.masked.gather.v256i16.v256p0(<256 x ptr> align 2 undef, <256 x i1> %v256i1mask, <256 x i16> zeroinitializer)
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-512-LABEL: 'sve_gather_vls'
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:2560 CodeSize:2560 Lat:10240 SizeLat:2560 for: %res.v256i16 = call <256 x i16> @llvm.masked.gather.v256i16.v256p0(<256 x ptr> align 2 undef, <256 x i1> %v256i1mask, <256 x i16> zeroinitializer)
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
entry:
|
|
%res.v256i16 = call <256 x i16> @llvm.masked.gather.v256i16.v256p0(<256 x ptr> undef, i32 0, <256 x i1> %v256i1mask, <256 x i16> zeroinitializer)
|
|
ret void
|
|
}
|
|
|
|
declare <256 x float> @llvm.masked.gather.v256f32.v256p0(<256 x ptr>, i32, <256 x i1>, <256 x float>)
|
|
define void @sve_gather_vls_float(<256 x i1> %v256i1mask) {
|
|
; CHECK-LABEL: 'sve_gather_vls_float'
|
|
; CHECK-NEON-LABEL: 'sve_gather_vls_float'
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:1664 CodeSize:1216 Lat:2688 SizeLat:1920 for: %res.v256f32 = call <256 x float> @llvm.masked.gather.v256f32.v256p0(<256 x ptr> align 4 undef, <256 x i1> %v256i1mask, <256 x float> zeroinitializer)
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-128-LABEL: 'sve_gather_vls_float'
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:1664 CodeSize:1216 Lat:2688 SizeLat:1920 for: %res.v256f32 = call <256 x float> @llvm.masked.gather.v256f32.v256p0(<256 x ptr> align 4 undef, <256 x i1> %v256i1mask, <256 x float> zeroinitializer)
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-256-LABEL: 'sve_gather_vls_float'
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:2560 CodeSize:2560 Lat:10240 SizeLat:2560 for: %res.v256f32 = call <256 x float> @llvm.masked.gather.v256f32.v256p0(<256 x ptr> align 4 undef, <256 x i1> %v256i1mask, <256 x float> zeroinitializer)
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-512-LABEL: 'sve_gather_vls_float'
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:2560 CodeSize:2560 Lat:10240 SizeLat:2560 for: %res.v256f32 = call <256 x float> @llvm.masked.gather.v256f32.v256p0(<256 x ptr> align 4 undef, <256 x i1> %v256i1mask, <256 x float> zeroinitializer)
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
entry:
|
|
%res.v256f32 = call <256 x float> @llvm.masked.gather.v256f32.v256p0(<256 x ptr> undef, i32 0, <256 x i1> %v256i1mask, <256 x float> zeroinitializer)
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.masked.scatter.v256i8.v256p0(<256 x i8>, <256 x ptr>, i32, <256 x i1>)
|
|
define void @sve_scatter_vls(<256 x i1> %v256i1mask){
|
|
; CHECK-LABEL: 'sve_scatter_vls'
|
|
; CHECK-NEON-LABEL: 'sve_scatter_vls'
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:1792 CodeSize:1280 Lat:2048 SizeLat:2048 for: call void @llvm.masked.scatter.v256i8.v256p0(<256 x i8> undef, <256 x ptr> align 1 undef, <256 x i1> %v256i1mask)
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-128-LABEL: 'sve_scatter_vls'
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:1792 CodeSize:1280 Lat:2048 SizeLat:2048 for: call void @llvm.masked.scatter.v256i8.v256p0(<256 x i8> undef, <256 x ptr> align 1 undef, <256 x i1> %v256i1mask)
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-256-LABEL: 'sve_scatter_vls'
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of 2560 for: call void @llvm.masked.scatter.v256i8.v256p0(<256 x i8> undef, <256 x ptr> align 1 undef, <256 x i1> %v256i1mask)
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-512-LABEL: 'sve_scatter_vls'
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of 2560 for: call void @llvm.masked.scatter.v256i8.v256p0(<256 x i8> undef, <256 x ptr> align 1 undef, <256 x i1> %v256i1mask)
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
entry:
|
|
call void @llvm.masked.scatter.v256i8.v256p0(<256 x i8> undef, <256 x ptr> undef, i32 0, <256 x i1> %v256i1mask)
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.masked.scatter.v512f16.v512p0(<512 x half>, <512 x ptr>, i32, <512 x i1>)
|
|
define void @sve_scatter_vls_float(<512 x i1> %v512i1mask){
|
|
; CHECK-LABEL: 'sve_scatter_vls_float'
|
|
; CHECK-NEON-LABEL: 'sve_scatter_vls_float'
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:3456 CodeSize:2496 Lat:3968 SizeLat:3968 for: call void @llvm.masked.scatter.v512f16.v512p0(<512 x half> undef, <512 x ptr> align 2 undef, <512 x i1> %v512i1mask)
|
|
; CHECK-NEON-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-128-LABEL: 'sve_scatter_vls_float'
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:3456 CodeSize:2496 Lat:3968 SizeLat:3968 for: call void @llvm.masked.scatter.v512f16.v512p0(<512 x half> undef, <512 x ptr> align 2 undef, <512 x i1> %v512i1mask)
|
|
; CHECK-SVE-128-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-256-LABEL: 'sve_scatter_vls_float'
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of 5120 for: call void @llvm.masked.scatter.v512f16.v512p0(<512 x half> undef, <512 x ptr> align 2 undef, <512 x i1> %v512i1mask)
|
|
; CHECK-SVE-256-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
; CHECK-SVE-512-LABEL: 'sve_scatter_vls_float'
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of 5120 for: call void @llvm.masked.scatter.v512f16.v512p0(<512 x half> undef, <512 x ptr> align 2 undef, <512 x i1> %v512i1mask)
|
|
; CHECK-SVE-512-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void
|
|
;
|
|
call void @llvm.masked.scatter.v512f16.v512p0(<512 x half> undef, <512 x ptr> undef, i32 0, <512 x i1> %v512i1mask)
|
|
ret void
|
|
}
|