brintos

brintos / llvm-project-archived public Read only

0
0
Text · 787 B · e8b0aeb Raw
27 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc --mtriple=loongarch64 --mattr=+lasx < %s | FileCheck %s3 4declare <32 x i8> @llvm.loongarch.lasx.xvld(ptr, i32)5 6define <32 x i8> @lasx_xvld(ptr %p) nounwind {7; CHECK-LABEL: lasx_xvld:8; CHECK:       # %bb.0: # %entry9; CHECK-NEXT:    xvld $xr0, $a0, 110; CHECK-NEXT:    ret11entry:12  %res = call <32 x i8> @llvm.loongarch.lasx.xvld(ptr %p, i32 1)13  ret <32 x i8> %res14}15 16declare <32 x i8> @llvm.loongarch.lasx.xvldx(ptr, i64)17 18define <32 x i8> @lasx_xvldx(ptr %p, i64 %b) nounwind {19; CHECK-LABEL: lasx_xvldx:20; CHECK:       # %bb.0: # %entry21; CHECK-NEXT:    xvldx $xr0, $a0, $a122; CHECK-NEXT:    ret23entry:24  %res = call <32 x i8> @llvm.loongarch.lasx.xvldx(ptr %p, i64 %b)25  ret <32 x i8> %res26}27