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