llvm-6502/test/CodeGen/MIR/X86/missing-instruction.mir
Alex Lorenz 926d65d4f7 MIR Parser: Use correct source locations for machine instruction diagnostics.
This commit translates the source locations for MIParser diagnostics from
the locations in the machine instruction string to the locations in the
MIR file.

Reviewers: Duncan P. N. Exon Smith

Differential Revision: http://reviews.llvm.org/D10574


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240474 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-23 22:39:23 +00:00

19 lines
325 B
YAML

# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
--- |
define void @foo() {
entry:
ret void
}
...
---
name: foo
body:
- name: entry
instructions:
# CHECK: [[@LINE+1]]:9: expected a machine instruction
- ''
...