diff options
Diffstat (limited to 'test/CodeGen/MIR/X86/unknown-instruction.mir')
-rw-r--r-- | test/CodeGen/MIR/X86/unknown-instruction.mir | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/CodeGen/MIR/X86/unknown-instruction.mir b/test/CodeGen/MIR/X86/unknown-instruction.mir new file mode 100644 index 000000000000..4e58ca6bad40 --- /dev/null +++ b/test/CodeGen/MIR/X86/unknown-instruction.mir @@ -0,0 +1,21 @@ +# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s +# This test ensures that an error is reported when an unknown instruction is +# encountered. + +--- | + + define i32 @foo() { + entry: + ret i32 0 + } + +... +--- +name: foo +body: + - id: 0 + name: entry + instructions: + # CHECK: [[@LINE+1]]:8: unknown machine instruction name 'retJust0' + - retJust0 +... |