brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 87c5946 Raw
52 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lasx < %s | FileCheck %s3; RUN: llc --mtriple=loongarch64 --mattr=+lasx < %s | FileCheck %s4 5declare void @llvm.loongarch.lasx.xvstelm.b(<32 x i8>, ptr, i32, i32)6 7define void @lasx_xvstelm_b(<32 x i8> %va, ptr %p) nounwind {8; CHECK-LABEL: lasx_xvstelm_b:9; CHECK:       # %bb.0: # %entry10; CHECK-NEXT:    xvstelm.b $xr0, $a0, 1, 111; CHECK-NEXT:    ret12entry:13  call void @llvm.loongarch.lasx.xvstelm.b(<32 x i8> %va, ptr %p, i32 1, i32 1)14  ret void15}16 17declare void @llvm.loongarch.lasx.xvstelm.h(<16 x i16>, ptr, i32, i32)18 19define void @lasx_xvstelm_h(<16 x i16> %va, ptr %p) nounwind {20; CHECK-LABEL: lasx_xvstelm_h:21; CHECK:       # %bb.0: # %entry22; CHECK-NEXT:    xvstelm.h $xr0, $a0, 2, 123; CHECK-NEXT:    ret24entry:25  call void @llvm.loongarch.lasx.xvstelm.h(<16 x i16> %va, ptr %p, i32 2, i32 1)26  ret void27}28 29declare void @llvm.loongarch.lasx.xvstelm.w(<8 x i32>, ptr, i32, i32)30 31define void @lasx_xvstelm_w(<8 x i32> %va, ptr %p) nounwind {32; CHECK-LABEL: lasx_xvstelm_w:33; CHECK:       # %bb.0: # %entry34; CHECK-NEXT:    xvstelm.w $xr0, $a0, 4, 135; CHECK-NEXT:    ret36entry:37  call void @llvm.loongarch.lasx.xvstelm.w(<8 x i32> %va, ptr %p, i32 4, i32 1)38  ret void39}40 41declare void @llvm.loongarch.lasx.xvstelm.d(<4 x i64>, ptr, i32, i32)42 43define void @lasx_xvstelm_d(<4 x i64> %va, ptr %p) nounwind {44; CHECK-LABEL: lasx_xvstelm_d:45; CHECK:       # %bb.0: # %entry46; CHECK-NEXT:    xvstelm.d $xr0, $a0, 8, 147; CHECK-NEXT:    ret48entry:49  call void @llvm.loongarch.lasx.xvstelm.d(<4 x i64> %va, ptr %p, i32 8, i32 1)50  ret void51}52