llvm-project
33 строки · 897.0 Байт
1#RUN: not --crash llc -o - -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
2# REQUIRES: aarch64-registered-target
3--- |
4; ModuleID = 'test.ll'
5source_filename = "test.ll"
6target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
7target triple = "aarch64-unknown-unknown"
8
9define i32 @test_copy(i32 %argc) {
10ret i32 0
11}
12define i32 @test_copy_type_mismatch(i32 %argc) {
13ret i32 0
14}
15
16...
17---
18name: test_copy
19legalized: true
20regBankSelected: false
21selected: false
22tracksRegLiveness: true
23registers:
24- { id: 0, class: _, preferred-register: '' }
25liveins:
26body: |
27bb.0:
28liveins: $w0
29; This test is used to catch verifier errors with copys having mismatching sizes
30; CHECK: Bad machine code: Copy Instruction is illegal with mismatching sizes
31
32%0(s8) = COPY $w0
33...
34