aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/Hexagon/rdf-copy-renamable-reserved.mir
blob: e1617289c3f4adc08c20c419d7e39bb6395f52db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# RUN: llc -mtriple=hexagon -run-pass hexagon-rdf-opt -hexagon-rdf-track-reserved %s -o - | FileCheck %s

# Check that r29 gets propagated into the A2_addi, and that the renamable
# flag is cleared.

# CHECK: renamable $r28 = COPY $r29
# CHECK-NOT: renamable

---
name: fred
tracksRegLiveness: true

body: |
  bb.0:
    renamable $r28 = COPY $r29
    $r0 = A2_addi renamable $r28, 1
    J2_jumpr $r31, implicit-def $pc, implicit $r0
...