File: cext-opt-stack-no-rr.mir

package info (click to toggle)
swiftlang 6.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,791,604 kB
  • sloc: cpp: 9,901,740; ansic: 2,201,431; asm: 1,091,827; python: 308,252; objc: 82,166; f90: 80,126; lisp: 38,358; pascal: 25,559; sh: 20,429; ml: 5,058; perl: 4,745; makefile: 4,484; awk: 3,535; javascript: 3,018; xml: 918; fortran: 664; cs: 573; ruby: 396
file content (35 lines) | stat: -rw-r--r-- 1,174 bytes parent folder | download | duplicates (12)
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
# RUN: llc -march=hexagon -run-pass hexagon-cext-opt -hexagon-cext-threshold=1 -o - %s | FileCheck %s

# Make sure that the stores to the stack slot are not converted into rr forms.
# CHECK: %[[REG:[0-9]+]]:intregs = PS_fi %stack.0, 267
# CHECK: S2_pstorerbt_io %{{[0-9]+}}, %[[REG]], 0
# CHECK: S2_pstorerbt_io %{{[0-9]+}}, %[[REG]], 0

---
name: fred
stack:
  - { id: 0, type: default, size: 272, alignment: 4 }
body: |
  bb.0:
    successors: %bb.1, %bb.2

    %0:intregs = IMPLICIT_DEF
    %1:intregs = L2_loadrub_io killed %0:intregs, 0 :: (load (s8) from `ptr undef`, align 2)
    %2:predregs = C2_cmpeqi %1:intregs, 5
    %3:intregs = A2_tfrsi 0
    S2_pstorerbt_io %2:predregs, %stack.0, 267, killed %3:intregs :: (store (s8) into %stack.0)
    J2_jumpt %2:predregs, %bb.2, implicit-def $pc

  bb.1:
    successors: %bb.2

    %4:predregs = C2_cmpeqi %1:intregs, 6
    %5:intregs = A2_tfrsi 2
    S2_pstorerbt_io %4:predregs, %stack.0, 267, killed %5:intregs :: (store (s8) into %stack.0)

  bb.2:
    %6:intregs = A2_tfrsi 32968
    S2_storerh_io %stack.0, 0, killed %6:intregs :: (store (s16) into %stack.0, align 4)
    PS_jmpret $r31, implicit-def dead $pc
...