xref: /llvm-project/llvm/test/CodeGen/AArch64/GlobalISel/implicit_def_rbs_crash.mir (revision 0d2c4db637d4426bc942a21cf5fd04caec69662c)
1# RUN: llc -O0 -mtriple arm64-- -run-pass=regbankselect -verify-machineinstrs %s -o - | FileCheck %s
2
3# Check we don't crash given an non-generic implicit_def. These may
4# come from swifterror handling in the translator.
5# CHECK: IMPLICIT_DEF
6---
7name:            implicit_def_crash
8alignment:       4
9legalized:       true
10regBankSelected: false
11selected:        false
12failedISel:      false
13registers:
14  - { id: 0, class: gpr64all, preferred-register: '' }
15  - { id: 1, class: _, preferred-register: '' }
16  - { id: 2, class: gpr64all, preferred-register: '' }
17  - { id: 3, class: gpr64all, preferred-register: '' }
18body:             |
19  bb.1:
20    %0:gpr64all = IMPLICIT_DEF
21
22...
23