• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: not llc -march=x86-64 -run-pass none -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
15tracksRegLiveness: true
16registers:
17  - { id: 0, class: gr32 }
18  - { id: 1, class: gr8 }
19  - { id: 2, class: gr8 }
20body: |
21  bb.0.entry:
22    ; CHECK: [[@LINE+1]]:35: unknown subregister index 'bit8'
23    %0 = INSERT_SUBREG $edi, $al, %subreg.bit8
24    RETQ %0
25...
26