2017-08-29 02:36:21 +08:00
|
|
|
# RUN: llc -march=hexagon -run-pass post-RA-sched %s -o - | FileCheck %s
|
|
|
|
|
2018-02-01 06:04:26 +08:00
|
|
|
# The two loads from %a ($r0) can cause a bank conflict. Check that they
|
2017-08-29 02:36:21 +08:00
|
|
|
# are not scheduled next to each other.
|
|
|
|
|
2018-02-01 06:04:26 +08:00
|
|
|
# CHECK: L2_loadri_io $r0, 8
|
|
|
|
# CHECK: L2_loadri_io killed $r1, 0
|
|
|
|
# CHECK: L2_loadri_io killed $r0, 12
|
2017-08-29 02:36:21 +08:00
|
|
|
|
|
|
|
--- |
|
|
|
|
define void @foo(i32* %a, i32* %b) {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
name: foo
|
|
|
|
tracksRegLiveness: true
|
|
|
|
|
|
|
|
body: |
|
|
|
|
bb.0:
|
2018-02-01 06:04:26 +08:00
|
|
|
liveins: $r0, $r1
|
2017-08-29 02:36:21 +08:00
|
|
|
|
2018-02-01 06:04:26 +08:00
|
|
|
$r2 = L2_loadri_io $r0, 8 :: (load 4 from %ir.a)
|
|
|
|
$r3 = L2_loadri_io killed $r0, 12 :: (load 4 from %ir.a)
|
|
|
|
$r4 = L2_loadri_io killed $r1, 0 :: (load 4 from %ir.b)
|
2017-08-29 02:36:21 +08:00
|
|
|
...
|
|
|
|
|