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: successors: %bb.3(0x80000000)
14 ; CHECK: [[S_MOV_B32_:%[0-9]+]]:sreg_32 = S_MOV_B32 0
15 ; CHECK: S_BRANCH %bb.3
17 ; CHECK: successors: %bb.3(0x80000000)
18 ; CHECK: [[DEF:%[0-9]+]]:sreg_32 = IMPLICIT_DEF
21 ; CHECK: successors: %bb.3(0x80000000)
22 ; CHECK: [[PHI:%[0-9]+]]:sreg_32 = PHI [[DEF]], %bb.2, %1, %bb.3, [[S_MOV_B32_]], %bb.0
23 ; CHECK: S_NOP 0, implicit [[PHI]]
25 ; CHECK: [[S_MOV_B32_1:%[0-9]+]]:sreg_32 = S_MOV_B32 0
26 ; CHECK: S_BRANCH %bb.3
30 %5:sreg_32 = S_MOV_B32 0