2018-01-31 07:19:44 +08:00
|
|
|
# RUN: llc -march=hexagon -run-pass hexagon-rdf-opt %s -o - | FileCheck %s
|
|
|
|
|
|
|
|
# Check that r29 gets propagated into the A2_addi, and that the renamable
|
|
|
|
# flag is cleared.
|
|
|
|
|
2018-02-01 06:04:26 +08:00
|
|
|
# CHECK: renamable $r28 = COPY $r29
|
2018-01-31 07:19:44 +08:00
|
|
|
# CHECK-NOT: renamable
|
|
|
|
|
|
|
|
---
|
|
|
|
name: fred
|
|
|
|
tracksRegLiveness: true
|
|
|
|
|
|
|
|
body: |
|
|
|
|
bb.0:
|
2018-02-01 06:04:26 +08:00
|
|
|
renamable $r28 = COPY $r29
|
|
|
|
$r0 = A2_addi renamable $r28, 1
|
|
|
|
J2_jumpr $r31, implicit-def $pc, implicit $r0
|
2018-01-31 07:19:44 +08:00
|
|
|
...
|
|
|
|
|