42 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=amdgcn -run-pass=block-placement -tail-dup-placement-threshold=2 -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s3 4# Check that tail duplication correctly counts instructions in a bundle.5# The bundle below shall not be duplicated.6 7---8name: tail_dup_bundle9body: |10 ; GCN-LABEL: name: tail_dup_bundle11 ; GCN: bb.0:12 ; GCN-NEXT: successors: %bb.2(0x80000000)13 ; GCN-NEXT: {{ $}}14 ; GCN-NEXT: bb.2:15 ; GCN-NEXT: BUNDLE {16 ; GCN-NEXT: S_NOP 017 ; GCN-NEXT: S_NOP 018 ; GCN-NEXT: }19 ; GCN-NEXT: S_ENDPGM 020 ; GCN-NEXT: {{ $}}21 ; GCN-NEXT: bb.1:22 ; GCN-NEXT: successors: %bb.2(0x80000000)23 ; GCN-NEXT: {{ $}}24 ; GCN-NEXT: S_BRANCH %bb.225 bb.0:26 successors: %bb.2(0x80000000)27 28 S_BRANCH %bb.229 30 bb.1:31 successors: %bb.2(0x80000000)32 33 bb.2:34 35 BUNDLE {36 S_NOP 037 S_NOP 038 }39 S_ENDPGM 040 41...42