1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; RUN: llc < %s -mtriple=riscv64 -mattr=+v | FileCheck %s
4 define void @snork(ptr %arg, <vscale x 2 x i64> %arg1) {
6 ; CHECK: # %bb.0: # %bb
7 ; CHECK-NEXT: csrr a1, vlenb
8 ; CHECK-NEXT: vsetvli a2, zero, e64, m2, ta, ma
9 ; CHECK-NEXT: vmul.vx v8, v8, a1
10 ; CHECK-NEXT: vsetvli zero, zero, e32, m1, ta, ma
11 ; CHECK-NEXT: vmv.v.i v10, 1
12 ; CHECK-NEXT: vsetivli zero, 4, e32, m1, ta, ma
13 ; CHECK-NEXT: vsoxei64.v v10, (a0), v8
16 %getelementptr = getelementptr inbounds <vscale x 2 x i32>, ptr %arg, <vscale x 2 x i64> %arg1
17 tail call void @llvm.vp.scatter.nxv2i32.nxv2p0(<vscale x 2 x i32> splat (i32 1), <vscale x 2 x ptr> align 4 %getelementptr, <vscale x 2 x i1> splat (i1 true), i32 4)
21 declare void @llvm.vp.scatter.nxv2i32.nxv2p0(<vscale x 2 x i32>, <vscale x 2 x ptr>, <vscale x 2 x i1>, i32)