1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc --mtriple=loongarch64 --mattr=+lasx < %s | FileCheck %s 3 4declare void @llvm.loongarch.lasx.xvstelm.b(<32 x i8>, ptr, i32, i32) 5 6define void @lasx_xvstelm_b(<32 x i8> %va, ptr %p) nounwind { 7; CHECK-LABEL: lasx_xvstelm_b: 8; CHECK: # %bb.0: # %entry 9; CHECK-NEXT: xvstelm.b $xr0, $a0, 1, 1 10; CHECK-NEXT: ret 11entry: 12 call void @llvm.loongarch.lasx.xvstelm.b(<32 x i8> %va, ptr %p, i32 1, i32 1) 13 ret void 14} 15 16declare void @llvm.loongarch.lasx.xvstelm.h(<16 x i16>, ptr, i32, i32) 17 18define void @lasx_xvstelm_h(<16 x i16> %va, ptr %p) nounwind { 19; CHECK-LABEL: lasx_xvstelm_h: 20; CHECK: # %bb.0: # %entry 21; CHECK-NEXT: xvstelm.h $xr0, $a0, 2, 1 22; CHECK-NEXT: ret 23entry: 24 call void @llvm.loongarch.lasx.xvstelm.h(<16 x i16> %va, ptr %p, i32 2, i32 1) 25 ret void 26} 27 28declare void @llvm.loongarch.lasx.xvstelm.w(<8 x i32>, ptr, i32, i32) 29 30define void @lasx_xvstelm_w(<8 x i32> %va, ptr %p) nounwind { 31; CHECK-LABEL: lasx_xvstelm_w: 32; CHECK: # %bb.0: # %entry 33; CHECK-NEXT: xvstelm.w $xr0, $a0, 4, 1 34; CHECK-NEXT: ret 35entry: 36 call void @llvm.loongarch.lasx.xvstelm.w(<8 x i32> %va, ptr %p, i32 4, i32 1) 37 ret void 38} 39 40declare void @llvm.loongarch.lasx.xvstelm.d(<4 x i64>, ptr, i32, i32) 41 42define void @lasx_xvstelm_d(<4 x i64> %va, ptr %p) nounwind { 43; CHECK-LABEL: lasx_xvstelm_d: 44; CHECK: # %bb.0: # %entry 45; CHECK-NEXT: xvstelm.d $xr0, $a0, 8, 1 46; CHECK-NEXT: ret 47entry: 48 call void @llvm.loongarch.lasx.xvstelm.d(<4 x i64> %va, ptr %p, i32 8, i32 1) 49 ret void 50} 51