1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=riscv32 -mattr=+f,+d,+zfbfmin,+zvfbfmin,+v -target-abi ilp32d -verify-machineinstrs < %s \
4 ; RUN: llc -mtriple=riscv64 -mattr=+f,+d,+zfbfmin,+zvfbfmin,+v -target-abi lp64d -verify-machineinstrs < %s \
7 define <vscale x 8 x bfloat> @vsplat_zero_nxv8f16() {
8 ; CHECK-LABEL: vsplat_zero_nxv8f16:
10 ; CHECK-NEXT: vsetvli a0, zero, e16, m2, ta, ma
11 ; CHECK-NEXT: vmv.v.i v8, 0
13 ret <vscale x 8 x bfloat> splat (bfloat zeroinitializer)
16 define <vscale x 8 x bfloat> @vsplat_negzero_nxv8f16() {
17 ; CHECK-LABEL: vsplat_negzero_nxv8f16:
19 ; CHECK-NEXT: lui a0, 1048568
20 ; CHECK-NEXT: vsetvli a1, zero, e16, m2, ta, ma
21 ; CHECK-NEXT: vmv.v.x v8, a0
23 ret <vscale x 8 x bfloat> splat (bfloat -0.0)