
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
18 lines
587 B
LLVM
18 lines
587 B
LLVM
; RUN: not llc --mtriple=loongarch64 --mattr=+lsx < %s 2>&1 | FileCheck %s
|
|
|
|
declare <16 x i8> @llvm.loongarch.lsx.vnori.b(<16 x i8>, i32)
|
|
|
|
define <16 x i8> @lsx_vnori_b_lo(<16 x i8> %va) nounwind {
|
|
; CHECK: llvm.loongarch.lsx.vnori.b: argument out of range
|
|
entry:
|
|
%res = call <16 x i8> @llvm.loongarch.lsx.vnori.b(<16 x i8> %va, i32 -1)
|
|
ret <16 x i8> %res
|
|
}
|
|
|
|
define <16 x i8> @lsx_vnori_b_hi(<16 x i8> %va) nounwind {
|
|
; CHECK: llvm.loongarch.lsx.vnori.b: argument out of range
|
|
entry:
|
|
%res = call <16 x i8> @llvm.loongarch.lsx.vnori.b(<16 x i8> %va, i32 256)
|
|
ret <16 x i8> %res
|
|
}
|