46 lines · plain
1#RUN: not --crash llc -o - -mtriple=arm64 -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s2# REQUIRES: aarch64-registered-target3 4---5name: test_ptrtoint6legalized: true7regBankSelected: false8selected: false9tracksRegLiveness: true10liveins:11body: |12 bb.0:13 14 %0:_(s64) = G_IMPLICIT_DEF15 %1:_(p0) = G_IMPLICIT_DEF16 %2:_(<2 x s64>) = G_IMPLICIT_DEF17 %3:_(<2 x p0>) = G_IMPLICIT_DEF18 19 ; CHECK: Bad machine code: Too few operands20 %4:_(s64) = G_PTRTOINT21 22 ; CHECK: Bad machine code: Too few operands23 ; CHECK: Bad machine code: Explicit definition marked as use24 G_PTRTOINT %125 26 ; CHECK: Bad machine code: ptrtoint result type must not be a pointer27 %5:_(p0) = G_PTRTOINT %128 29 ; CHECK: Bad machine code: ptrtoint result type must not be a pointer30 %6:_(<2 x p0>) = G_PTRTOINT %031 32 ; CHECK: Bad machine code: ptrtoint source type must be a pointer33 %7:_(<2 x s64>) = G_PTRTOINT %234 35 ; CHECK: Bad machine code: operand types must be all-vector or all-scalar36 %8:_(s64) = G_PTRTOINT %337 38 ; CHECK: Bad machine code: operand types must preserve number of vector elements39 %9:_(<4 x s64>) = G_INTTOPTR %340 41 ; CHECK: Bad machine code: operand types must preserve number of vector elements42 %10:_(<4 x p0>) = G_IMPLICIT_DEF43 %11:_(<2 x s64>) = G_PTRTOINT %1044 45...46