bolt/deps/llvm-18.1.8/llvm/test/CodeGen/LoongArch/lsx/intrinsic-permi-non-imm.ll
2025-02-14 19:21:04 +01:00

10 lines
404 B
LLVM

; RUN: not llc --mtriple=loongarch64 --mattr=+lsx < %s 2>&1 | FileCheck %s
declare <4 x i32> @llvm.loongarch.lsx.vpermi.w(<4 x i32>, <4 x i32>, i32)
define <4 x i32> @lsx_vpermi_w(<4 x i32> %va, <4 x i32> %vb, i32 %c) nounwind {
; CHECK: immarg operand has non-immediate parameter
entry:
%res = call <4 x i32> @llvm.loongarch.lsx.vpermi.w(<4 x i32> %va, <4 x i32> %vb, i32 %c)
ret <4 x i32> %res
}