xref: /llvm-project/llvm/test/CodeGen/AArch64/live-interval-analysis.mir (revision abde52aa667118d18e9551ab87a15b95c267b3b6)
1# RUN: llc -o /dev/null %s -mtriple=aarch64-darwin-ios -run-pass=liveintervals -debug-only=regalloc -precompute-phys-liveness 2>&1 | FileCheck %s
2# RUN: llc -o /dev/null %s -mtriple=aarch64-darwin-ios --passes='print<live-intervals>' -debug-only=regalloc -precompute-phys-liveness 2>&1 | FileCheck %s
3# REQUIRES: asserts
4--- |
5  define void @reserved_reg_liveness() { ret void }
6...
7---
8# CHECK-LABEL: ********** INTERVALS **********
9# W29 is reserved, so we should only see dead defs
10# CHECK-DAG: W29 [32r,32d:{{[0-9]+}})[64r,64d:{{[0-9]+}})
11# For normal registers like x28 we should see the full intervals
12# CHECK-DAG: W28 [0B,16r:{{[0-9]+}})[32r,48r:{{[0-9]+}})[48r,48d:{{[0-9]+}})
13# CHECK: # End machine code for function reserved_reg_liveness.
14name: reserved_reg_liveness
15tracksRegLiveness: true
16body: |
17  bb.0:
18    liveins: $x28
19    %6 : xseqpairsclass = COPY $x28_fp
20    $x28_fp = COPY %6
21    $x28 = COPY $x28
22    $fp = COPY $fp
23...
24