26 lines
794 B
LLVM
26 lines
794 B
LLVM
; 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.vst(<16 x i8>, i8*, i32)
|
|
|
|
define void @lsx_vst(<16 x i8> %va, i8* %p) nounwind {
|
|
; CHECK-LABEL: lsx_vst:
|
|
; CHECK: # %bb.0: # %entry
|
|
; CHECK-NEXT: vst $vr0, $a0, -2048
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
call void @llvm.loongarch.lsx.vst(<16 x i8> %va, i8* %p, i32 -2048)
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.loongarch.lsx.vstx(<16 x i8>, i8*, i64)
|
|
|
|
define void @lsx_vstx(<16 x i8> %va, i8* %p, i64 %c) nounwind {
|
|
; CHECK-LABEL: lsx_vstx:
|
|
; CHECK: # %bb.0: # %entry
|
|
; CHECK-NEXT: vstx $vr0, $a0, $a1
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
call void @llvm.loongarch.lsx.vstx(<16 x i8> %va, i8* %p, i64 %c)
|
|
ret void
|
|
}
|