xref: /llvm-project/llvm/test/CodeGen/LoongArch/lsx/intrinsic-frstp-non-imm.ll (revision 0c76f46ca676ebecbdf2c9f7e8b05421a234bbed)
1; RUN: not llc --mtriple=loongarch64 --mattr=+lsx < %s 2>&1 | FileCheck %s
2
3declare <16 x i8> @llvm.loongarch.lsx.vfrstpi.b(<16 x i8>, <16 x i8>, i32)
4
5define <16 x i8> @lsx_vfrstpi_b(<16 x i8> %va, <16 x i8> %vb, i32 %c) nounwind {
6; CHECK: immarg operand has non-immediate parameter
7entry:
8  %res = call <16 x i8> @llvm.loongarch.lsx.vfrstpi.b(<16 x i8> %va, <16 x i8> %vb, i32 %c)
9  ret <16 x i8> %res
10}
11
12declare <8 x i16> @llvm.loongarch.lsx.vfrstpi.h(<8 x i16>, <8 x i16>, i32)
13
14define <8 x i16> @lsx_vfrstpi_h(<8 x i16> %va, <8 x i16> %vb, i32 %c) nounwind {
15; CHECK: immarg operand has non-immediate parameter
16entry:
17  %res = call <8 x i16> @llvm.loongarch.lsx.vfrstpi.h(<8 x i16> %va, <8 x i16> %vb, i32 %c)
18  ret <8 x i16> %res
19}
20