Debian Codegraph @

llvm/test/CodeGen/PowerPC/ppc64-stackmap-args.ll

raw
1 ; RUN: not llc -verify-machineinstrs -mcpu=ppc -mtriple=powerpc64-unknown-gnu-linux < %s 2>&1 | FileCheck %s
2 ; Tests error when we pass non-immediate parameters to @llvm.experiment.stackmap
3
4 define void @first_arg() {
5 ; CHECK: immarg operand has non-immediate parameter
6 entry:
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
13 define void @second_arg() {
14 ; CHECK: immarg operand has non-immediate parameter
15 entry:
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
22 declare void @llvm.experimental.stackmap(i64, i32, ...)