# RUN: llc -O0 -mtriple arm64-- -run-pass=regbankselect -verify-machineinstrs %s -o - | FileCheck %s
# Check we don't crash given an non-generic implicit_def. These may
# come from swifterror handling in the translator.
# CHECK: IMPLICIT_DEF
---
name: implicit_def_crash
alignment: 4
legalized: true
regBankSelected: false
selected: false
failedISel: false
registers:
- { id: 0, class: gpr64all, preferred-register: '' }
- { id: 1, class: _, preferred-register: '' }
- { id: 2, class: gpr64all, preferred-register: '' }
- { id: 3, class: gpr64all, preferred-register: '' }
body: |
bb.1:
%0:gpr64all = IMPLICIT_DEF
...