35 lines · plain
1; RUN: not llc --mtriple=loongarch32 --mattr=+32s,+lasx < %s 2>&1 | FileCheck %s2; RUN: not llc --mtriple=loongarch64 --mattr=+lasx < %s 2>&1 | FileCheck %s3 4declare i32 @llvm.loongarch.lasx.xvpickve2gr.w(<8 x i32>, i32)5 6define i32 @lasx_xvpickve2gr_w_lo(<8 x i32> %va) nounwind {7; CHECK: llvm.loongarch.lasx.xvpickve2gr.w: argument out of range8entry:9 %res = call i32 @llvm.loongarch.lasx.xvpickve2gr.w(<8 x i32> %va, i32 -1)10 ret i32 %res11}12 13define i32 @lasx_xvpickve2gr_w_hi(<8 x i32> %va) nounwind {14; CHECK: llvm.loongarch.lasx.xvpickve2gr.w: argument out of range15entry:16 %res = call i32 @llvm.loongarch.lasx.xvpickve2gr.w(<8 x i32> %va, i32 8)17 ret i32 %res18}19 20declare i32 @llvm.loongarch.lasx.xvpickve2gr.wu(<8 x i32>, i32)21 22define i32 @lasx_xvpickve2gr_wu_lo(<8 x i32> %va) nounwind {23; CHECK: llvm.loongarch.lasx.xvpickve2gr.wu: argument out of range24entry:25 %res = call i32 @llvm.loongarch.lasx.xvpickve2gr.wu(<8 x i32> %va, i32 -1)26 ret i32 %res27}28 29define i32 @lasx_xvpickve2gr_wu_hi(<8 x i32> %va) nounwind {30; CHECK: llvm.loongarch.lasx.xvpickve2gr.wu: argument out of range31entry:32 %res = call i32 @llvm.loongarch.lasx.xvpickve2gr.wu(<8 x i32> %va, i32 8)33 ret i32 %res34}35