xref: /llvm-project/llvm/test/CodeGen/LoongArch/lasx/intrinsic-perm.ll (revision 83311b2b5d1b9869f9a7b265994394ea898448a2)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc --mtriple=loongarch64 --mattr=+lasx < %s | FileCheck %s
3
4declare <8 x i32> @llvm.loongarch.lasx.xvperm.w(<8 x i32>, <8 x i32>)
5
6define <8 x i32> @lasx_xvperm_w(<8 x i32> %va, <8 x i32> %vb) nounwind {
7; CHECK-LABEL: lasx_xvperm_w:
8; CHECK:       # %bb.0: # %entry
9; CHECK-NEXT:    xvperm.w $xr0, $xr0, $xr1
10; CHECK-NEXT:    ret
11entry:
12  %res = call <8 x i32> @llvm.loongarch.lasx.xvperm.w(<8 x i32> %va, <8 x i32> %vb)
13  ret <8 x i32> %res
14}
15