summaryrefslogtreecommitdiff
path: root/test/CodeGen/MIR/AArch64/generic-virtual-registers-error.mir
blob: af785bcb10a9b1522aca8937e5a452d6084dc65d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# RUN: not llc -mtriple=aarch64-apple-ios -run-pass none -o - %s 2>&1 \
# RUN:        | FileCheck %s --check-prefix=ERR
# REQUIRES: global-isel
# This test ensures that the MIR parser errors out when
# generic virtual register definitions are not correct.

--- |
  define void @baz() { ret void }
...

---
name:            baz
registers:
  - { id: 0, class: _ }
body: |
  bb.0:
    liveins: %w0
    ; ERR: generic virtual registers must have a type
    ; ERR-NEXT: %0
    %0 = G_ADD i32 %w0, %w0
...