1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py 2# RUN: llc -march=amdgcn -run-pass=block-placement -tail-dup-placement-threshold=2 -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s 3 4# Check that tail duplication correctly counts instructions in a bundle. 5# The bundle below shall not be duplicated. 6 7--- 8name: tail_dup_bundle 9body: | 10 ; GCN-LABEL: name: tail_dup_bundle 11 ; GCN: bb.0: 12 ; GCN-NEXT: successors: %bb.2(0x80000000) 13 ; GCN-NEXT: {{ $}} 14 ; GCN-NEXT: {{ $}} 15 ; GCN-NEXT: bb.2: 16 ; GCN-NEXT: BUNDLE { 17 ; GCN-NEXT: S_NOP 0 18 ; GCN-NEXT: S_NOP 0 19 ; GCN-NEXT: } 20 ; GCN-NEXT: S_ENDPGM 0 21 ; GCN-NEXT: {{ $}} 22 ; GCN-NEXT: bb.1: 23 ; GCN-NEXT: successors: %bb.2(0x80000000) 24 ; GCN-NEXT: {{ $}} 25 ; GCN-NEXT: S_BRANCH %bb.2 26 bb.0: 27 successors: %bb.2(0x80000000) 28 29 S_BRANCH %bb.2 30 31 bb.1: 32 successors: %bb.2(0x80000000) 33 34 bb.2: 35 36 BUNDLE { 37 S_NOP 0 38 S_NOP 0 39 } 40 S_ENDPGM 0 41 42... 43