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: successors: %bb.2(0x80000000) 13 ; GCN: bb.2: 14 ; GCN: BUNDLE { 15 ; GCN: S_NOP 0 16 ; GCN: S_NOP 0 17 ; GCN: } 18 ; GCN: S_ENDPGM 0 19 ; GCN: bb.1: 20 ; GCN: successors: %bb.2(0x80000000) 21 ; GCN: S_BRANCH %bb.2 22 bb.0: 23 successors: %bb.2(0x80000000) 24 25 S_BRANCH %bb.2 26 27 bb.1: 28 successors: %bb.2(0x80000000) 29 30 bb.2: 31 32 BUNDLE { 33 S_NOP 0 34 S_NOP 0 35 } 36 S_ENDPGM 0 37 38... 39