1 ; RUN: not llc --mtriple=loongarch64 --mattr=+lsx < %s 2>&1 | FileCheck %s
3 declare <2 x i64> @llvm.loongarch.lsx.vldi(i32)
5 define <2 x i64> @lsx_vldi_lo() nounwind {
6 ; CHECK: llvm.loongarch.lsx.vldi: argument out of range
8 %res = call <2 x i64> @llvm.loongarch.lsx.vldi(i32 -4097)
12 define <2 x i64> @lsx_vldi_hi() nounwind {
13 ; CHECK: llvm.loongarch.lsx.vldi: argument out of range
15 %res = call <2 x i64> @llvm.loongarch.lsx.vldi(i32 4096)
19 declare <16 x i8> @llvm.loongarch.lsx.vrepli.b(i32)
21 define <16 x i8> @lsx_vrepli_b_lo() nounwind {
22 ; CHECK: llvm.loongarch.lsx.vrepli.b: argument out of range
24 %res = call <16 x i8> @llvm.loongarch.lsx.vrepli.b(i32 -513)
28 define <16 x i8> @lsx_vrepli_b_hi() nounwind {
29 ; CHECK: llvm.loongarch.lsx.vrepli.b: argument out of range
31 %res = call <16 x i8> @llvm.loongarch.lsx.vrepli.b(i32 512)
35 declare <8 x i16> @llvm.loongarch.lsx.vrepli.h(i32)
37 define <8 x i16> @lsx_vrepli_h_lo() nounwind {
38 ; CHECK: llvm.loongarch.lsx.vrepli.h: argument out of range
40 %res = call <8 x i16> @llvm.loongarch.lsx.vrepli.h(i32 -513)
44 define <8 x i16> @lsx_vrepli_h_hi() nounwind {
45 ; CHECK: llvm.loongarch.lsx.vrepli.h: argument out of range
47 %res = call <8 x i16> @llvm.loongarch.lsx.vrepli.h(i32 512)
51 declare <4 x i32> @llvm.loongarch.lsx.vrepli.w(i32)
53 define <4 x i32> @lsx_vrepli_w_lo() nounwind {
54 ; CHECK: llvm.loongarch.lsx.vrepli.w: argument out of range
56 %res = call <4 x i32> @llvm.loongarch.lsx.vrepli.w(i32 -513)
60 define <4 x i32> @lsx_vrepli_w_hi() nounwind {
61 ; CHECK: llvm.loongarch.lsx.vrepli.w: argument out of range
63 %res = call <4 x i32> @llvm.loongarch.lsx.vrepli.w(i32 512)
67 declare <2 x i64> @llvm.loongarch.lsx.vrepli.d(i32)
69 define <2 x i64> @lsx_vrepli_d_lo() nounwind {
70 ; CHECK: llvm.loongarch.lsx.vrepli.d: argument out of range
72 %res = call <2 x i64> @llvm.loongarch.lsx.vrepli.d(i32 -513)
76 define <2 x i64> @lsx_vrepli_d_hi() nounwind {
77 ; CHECK: llvm.loongarch.lsx.vrepli.d: argument out of range
79 %res = call <2 x i64> @llvm.loongarch.lsx.vrepli.d(i32 512)