brintos

brintos / llvm-project-archived public Read only

0
0
Text · 690 B · 04a427d Raw
23 lines · plain
1; RUN: not llc -mtriple=arm64-linux-gnu < %s 2>&1  | FileCheck %s2; Tests error when we pass non-immediate parameters to @llvm.experiment.stackmap3 4define void @first_arg() {5; CHECK: immarg operand has non-immediate parameter6entry:7  ; First operand should be immediate8  %id = add i64 0, 09  call void (i64, i32, ...) @llvm.experimental.stackmap(i64 %id, i32 0)10  ret void11}12 13define void @second_arg() {14; CHECK: immarg operand has non-immediate parameter15entry:16  ; Second operand should be immediate17  %numShadowByte = add i32 0, 018  call void (i64, i32, ...) @llvm.experimental.stackmap(i64 1, i32 %numShadowByte)19  ret void20}21 22declare void @llvm.experimental.stackmap(i64, i32, ...)23