1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc --mtriple=loongarch64 --mattr=+lasx < %s | FileCheck %s
7 declare i32 @llvm.loongarch.lasx.xvpickve2gr.w(<8 x i32>, i32)
9 define i32 @lasx_xvpickve2gr_w(<8 x i32> %va) nounwind {
10 ; CHECK-LABEL: lasx_xvpickve2gr_w:
11 ; CHECK: # %bb.0: # %entry
12 ; CHECK-NEXT: xvpickve2gr.w $a0, $xr0, 1
15 %res = call i32 @llvm.loongarch.lasx.xvpickve2gr.w(<8 x i32> %va, i32 1)
19 declare i64 @llvm.loongarch.lasx.xvpickve2gr.d(<4 x i64>, i32)
21 define i64 @lasx_xvpickve2gr_d(<4 x i64> %va) nounwind {
22 ; CHECK-LABEL: lasx_xvpickve2gr_d:
23 ; CHECK: # %bb.0: # %entry
24 ; CHECK-NEXT: xvpickve2gr.d $a0, $xr0, 1
27 %res = call i64 @llvm.loongarch.lasx.xvpickve2gr.d(<4 x i64> %va, i32 1)
31 declare i32 @llvm.loongarch.lasx.xvpickve2gr.wu(<8 x i32>, i32)
33 define i32 @lasx_xvpickve2gr_wu(<8 x i32> %va) nounwind {
34 ; CHECK-LABEL: lasx_xvpickve2gr_wu:
35 ; CHECK: # %bb.0: # %entry
36 ; CHECK-NEXT: xvpickve2gr.wu $a0, $xr0, 1
39 %res = call i32 @llvm.loongarch.lasx.xvpickve2gr.wu(<8 x i32> %va, i32 1)
43 declare i64 @llvm.loongarch.lasx.xvpickve2gr.du(<4 x i64>, i32)
45 define i64 @lasx_xvpickve2gr_du(<4 x i64> %va) nounwind {
46 ; CHECK-LABEL: lasx_xvpickve2gr_du:
47 ; CHECK: # %bb.0: # %entry
48 ; CHECK-NEXT: xvpickve2gr.du $a0, $xr0, 1
51 %res = call i64 @llvm.loongarch.lasx.xvpickve2gr.du(<4 x i64> %va, i32 1)