1; RUN: llc < %s -march=amdgcn -mcpu=verde -verify-machineinstrs -mattr=dumpcode -filetype=obj | FileCheck --check-prefix=SI %s
2; RUN: llc < %s -march=amdgcn -mcpu=tonga -verify-machineinstrs -mattr=dumpcode -filetype=obj | FileCheck --check-prefix=SI %s
3
4; Test for a crash in the custom assembly dump code.
5
6; SI: test:
7; SI: BB0_0:
8; SI: s_endpgm
9define amdgpu_kernel void @test(i32 addrspace(1)* %out) {
10  store i32 0, i32 addrspace(1)* %out
11  ret void
12}
13