File: early-if-low8.mir

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,998,520 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (27 lines) | stat: -rw-r--r-- 778 bytes parent folder | download | duplicates (22)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# RUN: llc -march=hexagon -run-pass hexagon-early-if %s -o - | FileCheck %s

# Make sure that early if-conversion handles the *low8 register classes:
# CHECK: intregslow8 = C2_mux
# CHECK: generaldoublelow8regs = PS_pselect

---
name: fred
tracksRegLiveness: true
body: |
  bb.0:
    liveins: $r0, $r1
    %0:intregslow8 = COPY $r0
    %1:intregslow8 = COPY $r1
    %2:generaldoublelow8regs = A2_tfrpi 1
    %3:predregs = C2_cmpeq %0, %1
    J2_jumpf %3, %bb.2, implicit-def $pc
  bb.1:
    %4:intregslow8 = A2_addi %0, 1
    %5:generaldoublelow8regs = A2_tfrpi 0
  bb.2:
    %6:intregslow8 = PHI %0, %bb.0, %4, %bb.1
    %7:generaldoublelow8regs = PHI %2, %bb.0, %5, %bb.1
    $r0 = COPY %6
    $d1 = COPY %7
    J2_jumpr $r31, implicit $r0, implicit $d1, implicit-def $pc
...