xref: /llvm-project/llvm/test/MachineVerifier/test_multiple_errors.mir (revision adaa603224fee842b4f71824617adb3b0c7d9cf1)
1# RUN: not --crash llc -mtriple=aarch64 -o /dev/null -run-pass=none %s 2>&1 | FileCheck %s --implicit-check-not="Bad machine code"
2# REQUIRES: aarch64-registered-target
3
4# Since we abort after reporting the first error, we should only expect one error to be reported.
5# CHECK: *** Bad machine code: Generic virtual register use cannot be undef ***
6# CHECK: Found 1 machine code errors.
7
8---
9name:            foo
10liveins:
11body:             |
12  bb.0:
13    $x0 = COPY undef %0:_(s64)
14...
15
16---
17name:            bar
18liveins:
19body:             |
20  bb.0:
21    $x0 = COPY undef %0:_(s64)
22...
23