Skip to content

Commit fd7036e

Browse files
committed
Generate test checks correctly
1 parent 33b74f5 commit fd7036e

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

llvm/test/CodeGen/RISCV/branch-rel.mir

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
1+
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5
22
# RUN: llc %s -mtriple=riscv64 -run-pass=branch-relaxation -o - -verify-machineinstrs | FileCheck %s
33

44
--- |
@@ -10,6 +10,22 @@
1010
name: foo
1111
tracksRegLiveness: true
1212
body: |
13+
; CHECK-LABEL: name: foo
14+
; CHECK: bb.0:
15+
; CHECK-NEXT: successors: %bb.2(0x80000000)
16+
; CHECK-NEXT: liveins: $x1
17+
; CHECK-NEXT: {{ $}}
18+
; CHECK-NEXT: PseudoBR %bb.2
19+
; CHECK-NEXT: {{ $}}
20+
; CHECK-NEXT: bb.1:
21+
; CHECK-NEXT: successors: %bb.2(0x80000000)
22+
; CHECK-NEXT: liveins: $x1
23+
; CHECK-NEXT: {{ $}}
24+
; CHECK-NEXT: INLINEASM &".space 4096", 1 /* sideeffect attdialect */
25+
; CHECK-NEXT: BGE $x1, $x0, %bb.2
26+
; CHECK-NEXT: {{ $}}
27+
; CHECK-NEXT: bb.2:
28+
; CHECK-NEXT: PseudoRET
1329
bb.0:
1430
liveins: $x1
1531
BNE $x1, $x0, %bb.3
@@ -21,4 +37,3 @@ body: |
2137
bb.3:
2238
PseudoRET
2339
## NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
24-
# CHECK: {{.*}}

0 commit comments

Comments
 (0)