]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Verifier/test_copy.mir
Vendor import of llvm trunk r338150:
[FreeBSD/FreeBSD.git] / test / Verifier / test_copy.mir
1 #RUN: not llc -o - -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
2 # REQUIRES: global-isel, aarch64-registered-target
3 --- |
4   ; ModuleID = 'test.ll'
5   source_filename = "test.ll"
6   target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
7   target triple = "aarch64-unknown-unknown"
8   
9   define i32 @test_copy(i32 %argc) {
10     ret i32 0
11   }
12   define i32 @test_copy_type_mismatch(i32 %argc) {
13     ret i32 0
14   }
15
16 ...
17 ---
18 name:            test_copy
19 legalized:       true
20 regBankSelected: false
21 selected:        false
22 tracksRegLiveness: true
23 registers:       
24   - { id: 0, class: _, preferred-register: '' }
25 liveins:         
26 body:             |
27   bb.0:
28     liveins: $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 ...