brintos

brintos / llvm-project-archived public Read only

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