Bump version to 19.1.0-rc3
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / early-tailduplicator-terminator.mir
blob41c6906b3c85ad288f03074b3d881e84ffe0a02d
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -run-pass=early-tailduplication -verify-machineinstrs -o - %s | FileCheck %s
4 # Early tail duplication should not merge bb.6 into bb.5, adding a
5 # non-terminator (S_SLEEP) after the terminator S_MOV_B32_term.
7 ---
8 name:           tail_duplicate_terminator
9 tracksRegLiveness: true
10 body:             |
11   ; CHECK-LABEL: name: tail_duplicate_terminator
12   ; CHECK: bb.0:
13   ; CHECK-NEXT:   successors: %bb.2(0x80000000)
14   ; CHECK-NEXT: {{  $}}
15   ; CHECK-NEXT:   S_BRANCH %bb.2
16   ; CHECK-NEXT: {{  $}}
17   ; CHECK-NEXT: bb.1:
18   ; CHECK-NEXT:   successors: %bb.2(0x80000000)
19   ; CHECK-NEXT: {{  $}}
20   ; CHECK-NEXT:   S_SLEEP 1
21   ; CHECK-NEXT: {{  $}}
22   ; CHECK-NEXT: bb.2:
23   ; CHECK-NEXT:   successors: %bb.3(0x80000000)
24   ; CHECK-NEXT: {{  $}}
25   ; CHECK-NEXT:   [[S_MOV_B32_term:%[0-9]+]]:sreg_32_xm0_xexec = S_MOV_B32_term $exec_lo
26   ; CHECK-NEXT: {{  $}}
27   ; CHECK-NEXT: bb.3:
28   ; CHECK-NEXT:   successors: %bb.3(0x40000000), %bb.4(0x40000000)
29   ; CHECK-NEXT: {{  $}}
30   ; CHECK-NEXT:   SI_WATERFALL_LOOP %bb.3, implicit $exec
31   ; CHECK-NEXT: {{  $}}
32   ; CHECK-NEXT: bb.4:
33   ; CHECK-NEXT:   successors: %bb.5(0x80000000)
34   ; CHECK-NEXT: {{  $}}
35   ; CHECK-NEXT:   $exec_lo = S_MOV_B32_term [[S_MOV_B32_term]]
36   ; CHECK-NEXT: {{  $}}
37   ; CHECK-NEXT: bb.5:
38   ; CHECK-NEXT:   successors: %bb.1(0x80000000)
39   ; CHECK-NEXT: {{  $}}
40   ; CHECK-NEXT:   S_SLEEP 2
41   ; CHECK-NEXT:   S_BRANCH %bb.1
42   bb.1:
43     S_BRANCH %bb.3
45   bb.2:
46     S_SLEEP 1
48   bb.3:
49     %0:sreg_32_xm0_xexec = S_MOV_B32_term $exec_lo
51   bb.4:
52     SI_WATERFALL_LOOP %bb.4, implicit $exec
54   bb.5:
55     $exec_lo = S_MOV_B32_term %0
57   bb.6:
58     S_SLEEP 2
59     S_BRANCH %bb.2
60 ...