MIR Serialization: Serialize machine instruction names.
[oota-llvm.git] / test / CodeGen / MIR / X86 / unknown-instruction.mir
1 # RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
2 # This test ensures that an error is reported when an unknown instruction is
3 # encountered.
4
5 --- |
6
7   define i32 @foo() {
8   entry:
9     ret i32 0
10   }
11
12 ...
13 ---
14 name:            foo
15 body:
16  - name:         entry
17    instructions:
18      # CHECK: 1:1: unknown machine instruction name 'retJust0'
19      - retJust0
20 ...