Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / GlobalISel / inst-select-stacksave-stackrestore.invalid.mir
blob6bde34dc924f35b72a65639c78630d1778004cfa
1 # RUN: not --crash llc -march=amdgcn -mcpu=gfx1030 -run-pass=instruction-select -o /dev/null %s 2>&1 | FileCheck -check-prefix=ERR %s
3 # ERR: LLVM ERROR: cannot select: G_STACKRESTORE %{{[0-9]+}}:vgpr(p5) (in function: stackrestore_waveaddress_vgpr)
5 ---
6 name:            stackrestore_waveaddress_vgpr
7 legalized:       true
8 regBankSelected: true
9 body: |
10   bb.0:
11     %0:vgpr(p5) = G_AMDGPU_WAVE_ADDRESS $sgpr32
12     G_STACKRESTORE %0
14 ...