1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc --mtriple=loongarch64 --mattr=+lasx < %s | FileCheck %s
4 declare void @llvm.loongarch.lasx.xvst(<32 x i8>, ptr, i32)
6 define void @lasx_xvst(<32 x i8> %va, ptr %p) nounwind {
7 ; CHECK-LABEL: lasx_xvst:
8 ; CHECK: # %bb.0: # %entry
9 ; CHECK-NEXT: xvst $xr0, $a0, 1
12 call void @llvm.loongarch.lasx.xvst(<32 x i8> %va, ptr %p, i32 1)
16 declare void @llvm.loongarch.lasx.xvstx(<32 x i8>, ptr, i64)
18 define void @lasx_xvstx(<32 x i8> %va, ptr %p) nounwind {
19 ; CHECK-LABEL: lasx_xvstx:
20 ; CHECK: # %bb.0: # %entry
21 ; CHECK-NEXT: ori $a1, $zero, 1
22 ; CHECK-NEXT: xvstx $xr0, $a0, $a1
25 call void @llvm.loongarch.lasx.xvstx(<32 x i8> %va, ptr %p, i64 1)