1# RUN: llc -march=hexagon -run-pass post-RA-sched %s -o - | FileCheck %s
2
3# The two loads from %a ($r0) can cause a bank conflict. Check that they
4# are not scheduled next to each other.
5
6# CHECK: L2_loadri_io $r0, 8
7# CHECK: L2_loadri_io killed $r1, 0
8# CHECK: L2_loadri_io killed $r0, 12
9
10--- |
11  define void @foo(i32* %a, i32* %b) {
12    ret void
13  }
14...
15
16---
17name: foo
18tracksRegLiveness: true
19
20body: |
21  bb.0:
22    liveins: $r0, $r1
23
24    $r2 = L2_loadri_io $r0, 8 :: (load (s32) from %ir.a)
25    $r3 = L2_loadri_io killed $r0, 12 :: (load (s32) from %ir.a)
26    $r4 = L2_loadri_io killed $r1, 0 :: (load (s32) from %ir.b)
27...
28
29