• 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 the MIR parser reports an error when it encounters an
3# unknown register class.
4
5--- |
6
7  define i32 @test(i32 %a) {
8  entry:
9    ret i32 %a
10  }
11
12...
13---
14name:            test
15tracksRegLiveness: true
16registers:
17  # CHECK: [[@LINE+1]]:20: use of undefined register class or register bank 'gr3200'
18  - {id: 0, class: 'gr3200'}
19body: |
20  bb.0.entry:
21    RETQ %eax
22...
23
24