brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · f3323c4 Raw
55 lines · plain
1# RUN: not --crash llc -mtriple=x86_64 -run-pass=none -verify-machineinstrs -o /dev/null %s 2>&1 | FileCheck %s -implicit-check-not="Bad machine code"2# REQUIRES: x86-registered-target3 4# These copies have mismatched type sizes that are allowed because the5# register class is defined to directly include the narrower type.6---7name:            test_valid_copies8tracksRegLiveness: true9body:             |10  bb.0:11    liveins: $xmm0, $xmm1, $xmm2, $xmm3, $xmm412    %0:_(s32) = COPY $xmm013    %1:_(s64) = COPY $xmm114    %2:_(s128) = COPY $xmm215    %3:_(<4 x s32>) = COPY $xmm316    %4:_(<2 x s64>) = COPY $xmm417    $xmm0 = COPY %018    $xmm1 = COPY %119    $xmm2 = COPY %220    $xmm3 = COPY %321    $xmm4 = COPY %422...23 24---25name:            test_invalid_copies26tracksRegLiveness: true27body:             |28  bb.0:29    liveins: $xmm0, $xmm1, $xmm2, $xmm330 31    ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes ***32    ; CHECK: - instruction: %0:_(<4 x s16>) = COPY $xmm133    %0:_(<4 x s16>) = COPY $xmm134 35    ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes ***36    ; CHECK: - instruction: %1:_(s256) = COPY $xmm237    %1:_(s256) = COPY $xmm238 39    ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes ***40    ; CHECK: - instruction: %2:_(<8 x s32>) = COPY $xmm341    %2:_(<8 x s32>) = COPY $xmm342 43    ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes ***44    ; CHECK: - instruction: $xmm1 = COPY %0:_(<4 x s16>)45    $xmm1 = COPY %046 47    ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes ***48    ; CHECK: - instruction: $xmm2 = COPY %1:_(s256)49    $xmm2 = COPY %150 51    ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes ***52    ; CHECK: - instruction: $xmm3 = COPY %2:_(<8 x s32>)53    $xmm3 = COPY %254...55