63 lines · plain
1# RUN: llc -mtriple=hexagon -run-pass hexagon-packetizer %s -o - | FileCheck %s2 3##############################################################################4# This test case is not really hexagon specific, but we use hexagon to get5# bundling.6#7# The goal is to verify that the BUNDLE instruction is getting the8# frame-setup/frame-destroy attribute if any of the bundled instructions got9# the attribute.10##############################################################################11 12---13name: setup14tracksRegLiveness: true15body: |16 bb.0:17 liveins: $r1, $r218 successors: %bb.119 $r3 = frame-setup L2_loadri_io $r1, 020 J4_cmpgtu_f_jumpnv_t killed $r3, killed $r2, %bb.1, implicit-def $pc21 22 bb.1:23...24 25# CHECK-LABEL: name: setup26# CHECK: frame-setup BUNDLE27 28##############################################################################29 30---31name: destroy32tracksRegLiveness: true33body: |34 bb.0:35 liveins: $r1, $r236 successors: %bb.137 $r3 = frame-destroy L2_loadri_io $r1, 038 J4_cmpgtu_f_jumpnv_t killed $r3, killed $r2, %bb.1, implicit-def $pc39 40 bb.1:41...42 43# CHECK-LABEL: name: destroy44# CHECK: frame-destroy BUNDLE45 46##############################################################################47 48---49name: mixed50tracksRegLiveness: true51body: |52 bb.0:53 liveins: $r1, $r254 successors: %bb.155 $r3 = frame-setup L2_loadri_io $r1, 056 frame-destroy J4_cmpgtu_f_jumpnv_t killed $r3, killed $r2, %bb.1, implicit-def $pc57 58 bb.1:59...60 61# CHECK-LABEL: name: mixed62# CHECK: frame-setup frame-destroy BUNDLE63