• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: not --crash llc -global-isel -mtriple=amdgcn-amd-amdhsa -mcpu=hawaii -o /dev/null %s 2>&1 | FileCheck -check-prefix=ERR %s
2
3; FIXME: Should produce context error for each one
4; ERR: LLVM ERROR: unable to legalize instruction: %{{[0-9]+}}:_(p5) = G_GLOBAL_VALUE @external_private (in function: fn_external_private)
5
6@external_private = external addrspace(5) global i32, align 4
7@internal_private = internal addrspace(5) global i32 undef, align 4
8
9define i32 addrspace(5)* @fn_external_private() {
10  ret i32 addrspace(5)* @external_private
11}
12
13define i32 addrspace(5)* @fn_internal_private() {
14  ret i32 addrspace(5)* @internal_private
15}
16