1#RUN: not --crash llc -o - -mtriple=arm64 -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s 2# REQUIRES: aarch64-registered-target 3 4--- 5name: test_addrspacecast 6legalized: true 7regBankSelected: false 8selected: false 9tracksRegLiveness: true 10liveins: 11body: | 12 bb.0: 13 14 %0:_(s64) = G_IMPLICIT_DEF 15 %1:_(p0) = G_IMPLICIT_DEF 16 %2:_(<2 x s64>) = G_IMPLICIT_DEF 17 %3:_(<2 x p0>) = G_IMPLICIT_DEF 18 19 ; CHECK: Bad machine code: Too few operands 20 %4:_(s64) = G_ADDRSPACE_CAST 21 22 ; CHECK: Bad machine code: Too few operands 23 ; CHECK: Bad machine code: Explicit definition marked as use 24 G_ADDRSPACE_CAST %1 25 26 ; CHECK: Bad machine code: addrspacecast types must be pointers 27 %5:_(p0) = G_ADDRSPACE_CAST %0 28 29 ; CHECK: Bad machine code: addrspacecast types must be pointers 30 %6:_(s64) = G_ADDRSPACE_CAST %1 31 32 ; CHECK: Bad machine code: addrspacecast types must be pointers 33 %7:_(<2 x s64>) = G_ADDRSPACE_CAST %1 34 35 ; CHECK: Bad machine code: addrspacecast types must be pointers 36 %8:_(<2 x p0>) = G_ADDRSPACE_CAST %2 37 38 ; CHECK: Bad machine code: operand types must be all-vector or all-scalar 39 %9:_(<2 x p1>) = G_ADDRSPACE_CAST %1 40 41 ; CHECK: Bad machine code: operand types must be all-vector or all-scalar 42 %10:_(p1) = G_ADDRSPACE_CAST %3 43 44 ; CHECK: Bad machine code: operand types must preserve number of vector elements 45 %11:_(<4 x p1>) = G_ADDRSPACE_CAST %3 46 47 ; CHECK: Bad machine code: operand types must preserve number of vector elements 48 %12:_(<4 x p1>) = G_IMPLICIT_DEF 49 %13:_(<2 x p0>) = G_ADDRSPACE_CAST %12 50 51 ; CHECK: Bad machine code: addrspacecast must convert different address spaces 52 %14:_(p0) = G_ADDRSPACE_CAST %1 53 54 ; CHECK: Bad machine code: addrspacecast must convert different address spaces 55 %15:_(<2 x p0>) = G_ADDRSPACE_CAST %3 56 57... 58