File: intrinsic-stelm.ll

package info (click to toggle)
llvm-toolchain-18 1%3A18.1.8-18
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 1,908,340 kB
  • sloc: cpp: 6,667,937; ansic: 1,440,452; asm: 883,619; python: 230,549; objc: 76,880; f90: 74,238; lisp: 35,989; pascal: 16,571; sh: 10,229; perl: 7,459; ml: 5,047; awk: 3,523; makefile: 2,987; javascript: 2,149; xml: 892; fortran: 649; cs: 573
file content (50 lines) | stat: -rw-r--r-- 1,558 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc --mtriple=loongarch64 --mattr=+lsx < %s | FileCheck %s

declare void @llvm.loongarch.lsx.vstelm.b(<16 x i8>, i8*, i32, i32)

define void @lsx_vstelm_b(<16 x i8> %va, i8* %p) nounwind {
; CHECK-LABEL: lsx_vstelm_b:
; CHECK:       # %bb.0: # %entry
; CHECK-NEXT:    vstelm.b $vr0, $a0, 1, 15
; CHECK-NEXT:    ret
entry:
  call void @llvm.loongarch.lsx.vstelm.b(<16 x i8> %va, i8* %p, i32 1, i32 15)
  ret void
}

declare void @llvm.loongarch.lsx.vstelm.h(<8 x i16>, i8*, i32, i32)

define void @lsx_vstelm_h(<8 x i16> %va, i8* %p) nounwind {
; CHECK-LABEL: lsx_vstelm_h:
; CHECK:       # %bb.0: # %entry
; CHECK-NEXT:    vstelm.h $vr0, $a0, 2, 7
; CHECK-NEXT:    ret
entry:
  call void @llvm.loongarch.lsx.vstelm.h(<8 x i16> %va, i8* %p, i32 2, i32 7)
  ret void
}

declare void @llvm.loongarch.lsx.vstelm.w(<4 x i32>, i8*, i32, i32)

define void @lsx_vstelm_w(<4 x i32> %va, i8* %p) nounwind {
; CHECK-LABEL: lsx_vstelm_w:
; CHECK:       # %bb.0: # %entry
; CHECK-NEXT:    vstelm.w $vr0, $a0, 4, 3
; CHECK-NEXT:    ret
entry:
  call void @llvm.loongarch.lsx.vstelm.w(<4 x i32> %va, i8* %p, i32 4, i32 3)
  ret void
}

declare void @llvm.loongarch.lsx.vstelm.d(<2 x i64>, i8*, i32, i32)

define void @lsx_vstelm_d(<2 x i64> %va, i8* %p) nounwind {
; CHECK-LABEL: lsx_vstelm_d:
; CHECK:       # %bb.0: # %entry
; CHECK-NEXT:    vstelm.d $vr0, $a0, 8, 1
; CHECK-NEXT:    ret
entry:
  call void @llvm.loongarch.lsx.vstelm.d(<2 x i64> %va, i8* %p, i32 8, i32 1)
  ret void
}