| 1 |
; RUN: not --crash llc -O0 -mtriple=spirv64-unknown-unknown < %s 2>&1 | FileCheck %s |
| 2 |
; CHECK: unable to translate instruction: call (in function: kernel) |
| 3 |
|
| 4 |
; Interposable aliases are not yet supported. |
| 5 |
@bar_alias = weak alias void (), ptr addrspace(4) @bar |
| 6 |
|
| 7 |
; Interposable functions are not yet supported for aliasing resolution. |
| 8 |
define weak spir_func void @bar() addrspace(4) { |
| 9 |
entry: |
| 10 |
ret void |
| 11 |
} |
| 12 |
|
| 13 |
define spir_kernel void @kernel() addrspace(4) { |
| 14 |
entry: |
| 15 |
call spir_func addrspace(4) void @bar_alias() |
| 16 |
ret void |
| 17 |
} |