llvm-for-llvmta/test/CodeGen/MIR/X86/unknown-instruction.mir

20 lines
370 B
Plaintext
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
# RUN: not llc -march=x86-64 -run-pass none -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: |
bb.0.entry:
; CHECK: [[@LINE+1]]:5: unknown machine instruction name 'retJust0'
retJust0
...