summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/MIR/X86/unknown-instruction.mir
blob: 4377347f0a9f0ab22f1a7117e9ce687c52d6fe3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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
...
OpenPOWER on IntegriCloud