[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / CodeGen / AMDGPU / coalescer-identical-values-undef.mir
blob280c82b3352c84bfd2cbefffa328236754f89645
1 # RUN: llc -mtriple=amdgcn--amdpal -run-pass=simple-register-coalescing -o - %s | FileCheck %s
3 # Check that this doesn't crash. Check for some legitimate output.
4 # CHECK: S_CBRANCH_SCC1
6 ---
7 name: fred
8 tracksRegLiveness: true
9 body: |
10   bb.0:
11     successors: %bb.1, %bb.2
12     liveins: $sgpr4
13     undef %0.sub2:sgpr_128 = COPY $sgpr4
14     %3 = IMPLICIT_DEF
15     S_CBRANCH_SCC1 %bb.2, implicit undef $scc
17   bb.1:
18     successors: %bb.2
19     %0.sub0:sgpr_128 = COPY %0.sub2
20     %0.sub1:sgpr_128 = COPY %0.sub2
21     %1:sgpr_128 = COPY %0
22     %2:sgpr_128 = COPY %0
23     %0:sgpr_128 = COPY %2
24     %3:sgpr_128 = COPY %1
26   bb.2:
27     $sgpr1 = COPY %3
28     $sgpr2 = COPY %0.sub2
29 ...