File: regalloc-coal-extend-short-subrange.mir

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.6-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,304 kB
  • sloc: cpp: 7,438,677; ansic: 1,393,822; asm: 1,012,926; python: 241,650; f90: 86,635; objc: 75,479; lisp: 42,144; pascal: 17,286; sh: 10,027; ml: 5,082; perl: 4,730; awk: 3,523; makefile: 3,349; javascript: 2,251; xml: 892; fortran: 672
file content (45 lines) | stat: -rw-r--r-- 1,306 bytes parent folder | download | duplicates (6)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# RUN: llc -mtriple=hexagon -run-pass register-coalescer -verify-coalescing %s -o - | FileCheck %s
#
# Check that this doesn't crash.
# CHECK: ENDLOOP

---
name:            foo
tracksRegLiveness: true
body: |
  bb.0:
    successors: %bb.1(0x40000000), %bb.2(0x40000000)
    liveins: $r0, $r1, $r2, $v0, $v1, $v2, $v3

    %0:hvxwr = COPY $v0
    %1:intregs = COPY $r0
    %2:predregs = C2_cmpgtui %1, 2
    %3:intregs = COPY $r1
    %4:intregs = COPY $r2
    %5:hvxvr = COPY $v1
    %6:hvxwr = V6_vcombine $v1, $v0
    %7:hvxqr = IMPLICIT_DEF
    J2_loop0r %bb.1, %3, implicit-def $lc0, implicit-def $sa0, implicit-def $usr
    J2_jumpf %2, %bb.2, implicit-def $pc
    J2_jump %bb.1, implicit-def $pc

  bb.1:
    successors: %bb.2(0x04000000), %bb.1(0x7c000000)

    %8:hvxwr = COPY %0
    %9:hvxvr = V6_vL32b_ai %4, 0
    %10:hvxvr = V6_vL32b_ai %4, 128
    %5:hvxvr = V6_vaddwq %7, %5, %9
    %11:hvxqr = V6_vgtuw %10, %0.vsub_lo
    %12:hvxvr = V6_vL32b_ai %4, 256
    %13:hvxvr = V6_vL32b_ai %4, 384
    %5:hvxvr = V6_vaddwq %11, %5, %13
    %7:hvxqr = V6_vgtuw %6.vsub_hi, %13
    %0:hvxwr = COPY %8
    %0:hvxwr = V6_vmpyhv_acc %0, %12, %12
    %6:hvxwr = COPY %8
    ENDLOOP0 %bb.1, implicit-def $pc, implicit-def $lc0, implicit $sa0, implicit $lc0
    J2_jump %bb.2, implicit-def $pc

  bb.2:
...