llvm-project/llvm/test/CodeGen/LoongArch/lsx/intrinsic-bsll-non-imm.ll
chenli 0c76f46ca6 [LoongArch] Add testcases of LSX intrinsics with immediates
The testcases mainly cover three situations:
- the arguments which should be immediates are non immediates.
- the immediate is out of upper limit of the argument type.
- the immediate is out of lower limit of the argument type.

Depends on D155829

Reviewed By: SixWeining

Differential Revision: https://reviews.llvm.org/D157570
2023-08-21 11:04:19 +08:00

11 lines
360 B
LLVM

; RUN: not llc --mtriple=loongarch64 --mattr=+lsx < %s 2>&1 | FileCheck %s
declare <16 x i8> @llvm.loongarch.lsx.vbsll.v(<16 x i8>, i32)
define <16 x i8> @lsx_vbsll_v(<16 x i8> %va, i32 %b) nounwind {
; CHECK: immarg operand has non-immediate parameter
entry:
%res = call <16 x i8> @llvm.loongarch.lsx.vbsll.v(<16 x i8> %va, i32 %b)
ret <16 x i8> %res
}