1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=riscv64 -mattr=+v | FileCheck %s
4 declare void @llvm.riscv.masked.strided.store.nxv16i8.p0.i64(<vscale x 16 x i8>, ptr, i64, <vscale x 16 x i1>)
6 define void @test(<vscale x 16 x i16> %value, <vscale x 16 x i1> %mask) {
9 ; CHECK-NEXT: vsetvli a0, zero, e8, m2, ta, ma
10 ; CHECK-NEXT: vnsrl.wi v12, v8, 0
11 ; CHECK-NEXT: vse8.v v12, (zero), v0.t
13 %trunc = trunc <vscale x 16 x i16> %value to <vscale x 16 x i8>
14 call void @llvm.riscv.masked.strided.store.nxv16i8.p0.i64(<vscale x 16 x i8> %trunc, ptr null, i64 1, <vscale x 16 x i1> %mask)