aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/RISCV/branch-rel.mir
blob: 1ed5f5715a825e8d5b2773ba19a4b8cc8e7bcc75 (plain)
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
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5
# RUN: llc %s -mtriple=riscv64 -run-pass=branch-relaxation -o - -verify-machineinstrs | FileCheck %s

--- |
  define void @foo() {
    ret void
  }
...
---
name:            foo
tracksRegLiveness: true
body:             |
  ; CHECK-LABEL: name: foo
  ; CHECK: bb.0:
  ; CHECK-NEXT:   successors: %bb.2(0x80000000)
  ; CHECK-NEXT:   liveins: $x1
  ; CHECK-NEXT: {{  $}}
  ; CHECK-NEXT:   PseudoBR %bb.2
  ; CHECK-NEXT: {{  $}}
  ; CHECK-NEXT: bb.1:
  ; CHECK-NEXT:   successors: %bb.2(0x80000000)
  ; CHECK-NEXT:   liveins: $x1
  ; CHECK-NEXT: {{  $}}
  ; CHECK-NEXT:   INLINEASM &".space 4096", 1 /* sideeffect attdialect */
  ; CHECK-NEXT:   BGE $x1, $x0, %bb.2
  ; CHECK-NEXT: {{  $}}
  ; CHECK-NEXT: bb.2:
  ; CHECK-NEXT:   PseudoRET
  bb.0:
    liveins: $x1
    BNE $x1, $x0, %bb.3
    PseudoBR %bb.3
  bb.1:
    liveins: $x1
    INLINEASM &".space 4096", 1
    BGE $x1, $x0, %bb.3
  bb.3:
    PseudoRET
## NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line: