Debian Codegraph @

llvm/test/CodeGen/SPIRV/GlobalISel/fn-ptr-load.ll

raw
1 ; RUN: not llc --global-isel %s -filetype=null 2>&1 | FileCheck %s
2 target triple = "spirv64"
3
4 define void @do_load(ptr addrspace(9) %a, ptr addrspace(1) %out) {
5 ; CHECK: unable to legalize instruction: %{{.*}}:iid(s32) = G_LOAD %{{.*}}:pid(p9)
6 %val = load i32, ptr addrspace(9) %a
7 store i32 %val, ptr addrspace(1) %out
8 ret void
9 }