Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/AArch64/v8.5a-neon-frint3264-intrinsic.ll
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

166 lines
5.3 KiB
LLVM

; RUN: llc < %s -mtriple=aarch64 -mattr=+v8.5a | FileCheck %s
declare <2 x float> @llvm.aarch64.neon.frint32x.v2f32(<2 x float>)
declare <4 x float> @llvm.aarch64.neon.frint32x.v4f32(<4 x float>)
declare <2 x float> @llvm.aarch64.neon.frint32z.v2f32(<2 x float>)
declare <4 x float> @llvm.aarch64.neon.frint32z.v4f32(<4 x float>)
define dso_local <2 x float> @t_vrnd32x_f32(<2 x float> %a) {
; CHECK-LABEL: t_vrnd32x_f32:
; CHECK: frint32x v0.2s, v0.2s
; CHECK-NEXT: ret
entry:
%val = tail call <2 x float> @llvm.aarch64.neon.frint32x.v2f32(<2 x float> %a)
ret <2 x float> %val
}
define dso_local <4 x float> @t_vrnd32xq_f32(<4 x float> %a) {
; CHECK-LABEL: t_vrnd32xq_f32:
; CHECK: frint32x v0.4s, v0.4s
; CHECK-NEXT: ret
entry:
%val = tail call <4 x float> @llvm.aarch64.neon.frint32x.v4f32(<4 x float> %a)
ret <4 x float> %val
}
define dso_local <2 x float> @t_vrnd32z_f32(<2 x float> %a) {
; CHECK-LABEL: t_vrnd32z_f32:
; CHECK: frint32z v0.2s, v0.2s
; CHECK-NEXT: ret
entry:
%val = tail call <2 x float> @llvm.aarch64.neon.frint32z.v2f32(<2 x float> %a)
ret <2 x float> %val
}
define dso_local <4 x float> @t_vrnd32zq_f32(<4 x float> %a) {
; CHECK-LABEL: t_vrnd32zq_f32:
; CHECK: frint32z v0.4s, v0.4s
; CHECK-NEXT: ret
entry:
%val = tail call <4 x float> @llvm.aarch64.neon.frint32z.v4f32(<4 x float> %a)
ret <4 x float> %val
}
declare <2 x float> @llvm.aarch64.neon.frint64x.v2f32(<2 x float>)
declare <4 x float> @llvm.aarch64.neon.frint64x.v4f32(<4 x float>)
declare <2 x float> @llvm.aarch64.neon.frint64z.v2f32(<2 x float>)
declare <4 x float> @llvm.aarch64.neon.frint64z.v4f32(<4 x float>)
define dso_local <2 x float> @t_vrnd64x_f32(<2 x float> %a) {
; CHECK-LABEL: t_vrnd64x_f32:
; CHECK: frint64x v0.2s, v0.2s
; CHECK-NEXT: ret
entry:
%val = tail call <2 x float> @llvm.aarch64.neon.frint64x.v2f32(<2 x float> %a)
ret <2 x float> %val
}
define dso_local <4 x float> @t_vrnd64xq_f32(<4 x float> %a) {
; CHECK-LABEL: t_vrnd64xq_f32:
; CHECK: frint64x v0.4s, v0.4s
; CHECK-NEXT: ret
entry:
%val = tail call <4 x float> @llvm.aarch64.neon.frint64x.v4f32(<4 x float> %a)
ret <4 x float> %val
}
define dso_local <2 x float> @t_vrnd64z_f32(<2 x float> %a) {
; CHECK-LABEL: t_vrnd64z_f32:
; CHECK: frint64z v0.2s, v0.2s
; CHECK-NEXT: ret
entry:
%val = tail call <2 x float> @llvm.aarch64.neon.frint64z.v2f32(<2 x float> %a)
ret <2 x float> %val
}
define dso_local <4 x float> @t_vrnd64zq_f32(<4 x float> %a) {
; CHECK-LABEL: t_vrnd64zq_f32:
; CHECK: frint64z v0.4s, v0.4s
; CHECK-NEXT: ret
entry:
%val = tail call <4 x float> @llvm.aarch64.neon.frint64z.v4f32(<4 x float> %a)
ret <4 x float> %val
}
declare <1 x double> @llvm.aarch64.neon.frint32x.v1f64(<1 x double>)
declare <2 x double> @llvm.aarch64.neon.frint32x.v2f64(<2 x double>)
declare <1 x double> @llvm.aarch64.neon.frint32z.v1f64(<1 x double>)
declare <2 x double> @llvm.aarch64.neon.frint32z.v2f64(<2 x double>)
define dso_local <1 x double> @t_vrnd32x_f64(<1 x double> %a) {
; CHECK-LABEL: t_vrnd32x_f64:
; CHECK: frint32x d0, d0
; CHECK-NEXT: ret
entry:
%val = tail call <1 x double> @llvm.aarch64.neon.frint32x.v1f64(<1 x double> %a)
ret <1 x double> %val
}
define dso_local <2 x double> @t_vrnd32xq_f64(<2 x double> %a) {
; CHECK-LABEL: t_vrnd32xq_f64:
; CHECK: frint32x v0.2d, v0.2d
; CHECK-NEXT: ret
entry:
%val = tail call <2 x double> @llvm.aarch64.neon.frint32x.v2f64(<2 x double> %a)
ret <2 x double> %val
}
define dso_local <1 x double> @t_vrnd32z_f64(<1 x double> %a) {
; CHECK-LABEL: t_vrnd32z_f64:
; CHECK: frint32z d0, d0
; CHECK-NEXT: ret
entry:
%val = tail call <1 x double> @llvm.aarch64.neon.frint32z.v1f64(<1 x double> %a)
ret <1 x double> %val
}
define dso_local <2 x double> @t_vrnd32zq_f64(<2 x double> %a) {
; CHECK-LABEL: t_vrnd32zq_f64:
; CHECK: frint32z v0.2d, v0.2d
; CHECK-NEXT: ret
entry:
%val = tail call <2 x double> @llvm.aarch64.neon.frint32z.v2f64(<2 x double> %a)
ret <2 x double> %val
}
declare <1 x double> @llvm.aarch64.neon.frint64x.v1f64(<1 x double>)
declare <2 x double> @llvm.aarch64.neon.frint64x.v2f64(<2 x double>)
declare <1 x double> @llvm.aarch64.neon.frint64z.v1f64(<1 x double>)
declare <2 x double> @llvm.aarch64.neon.frint64z.v2f64(<2 x double>)
define dso_local <1 x double> @t_vrnd64x_f64(<1 x double> %a) {
; CHECK-LABEL: t_vrnd64x_f64:
; CHECK: frint64x d0, d0
; CHECK-NEXT: ret
entry:
%val = tail call <1 x double> @llvm.aarch64.neon.frint64x.v1f64(<1 x double> %a)
ret <1 x double> %val
}
define dso_local <2 x double> @t_vrnd64xq_f64(<2 x double> %a) {
; CHECK-LABEL: t_vrnd64xq_f64:
; CHECK: frint64x v0.2d, v0.2d
; CHECK-NEXT: ret
entry:
%val = tail call <2 x double> @llvm.aarch64.neon.frint64x.v2f64(<2 x double> %a)
ret <2 x double> %val
}
define dso_local <1 x double> @t_vrnd64z_f64(<1 x double> %a) {
; CHECK-LABEL: t_vrnd64z_f64:
; CHECK: frint64z d0, d0
; CHECK-NEXT: ret
entry:
%val = tail call <1 x double> @llvm.aarch64.neon.frint64z.v1f64(<1 x double> %a)
ret <1 x double> %val
}
define dso_local <2 x double> @t_vrnd64zq_f64(<2 x double> %a) {
; CHECK-LABEL: t_vrnd64zq_f64:
; CHECK: frint64z v0.2d, v0.2d
; CHECK-NEXT: ret
entry:
%val = tail call <2 x double> @llvm.aarch64.neon.frint64z.v2f64(<2 x double> %a)
ret <2 x double> %val
}