xref: /llvm-project/llvm/test/CodeGen/SystemZ/stackmap-args.ll (revision a1ee1a9126678aabd3b02ef1367df8879d2536fa)
1; RUN: not llc -mtriple=s390x-linux-gnu < %s 2>&1 | FileCheck %s
2; Tests error when we pass non-immediate parameters to @llvm.experiment.stackmap
3
4define void @first_arg() {
5; CHECK: immarg operand has non-immediate parameter
6entry:
7  ; First operand should be immediate
8  %id = add i64 0, 0
9  call void (i64, i32, ...) @llvm.experimental.stackmap(i64 %id, i32 0)
10  ret void
11}
12
13define void @second_arg() {
14; CHECK: immarg operand has non-immediate parameter
15entry:
16  ; Second operand should be immediate
17  %numShadowByte = add i32 0, 0
18  call void (i64, i32, ...) @llvm.experimental.stackmap(i64 1, i32 %numShadowByte)
19  ret void
20}
21
22declare void @llvm.experimental.stackmap(i64, i32, ...)
23