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
84 lines
3.2 KiB
LLVM
84 lines
3.2 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -mtriple=riscv32 -mattr=+f,+d,+zfbfmin,+zvfbfmin,+v -target-abi ilp32d -verify-machineinstrs < %s \
|
|
; RUN: | FileCheck %s
|
|
; RUN: llc -mtriple=riscv64 -mattr=+f,+d,+zfbfmin,+zvfbfmin,+v -target-abi lp64d -verify-machineinstrs < %s \
|
|
; RUN: | FileCheck %s
|
|
; RUN: llc -mtriple=riscv32 -mattr=+f,+d,+zvfbfmin,+v -target-abi ilp32d -verify-machineinstrs < %s \
|
|
; RUN: | FileCheck %s --check-prefixes=NOZFBFMIN
|
|
; RUN: llc -mtriple=riscv64 -mattr=+f,+d,+zvfbfmin,+v -target-abi lp64d -verify-machineinstrs < %s \
|
|
; RUN: | FileCheck %s --check-prefixes=NOZFBFMIN
|
|
; RUN: llc -mtriple=riscv32 -mattr=+f,+d,+experimental-zvfbfa,+v -target-abi ilp32d -verify-machineinstrs < %s \
|
|
; RUN: | FileCheck %s --check-prefixes=ZVFBFA
|
|
; RUN: llc -mtriple=riscv64 -mattr=+f,+d,+experimental-zvfbfa,+v -target-abi lp64d -verify-machineinstrs < %s \
|
|
; RUN: | FileCheck %s --check-prefixes=ZVFBFA
|
|
|
|
define <vscale x 8 x bfloat> @vsplat_nxv8bf16(bfloat %f) {
|
|
; CHECK-LABEL: vsplat_nxv8bf16:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: fmv.x.h a0, fa0
|
|
; CHECK-NEXT: vsetvli a1, zero, e16, m2, ta, ma
|
|
; CHECK-NEXT: vmv.v.x v8, a0
|
|
; CHECK-NEXT: ret
|
|
;
|
|
; NOZFBFMIN-LABEL: vsplat_nxv8bf16:
|
|
; NOZFBFMIN: # %bb.0:
|
|
; NOZFBFMIN-NEXT: fmv.x.w a0, fa0
|
|
; NOZFBFMIN-NEXT: vsetvli a1, zero, e16, m2, ta, ma
|
|
; NOZFBFMIN-NEXT: vmv.v.x v8, a0
|
|
; NOZFBFMIN-NEXT: ret
|
|
;
|
|
; ZVFBFA-LABEL: vsplat_nxv8bf16:
|
|
; ZVFBFA: # %bb.0:
|
|
; ZVFBFA-NEXT: vsetvli a0, zero, e16alt, m2, ta, ma
|
|
; ZVFBFA-NEXT: vfmv.v.f v8, fa0
|
|
; ZVFBFA-NEXT: ret
|
|
%head = insertelement <vscale x 8 x bfloat> poison, bfloat %f, i32 0
|
|
%splat = shufflevector <vscale x 8 x bfloat> %head, <vscale x 8 x bfloat> poison, <vscale x 8 x i32> zeroinitializer
|
|
ret <vscale x 8 x bfloat> %splat
|
|
}
|
|
|
|
define <vscale x 8 x bfloat> @vsplat_zero_nxv8bf16() {
|
|
; CHECK-LABEL: vsplat_zero_nxv8bf16:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: vsetvli a0, zero, e16, m2, ta, ma
|
|
; CHECK-NEXT: vmv.v.i v8, 0
|
|
; CHECK-NEXT: ret
|
|
;
|
|
; NOZFBFMIN-LABEL: vsplat_zero_nxv8bf16:
|
|
; NOZFBFMIN: # %bb.0:
|
|
; NOZFBFMIN-NEXT: vsetvli a0, zero, e16, m2, ta, ma
|
|
; NOZFBFMIN-NEXT: vmv.v.i v8, 0
|
|
; NOZFBFMIN-NEXT: ret
|
|
;
|
|
; ZVFBFA-LABEL: vsplat_zero_nxv8bf16:
|
|
; ZVFBFA: # %bb.0:
|
|
; ZVFBFA-NEXT: vsetvli a0, zero, e16, m2, ta, ma
|
|
; ZVFBFA-NEXT: vmv.v.i v8, 0
|
|
; ZVFBFA-NEXT: ret
|
|
ret <vscale x 8 x bfloat> splat (bfloat zeroinitializer)
|
|
}
|
|
|
|
define <vscale x 8 x bfloat> @vsplat_negzero_nxv8bf16() {
|
|
; CHECK-LABEL: vsplat_negzero_nxv8bf16:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: lui a0, 1048568
|
|
; CHECK-NEXT: vsetvli a1, zero, e16, m2, ta, ma
|
|
; CHECK-NEXT: vmv.v.x v8, a0
|
|
; CHECK-NEXT: ret
|
|
;
|
|
; NOZFBFMIN-LABEL: vsplat_negzero_nxv8bf16:
|
|
; NOZFBFMIN: # %bb.0:
|
|
; NOZFBFMIN-NEXT: lui a0, 1048568
|
|
; NOZFBFMIN-NEXT: vsetvli a1, zero, e16, m2, ta, ma
|
|
; NOZFBFMIN-NEXT: vmv.v.x v8, a0
|
|
; NOZFBFMIN-NEXT: ret
|
|
;
|
|
; ZVFBFA-LABEL: vsplat_negzero_nxv8bf16:
|
|
; ZVFBFA: # %bb.0:
|
|
; ZVFBFA-NEXT: lui a0, 1048568
|
|
; ZVFBFA-NEXT: vsetvli a1, zero, e16, m2, ta, ma
|
|
; ZVFBFA-NEXT: vmv.v.x v8, a0
|
|
; ZVFBFA-NEXT: ret
|
|
ret <vscale x 8 x bfloat> splat (bfloat -0.0)
|
|
}
|