[C++20][Modules][Serialization] Add an additional test case for #120277. (#126349)
[llvm-project.git] / llvm / test / CodeGen / AArch64 / stackmap-args.ll
blob04a427d7e865236a4f84d667de3be4b163bd7a6c
1 ; RUN: not llc -mtriple=arm64-linux-gnu < %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
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
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
22 declare void @llvm.experimental.stackmap(i64, i32, ...)