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
133 lines
9.2 KiB
C
133 lines
9.2 KiB
C
// RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature +neon -ffreestanding -fsyntax-only -verify %s
|
|
|
|
#include <arm_neon.h>
|
|
// REQUIRES: aarch64-registered-target
|
|
|
|
|
|
void test_saturating_multiply_accumulate_s16(int16x4_t arg_i16x4, int32_t arg_i32, int16_t arg_i16,
|
|
int32x4_t arg_i32x4, int16x8_t arg_i16x8) {
|
|
vqdmlal_lane_s16(arg_i32x4, arg_i16x4, arg_i16x4, 0);
|
|
vqdmlal_lane_s16(arg_i32x4, arg_i16x4, arg_i16x4, 3);
|
|
vqdmlal_lane_s16(arg_i32x4, arg_i16x4, arg_i16x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlal_lane_s16(arg_i32x4, arg_i16x4, arg_i16x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlalh_lane_s16(arg_i32, arg_i16, arg_i16x4, 0);
|
|
vqdmlalh_lane_s16(arg_i32, arg_i16, arg_i16x4, 3);
|
|
vqdmlalh_lane_s16(arg_i32, arg_i16, arg_i16x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlalh_lane_s16(arg_i32, arg_i16, arg_i16x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlal_high_lane_s16(arg_i32x4, arg_i16x8, arg_i16x4, 0);
|
|
vqdmlal_high_lane_s16(arg_i32x4, arg_i16x8, arg_i16x4, 3);
|
|
vqdmlal_high_lane_s16(arg_i32x4, arg_i16x8, arg_i16x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlal_high_lane_s16(arg_i32x4, arg_i16x8, arg_i16x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlal_laneq_s16(arg_i32x4, arg_i16x4, arg_i16x8, 0);
|
|
vqdmlal_laneq_s16(arg_i32x4, arg_i16x4, arg_i16x8, 7);
|
|
vqdmlal_laneq_s16(arg_i32x4, arg_i16x4, arg_i16x8, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlal_laneq_s16(arg_i32x4, arg_i16x4, arg_i16x8, 8); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlalh_laneq_s16(arg_i32, arg_i16, arg_i16x8, 0);
|
|
vqdmlalh_laneq_s16(arg_i32, arg_i16, arg_i16x8, 7);
|
|
vqdmlalh_laneq_s16(arg_i32, arg_i16, arg_i16x8, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlalh_laneq_s16(arg_i32, arg_i16, arg_i16x8, 8); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlal_high_laneq_s16(arg_i32x4, arg_i16x8, arg_i16x8, 0);
|
|
vqdmlal_high_laneq_s16(arg_i32x4, arg_i16x8, arg_i16x8, 7);
|
|
vqdmlal_high_laneq_s16(arg_i32x4, arg_i16x8, arg_i16x8, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlal_high_laneq_s16(arg_i32x4, arg_i16x8, arg_i16x8, 8); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlsl_lane_s16(arg_i32x4, arg_i16x4, arg_i16x4, 0);
|
|
vqdmlsl_lane_s16(arg_i32x4, arg_i16x4, arg_i16x4, 3);
|
|
vqdmlsl_lane_s16(arg_i32x4, arg_i16x4, arg_i16x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlsl_lane_s16(arg_i32x4, arg_i16x4, arg_i16x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlslh_lane_s16(arg_i32, arg_i16, arg_i16x4, 0);
|
|
vqdmlslh_lane_s16(arg_i32, arg_i16, arg_i16x4, 3);
|
|
vqdmlslh_lane_s16(arg_i32, arg_i16, arg_i16x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlslh_lane_s16(arg_i32, arg_i16, arg_i16x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlsl_high_lane_s16(arg_i32x4, arg_i16x8, arg_i16x4, 0);
|
|
vqdmlsl_high_lane_s16(arg_i32x4, arg_i16x8, arg_i16x4, 3);
|
|
vqdmlsl_high_lane_s16(arg_i32x4, arg_i16x8, arg_i16x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlsl_high_lane_s16(arg_i32x4, arg_i16x8, arg_i16x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlsl_laneq_s16(arg_i32x4, arg_i16x4, arg_i16x8, 0);
|
|
vqdmlsl_laneq_s16(arg_i32x4, arg_i16x4, arg_i16x8, 7);
|
|
vqdmlsl_laneq_s16(arg_i32x4, arg_i16x4, arg_i16x8, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlsl_laneq_s16(arg_i32x4, arg_i16x4, arg_i16x8, 8); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlslh_laneq_s16(arg_i32, arg_i16, arg_i16x8, 0);
|
|
vqdmlslh_laneq_s16(arg_i32, arg_i16, arg_i16x8, 7);
|
|
vqdmlslh_laneq_s16(arg_i32, arg_i16, arg_i16x8, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlslh_laneq_s16(arg_i32, arg_i16, arg_i16x8, 8); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlsl_high_laneq_s16(arg_i32x4, arg_i16x8, arg_i16x8, 0);
|
|
vqdmlsl_high_laneq_s16(arg_i32x4, arg_i16x8, arg_i16x8, 7);
|
|
vqdmlsl_high_laneq_s16(arg_i32x4, arg_i16x8, arg_i16x8, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlsl_high_laneq_s16(arg_i32x4, arg_i16x8, arg_i16x8, 8); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
}
|
|
|
|
void test_saturating_multiply_accumulate_s32(int32_t arg_i32, int32x4_t arg_i32x4, int64_t arg_i64, int64x2_t arg_i64x2, int32x2_t arg_i32x2) {
|
|
vqdmlal_lane_s32(arg_i64x2, arg_i32x2, arg_i32x2, 0);
|
|
vqdmlal_lane_s32(arg_i64x2, arg_i32x2, arg_i32x2, 1);
|
|
vqdmlal_lane_s32(arg_i64x2, arg_i32x2, arg_i32x2, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlal_lane_s32(arg_i64x2, arg_i32x2, arg_i32x2, 2); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlals_lane_s32(arg_i64, arg_i32, arg_i32x2, 0);
|
|
vqdmlals_lane_s32(arg_i64, arg_i32, arg_i32x2, 1);
|
|
vqdmlals_lane_s32(arg_i64, arg_i32, arg_i32x2, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlals_lane_s32(arg_i64, arg_i32, arg_i32x2, 2); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlal_high_lane_s32(arg_i64x2, arg_i32x4, arg_i32x2, 0);
|
|
vqdmlal_high_lane_s32(arg_i64x2, arg_i32x4, arg_i32x2, 1);
|
|
vqdmlal_high_lane_s32(arg_i64x2, arg_i32x4, arg_i32x2, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlal_high_lane_s32(arg_i64x2, arg_i32x4, arg_i32x2, 2); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlal_laneq_s32(arg_i64x2, arg_i32x2, arg_i32x4, 0);
|
|
vqdmlal_laneq_s32(arg_i64x2, arg_i32x2, arg_i32x4, 3);
|
|
vqdmlal_laneq_s32(arg_i64x2, arg_i32x2, arg_i32x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlal_laneq_s32(arg_i64x2, arg_i32x2, arg_i32x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlals_laneq_s32(arg_i64, arg_i32, arg_i32x4, 0);
|
|
vqdmlals_laneq_s32(arg_i64, arg_i32, arg_i32x4, 3);
|
|
vqdmlals_laneq_s32(arg_i64, arg_i32, arg_i32x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlals_laneq_s32(arg_i64, arg_i32, arg_i32x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlal_high_laneq_s32(arg_i64x2, arg_i32x4, arg_i32x4, 0);
|
|
vqdmlal_high_laneq_s32(arg_i64x2, arg_i32x4, arg_i32x4, 3);
|
|
vqdmlal_high_laneq_s32(arg_i64x2, arg_i32x4, arg_i32x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlal_high_laneq_s32(arg_i64x2, arg_i32x4, arg_i32x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlsl_lane_s32(arg_i64x2, arg_i32x2, arg_i32x2, 0);
|
|
vqdmlsl_lane_s32(arg_i64x2, arg_i32x2, arg_i32x2, 1);
|
|
vqdmlsl_lane_s32(arg_i64x2, arg_i32x2, arg_i32x2, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlsl_lane_s32(arg_i64x2, arg_i32x2, arg_i32x2, 2); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlsls_lane_s32(arg_i64, arg_i32, arg_i32x2, 0);
|
|
vqdmlsls_lane_s32(arg_i64, arg_i32, arg_i32x2, 1);
|
|
vqdmlsls_lane_s32(arg_i64, arg_i32, arg_i32x2, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlsls_lane_s32(arg_i64, arg_i32, arg_i32x2, 2); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlsl_high_lane_s32(arg_i64x2, arg_i32x4, arg_i32x2, 0);
|
|
vqdmlsl_high_lane_s32(arg_i64x2, arg_i32x4, arg_i32x2, 1);
|
|
vqdmlsl_high_lane_s32(arg_i64x2, arg_i32x4, arg_i32x2, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlsl_high_lane_s32(arg_i64x2, arg_i32x4, arg_i32x2, 2); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlsl_laneq_s32(arg_i64x2, arg_i32x2, arg_i32x4, 0);
|
|
vqdmlsl_laneq_s32(arg_i64x2, arg_i32x2, arg_i32x4, 3);
|
|
vqdmlsl_laneq_s32(arg_i64x2, arg_i32x2, arg_i32x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlsl_laneq_s32(arg_i64x2, arg_i32x2, arg_i32x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlsls_laneq_s32(arg_i64, arg_i32, arg_i32x4, 0);
|
|
vqdmlsls_laneq_s32(arg_i64, arg_i32, arg_i32x4, 3);
|
|
vqdmlsls_laneq_s32(arg_i64, arg_i32, arg_i32x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlsls_laneq_s32(arg_i64, arg_i32, arg_i32x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
vqdmlsl_high_laneq_s32(arg_i64x2, arg_i32x4, arg_i32x4, 0);
|
|
vqdmlsl_high_laneq_s32(arg_i64x2, arg_i32x4, arg_i32x4, 3);
|
|
vqdmlsl_high_laneq_s32(arg_i64x2, arg_i32x4, arg_i32x4, -1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
vqdmlsl_high_laneq_s32(arg_i64x2, arg_i32x4, arg_i32x4, 4); // expected-error-re {{argument value {{.*}} is outside the valid range}}
|
|
|
|
}
|