1# RUN: llc -mtriple=amdgcn--amdhsa -mcpu=hawaii -verify-machineinstrs -run-pass si-fold-operands -o - %s | FileCheck -check-prefix=GCN %s
2...
3---
4
5# Blocks should be processed in program order to make sure folds
6# aren't made in users before the def is seen.
7
8# GCN-LABEL: name: mov_in_use_list_2x{{$}}
9# GCN: %2:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
10# GCN-NEXT: %3:vgpr_32 = COPY undef %0
11
12# GCN: %1:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
13
14
15name: mov_in_use_list_2x
16tracksRegLiveness: true
17registers:
18  - { id: 0, class: vgpr_32, preferred-register: '' }
19  - { id: 1, class: vgpr_32, preferred-register: '' }
20  - { id: 2, class: vgpr_32, preferred-register: '' }
21  - { id: 3, class: vgpr_32, preferred-register: '' }
22liveins:
23body:             |
24  bb.0:
25    successors: %bb.2
26
27    S_BRANCH %bb.2
28
29  bb.1:
30    successors: %bb.2
31
32    %2 = COPY %1
33    %3 = V_XOR_B32_e64 killed %2, undef %0, implicit $exec
34
35  bb.2:
36    successors: %bb.1
37
38    %1 = V_MOV_B32_e32 0, implicit $exec
39    S_BRANCH %bb.1
40
41...
42