a14d2303a7d8bee6803947c776f263aec86d1ca1
[oota-llvm.git] / test / CodeGen / MIR / X86 / undefined-register-class.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 # 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 ---
14 name:            test
15 isSSA:           true
16 tracksRegLiveness: true
17 registers:
18   # CHECK: [[@LINE+1]]:20: use of undefined register class 'gr3200'
19   - {id: 0, class: 'gr3200'}
20 body:
21   - id:          0
22     name:        entry
23     instructions:
24       - 'RETQ %eax'
25 ...
26