1 ; RUN: not --crash llc -global-isel -global-isel-abort=1 -mtriple=amdgcn-amd-amdhsa -mcpu=hawaii -o /dev/null %s 2>&1 | FileCheck -check-prefix=ERR %s
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)
6 @external_private = external addrspace(5) global i32, align 4
7 @internal_private = internal addrspace(5) global i32 undef, align 4
9 define i32 addrspace(5)* @fn_external_private() {
10 ret i32 addrspace(5)* @external_private
13 define i32 addrspace(5)* @fn_internal_private() {
14 ret i32 addrspace(5)* @internal_private