MIR Serialization: Serialize the sub register indices.
[oota-llvm.git] / test / CodeGen / MIR / X86 / expected-subregister-after-colon.mir
1 # RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s
2
3 --- |
4
5   define zeroext i1 @t(i1 %c) {
6   entry:
7     ret i1 %c
8   }
9
10 ...
11 ---
12 name:            t
13 isSSA:           true
14 tracksRegLiveness: true
15 registers:
16   - { id: 0, class: gr32 }
17   - { id: 1, class: gr8 }
18   - { id: 2, class: gr8 }
19 body:
20   - name:        entry
21     id:          0
22     instructions:
23       - '%0 = COPY %edi'
24       # CHECK: [[@LINE+1]]:25: expected a subregister index after ':'
25       - '%1 = COPY %0 : 42'
26       - '%2 = AND8ri %1, 1, implicit-def %eflags'
27       - '%al = COPY %2'
28       - 'RETQ %al'
29 ...