• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#RUN: not --crash llc -march=aarch64 -o - -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
2# REQUIRES: aarch64-registered-target
3
4---
5name:            test_add
6legalized:       true
7regBankSelected: false
8selected:        false
9tracksRegLiveness: true
10liveins:
11body:             |
12  bb.0:
13
14    %0:_(s32) = G_CONSTANT i32 0
15    %1:_(s32) = G_CONSTANT i32 1
16
17    ; CHECK: Bad machine code: Too few operands
18    %2:_(s32) = G_ADD
19
20    ; CHECK: Bad machine code: Too few operands
21    %3:_(s32) = G_ADD %0
22    %4:_(s32) = G_ADD %0, %1
23
24    ; CHECK: Bad machine code: Too few operands
25    ; CHECK: Bad machine code: Explicit definition marked as use
26    G_ADD %0, %1
27
28    ; CHECK: Bad machine code: generic instruction must use register operands
29    %5:_(s32) = G_ADD %0, 1
30
31    %6:_(s64) = G_CONSTANT i64 0
32
33    ; CHECK: Bad machine code: Type mismatch in generic instruction
34    ; CHECK: Bad machine code: Generic virtual register does not allow subregister index
35    %8:_(s32) = G_ADD %6.sub_32:_(s64), %0
36
37...
38