1# RUN: llc -march=hexagon -mcpu=hexagonv60 -run-pass hexagon-packetizer %s -o - | FileCheck %s 2 3# Check that a store can be packetized with a load that happens later 4# if these instructions are not aliased (the load will actually execute 5# first). 6# CHECK-LABEL: name: danny 7# CHECK: BUNDLE 8 9--- 10name: danny 11tracksRegLiveness: true 12stack: 13 - { id: 0, type: default, size: 4, alignment: 4 } 14 - { id: 1, type: default, size: 4, alignment: 4 } 15body: | 16 bb.0: 17 liveins: $r0 18 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 later 24# if these instructions are aliased. 25# CHECK-LABEL: name: sammy 26# CHECK-NOT: BUNDLE 27# CHECK: S2_storeri_io $r29, 0, $r0 28# CHECK: $r1 = L2_loadri_io $r29, 0 29 30--- 31name: sammy 32tracksRegLiveness: true 33stack: 34 - { id: 0, type: default, size: 4, alignment: 4 } 35body: | 36 bb.0: 37 liveins: $r0 38 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