llvm/test/CodeGen/SPIRV/GlobalISel/fn-ptr-addrspacecast.ll
raw| 1 | ; RUN: not llc --global-isel %s -filetype=null 2>&1 | FileCheck %s |
| 2 | target triple = "spirv64" |
| 3 | |
| 4 | define void @addrspacecast(ptr addrspace(9) %a) { |
| 5 | ; CHECK: unable to legalize instruction: %{{.*}}:pid(p4) = G_ADDRSPACE_CAST %{{.*}}:pid(p9) |
| 6 | %res1 = addrspacecast ptr addrspace(9) %a to ptr addrspace(4) |
| 7 | store i8 0, ptr addrspace(4) %res1 |
| 8 | ret void |
| 9 | } |