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 # There are no phis in this testcase. Early tail duplication introduces them,
5 # so the NoPHIs property needs to be cleared to avoid verifier errors
8 name: tail_duplicate_nophis
9 tracksRegLiveness: true
11 ; CHECK-LABEL: name: tail_duplicate_nophis
13 ; CHECK-NEXT: successors: %bb.3(0x80000000)
15 ; CHECK-NEXT: [[S_MOV_B32_:%[0-9]+]]:sreg_32 = S_MOV_B32 0
16 ; CHECK-NEXT: S_BRANCH %bb.3
19 ; CHECK-NEXT: successors: %bb.3(0x80000000)
21 ; CHECK-NEXT: [[DEF:%[0-9]+]]:sreg_32 = IMPLICIT_DEF
22 ; CHECK-NEXT: S_SLEEP 9
25 ; CHECK-NEXT: successors: %bb.3(0x80000000)
27 ; CHECK-NEXT: [[PHI:%[0-9]+]]:sreg_32 = PHI [[DEF]], %bb.2, %1, %bb.3, [[S_MOV_B32_]], %bb.0
28 ; CHECK-NEXT: S_NOP 0, implicit [[PHI]]
29 ; CHECK-NEXT: S_SLEEP 1
30 ; CHECK-NEXT: [[S_MOV_B32_1:%[0-9]+]]:sreg_32 = S_MOV_B32 0
31 ; CHECK-NEXT: S_BRANCH %bb.3
35 %5:sreg_32 = S_MOV_B32 0