xref: /aosp_15_r20/external/llvm/test/CodeGen/MIR/X86/unknown-instruction.mir (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker# This test ensures that an error is reported when an unknown instruction is
3*9880d681SAndroid Build Coastguard Worker# encountered.
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker--- |
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker  define i32 @foo() {
8*9880d681SAndroid Build Coastguard Worker  entry:
9*9880d681SAndroid Build Coastguard Worker    ret i32 0
10*9880d681SAndroid Build Coastguard Worker  }
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Worker...
13*9880d681SAndroid Build Coastguard Worker---
14*9880d681SAndroid Build Coastguard Workername:            foo
15*9880d681SAndroid Build Coastguard Workerbody: |
16*9880d681SAndroid Build Coastguard Worker  bb.0.entry:
17*9880d681SAndroid Build Coastguard Worker    ; CHECK: [[@LINE+1]]:5: unknown machine instruction name 'retJust0'
18*9880d681SAndroid Build Coastguard Worker    retJust0
19*9880d681SAndroid Build Coastguard Worker...
20