File: arm64-ldst-unscaled-pre-post.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 (115 lines) | stat: -rw-r--r-- 2,331 bytes parent folder | download | duplicates (28)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass aarch64-ldst-opt  -verify-machineinstrs  -o - %s | FileCheck %s
---
# CHECK-LABEL: name: test_LDURSi_post
# CHECK: LDRSpost $x0, -4
name: test_LDURSi_post
body: |
  bb.0.entry:
    liveins: $x0

    $s0 = LDURSi $x0, 0
    $x0 = SUBXri $x0, 4, 0
    RET_ReallyLR implicit $x0
...
# CHECK-LABEL: name: test_LDURDi_post
# CHECK: LDRDpost $x0, -4
name: test_LDURDi_post
body: |
  bb.0.entry:
    liveins: $x0

    $d0 = LDURDi $x0, 0
    $x0 = SUBXri $x0, 4, 0
    RET_ReallyLR implicit $x0
...
# CHECK-LABEL: name: test_LDURQi_post
# CHECK: LDRQpost $x0, -4
name: test_LDURQi_post
body: |
  bb.0.entry:
    liveins: $x0

    $q0 = LDURQi  $x0, 0
    $x0 = SUBXri $x0, 4, 0
    RET_ReallyLR implicit $x0
...
# CHECK-LABEL: name: test_LDURWi_post
# CHECK: LDRWpost $x0, -4
name: test_LDURWi_post
body: |
  bb.0.entry:
    liveins: $x0

    $w1 = LDURWi $x0, 0
    $x0 = SUBXri $x0, 4, 0
    RET_ReallyLR implicit $x0
...
# CHECK-LABEL: name: test_LDURXi_post
# CHECK: $x1 = LDRXpost $x0, -4
name: test_LDURXi_post
body: |
  bb.0.entry:
    liveins: $x0

    $x1 = LDURXi $x0, 0
    $x0 = SUBXri $x0, 4, 0
    RET_ReallyLR implicit $x0
...
# CHECK-LABEL: name: test_STURSi_post
# CHECK: STRSpost $s0, $x0, -4
name: test_STURSi_post
body: |
  bb.0.entry:
    liveins: $x0

    $s0 = FMOVS0
    STURSi $s0, $x0, 0
    $x0 = SUBXri $x0, 4, 0
    RET_ReallyLR implicit $x0
...
# CHECK-LABEL: name: test_STURDi_post
# CHECK: STRDpost $d0, $x0, -4
name: test_STURDi_post
body: |
  bb.0.entry:
    liveins: $x0

    $d0 = FMOVD0
    STURDi $d0, $x0, 0
    $x0 = SUBXri $x0, 4, 0
    RET_ReallyLR implicit $x0
...
# CHECK-LABEL: name: test_STURQi_post
# CHECK: STRQpost $q0, $x0, -4
name: test_STURQi_post
body: |
  bb.0.entry:
    liveins: $x0

    $q0 = MOVIv4i32 0, 0
    STURQi $q0, $x0, 0
    $x0 = SUBXri $x0, 4, 0
    RET_ReallyLR implicit $x0
...
# CHECK-LABEL: name: test_STURWi_post
# CHECK: STRWpost $wzr, $x0, -4
name: test_STURWi_post
body: |
  bb.0.entry:
    liveins: $x0

    STURWi $wzr, $x0, 0
    $x0 = SUBXri $x0, 4, 0
    RET_ReallyLR implicit $x0
...
# CHECK-LABEL: name: test_STURXi_post
# CHECK: STRXpost $xzr, $x0, -4
name: test_STURXi_post
body: |
  bb.0.entry:
    liveins: $x0

    STURXi $xzr, $x0, 0
    $x0 = SUBXri $x0, 4, 0
    RET_ReallyLR implicit $x0
...