Skip to content

Commit 2a6399a

Browse files
committed
Add comment
1 parent 20c4b53 commit 2a6399a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/test/MachineVerifier/RISCV/subreg-liveness.mir

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5
22
# RUN: llc -mtriple=riscv64 -mattr=+v -run-pass=none %s -o - | FileCheck %s
33

4+
# During the MachineVerifier, it assumes that used registers have been defined
5+
# In this test case, while $v12_v13_v14_v15_v16 covers $v14_v15,
6+
# $v14_v15 is not a sub-register of $v14m2 even though they share the same register.
7+
# This corner case can be resolved by checking the register using RegUnit.
8+
49
...
510
---
611
name: func

0 commit comments

Comments
 (0)