1# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s
2# This test ensures that an error is reported when an unknown subregister index
3# is encountered.
4
5--- |
6
7  define zeroext i1 @t(i1 %c) {
8  entry:
9    ret i1 %c
10  }
11
12...
13---
14name:            t
15isSSA:           true
16tracksRegLiveness: true
17registers:
18  - { id: 0, class: gr32 }
19  - { id: 1, class: gr8 }
20  - { id: 2, class: gr8 }
21body: |
22  bb.0.entry:
23    ; CHECK: [[@LINE+1]]:35: unknown subregister index 'bit8'
24    %0 = INSERT_SUBREG %edi, %al, %subreg.bit8
25    RETQ %0
26...
27