42 lines · plain
1# RUN: llc -mtriple=hexagon -mcpu=hexagonv60 -run-pass hexagon-packetizer %s -o - | FileCheck %s2 3# Check that a store can be packetized with a load that happens later4# if these instructions are not aliased (the load will actually execute5# first).6# CHECK-LABEL: name: danny7# CHECK: BUNDLE8 9---10name: danny11tracksRegLiveness: true12stack:13 - { id: 0, type: default, size: 4, alignment: 4 }14 - { id: 1, type: default, size: 4, alignment: 4 }15body: |16 bb.0:17 liveins: $r018 S2_storeri_io $r29, 0, $r0 :: (store (s32) into %stack.0)19 $r1 = L2_loadri_io $r29, 4 :: (load (s32) from %stack.1)20...21 22 23# Check that a store cannot be packetized with a load that happens later24# if these instructions are aliased.25# CHECK-LABEL: name: sammy26# CHECK-NOT: BUNDLE27# CHECK: S2_storeri_io $r29, 0, $r028# CHECK: $r1 = L2_loadri_io $r29, 029 30---31name: sammy32tracksRegLiveness: true33stack:34 - { id: 0, type: default, size: 4, alignment: 4 }35body: |36 bb.0:37 liveins: $r038 S2_storeri_io $r29, 0, $r0 :: (store (s32) into %stack.0)39 $r1 = L2_loadri_io $r29, 0 :: (load (s32) from %stack.0)40...41 42