1 ; RUN: not llc -mtriple=riscv64 < %s 2>&1 | FileCheck %s
2 ; Tests error when we pass non-immediate parameters to @llvm.experiment.stackmap
4 define void @first_arg() {
5 ; CHECK: immarg operand has non-immediate parameter
7 ; First operand should be immediate
9 call void (i64, i32, ...) @llvm.experimental.stackmap(i64 %id, i32 0)
13 define void @second_arg() {
14 ; CHECK: immarg operand has non-immediate parameter
16 ; Second operand should be immediate
17 %numShadowByte = add i32 0, 0
18 call void (i64, i32, ...) @llvm.experimental.stackmap(i64 1, i32 %numShadowByte)
22 declare void @llvm.experimental.stackmap(i64, i32, ...)