xref: /llvm-project/llvm/test/CodeGen/AMDGPU/machine-cse-ssa.mir (revision 6c143a86cddbc6d0431dd643bfc7d4f017042512)
1# REQUIRES: asserts
2# RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -run-pass=machine-cse -o /dev/null %s 2>&1 | FileCheck -check-prefixes=ERR,ERR-LEGACY %s
3# RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -passes=machine-cse -o /dev/null %s 2>&1 | FileCheck -check-prefixes=ERR,ERR-NPM %s
4
5# ERR-LEGACY: MachineFunctionProperties required by Machine Common Subexpression Elimination pass are not met by function not_ssa.
6# ERR-NPM: MachineFunctionProperties required by MachineCSEPass pass are not met by function not_ssa.
7# ERR: Required properties: IsSSA
8# ERR-NEXT: Current properties: NoPHIs
9
10---
11name: not_ssa
12body: |
13  bb.0:
14    %0:sgpr_32 = S_MOV_B32 0
15    %0:sgpr_32 = S_MOV_B32 1
16    S_ENDPGM 0, implicit %0
17...
18