1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc --mtriple=loongarch64 --mattr=+lsx < %s | FileCheck %s
4 declare <16 x i8> @llvm.loongarch.lsx.vld(i8*, i32)
6 define <16 x i8> @lsx_vld(i8* %p) nounwind {
7 ; CHECK-LABEL: lsx_vld:
8 ; CHECK: # %bb.0: # %entry
9 ; CHECK-NEXT: vld $vr0, $a0, 1
12 %res = call <16 x i8> @llvm.loongarch.lsx.vld(i8* %p, i32 1)
16 declare <16 x i8> @llvm.loongarch.lsx.vldx(i8*, i64)
18 define <16 x i8> @lsx_vldx(i8* %p, i64 %b) nounwind {
19 ; CHECK-LABEL: lsx_vldx:
20 ; CHECK: # %bb.0: # %entry
21 ; CHECK-NEXT: vldx $vr0, $a0, $a1
24 %res = call <16 x i8> @llvm.loongarch.lsx.vldx(i8* %p, i64 %b)