28 lines · plain
1#RUN: not --crash llc -mtriple=aarch64 -o - -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s2# REQUIRES: aarch64-registered-target3 4---5name: test_llround6legalized: true7regBankSelected: false8selected: false9tracksRegLiveness: true10liveins:11body: |12 bb.0:13 liveins: $x0, $q014 %ptr:_(p0) = COPY $x015 %vector:_(<2 x s64>) = COPY $q016 17 ; CHECK: Bad machine code: Source operand must not be a pointer type18 ; CHECK: instruction: %no_ptrs:_(s32) = G_LLROUND %ptr:_(p0)19 %no_ptrs:_(s32) = G_LLROUND %ptr:_(p0)20 21 ; CHECK: Bad machine code: operand types must be all-vector or all-scalar22 ; CHECK: instruction: %no_vectors:_(s32) = G_LLROUND %vector:_(<2 x s64>)23 %no_vectors:_(s32) = G_LLROUND %vector:_(<2 x s64>)24 25 ; CHECK: Bad machine code: operand types must preserve number of vector elements26 ; CHECK: instruction: %inv_vectors:_(<3 x s32>) = G_LLROUND %vector:_(<2 x s64>)27 %inv_vectors:_(<3 x s32>) = G_LLROUND %vector:_(<2 x s64>)28