1 ; RUN: not llc --mtriple=loongarch64 --mattr=+lasx < %s 2>&1 | FileCheck %s
3 declare <4 x i64> @llvm.loongarch.lasx.xvldi(i32)
5 define <4 x i64> @lasx_xvldi_lo() nounwind {
6 ; CHECK: llvm.loongarch.lasx.xvldi: argument out of range
8 %res = call <4 x i64> @llvm.loongarch.lasx.xvldi(i32 -4097)
12 define <4 x i64> @lasx_xvldi_hi() nounwind {
13 ; CHECK: llvm.loongarch.lasx.xvldi: argument out of range
15 %res = call <4 x i64> @llvm.loongarch.lasx.xvldi(i32 4096)
19 declare <32 x i8> @llvm.loongarch.lasx.xvrepli.b(i32)
21 define <32 x i8> @lasx_xvrepli_b_lo() nounwind {
22 ; CHECK: llvm.loongarch.lasx.xvrepli.b: argument out of range
24 %res = call <32 x i8> @llvm.loongarch.lasx.xvrepli.b(i32 -513)
28 define <32 x i8> @lasx_xvrepli_b_hi() nounwind {
29 ; CHECK: llvm.loongarch.lasx.xvrepli.b: argument out of range
31 %res = call <32 x i8> @llvm.loongarch.lasx.xvrepli.b(i32 512)
35 declare <16 x i16> @llvm.loongarch.lasx.xvrepli.h(i32)
37 define <16 x i16> @lasx_xvrepli_h_lo() nounwind {
38 ; CHECK: llvm.loongarch.lasx.xvrepli.h: argument out of range
40 %res = call <16 x i16> @llvm.loongarch.lasx.xvrepli.h(i32 -513)
44 define <16 x i16> @lasx_xvrepli_h_hi() nounwind {
45 ; CHECK: llvm.loongarch.lasx.xvrepli.h: argument out of range
47 %res = call <16 x i16> @llvm.loongarch.lasx.xvrepli.h(i32 512)
51 declare <8 x i32> @llvm.loongarch.lasx.xvrepli.w(i32)
53 define <8 x i32> @lasx_xvrepli_w_lo() nounwind {
54 ; CHECK: llvm.loongarch.lasx.xvrepli.w: argument out of range
56 %res = call <8 x i32> @llvm.loongarch.lasx.xvrepli.w(i32 -513)
60 define <8 x i32> @lasx_xvrepli_w_hi() nounwind {
61 ; CHECK: llvm.loongarch.lasx.xvrepli.w: argument out of range
63 %res = call <8 x i32> @llvm.loongarch.lasx.xvrepli.w(i32 512)
67 declare <4 x i64> @llvm.loongarch.lasx.xvrepli.d(i32)
69 define <4 x i64> @lasx_xvrepli_d_lo() nounwind {
70 ; CHECK: llvm.loongarch.lasx.xvrepli.d: argument out of range
72 %res = call <4 x i64> @llvm.loongarch.lasx.xvrepli.d(i32 -513)
76 define <4 x i64> @lasx_xvrepli_d_hi() nounwind {
77 ; CHECK: llvm.loongarch.lasx.xvrepli.d: argument out of range
79 %res = call <4 x i64> @llvm.loongarch.lasx.xvrepli.d(i32 512)