Debian Codegraph @

llvm/test/CodeGen/SPIRV/ga-inttoptr.ll

raw
1 ; REQUIRES: asserts
2 ; RUN: not --crash llc -O0 -mtriple=spirv64-unknown-unknown < %s 2>&1 | FileCheck %s
3 ; CHECK: argument of incompatible type!
4
5 ; The BE does not support non-global-object aliases
6 @glob.inttoptr = alias i32, inttoptr (i64 12345 to ptr)
7
8 define spir_kernel void @kernel() addrspace(4) {
9 entry:
10 store i32 0, ptr @glob.inttoptr
11 ret void
12 }