llvm/test/CodeGen/SPIRV/token/token-type-requires-extension.ll
raw| 1 | ; RUN: not llc -O0 -mtriple=spirv64-unknown-unknown %s -o - 2>&1 | FileCheck %s |
| 2 | |
| 3 | ; CHECK: A token is encountered but SPIR-V without extensions does not support token type |
| 4 | |
| 5 | declare token @llvm.myfun() |
| 6 | |
| 7 | define dso_local spir_func void @func() { |
| 8 | entry: |
| 9 | %tok = call token @llvm.myfun() |
| 10 | ret void |
| 11 | } |