| #RUN: not --crash llc -march=x86-64 -run-pass=none -verify-machineinstrs -o /dev/null %s 2>&1 | FileCheck %s |
| # REQUIRES: x86-registered-target |
| # These copies have mismatched type sizes that are allowed because the |
| # register class is defined to directly include the narrower type. |
| liveins: $xmm0, $xmm1, $xmm2, $xmm3, $xmm4 |
| %3:_(<4 x s32>) = COPY $xmm3 |
| %4:_(<2 x s64>) = COPY $xmm4 |
| name: test_invalid_copies |
| liveins: $xmm0, $xmm1, $xmm2, $xmm3 |
| ; FP16 reg is sub_reg of xmm |
| ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes *** |
| %1:_(<4 x s16>) = COPY $xmm1 |
| ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes *** |
| ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes *** |
| %3:_(<8 x s32>) = COPY $xmm3 |
| ; FP16 reg is sub_reg of xmm |
| ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes *** |
| ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes *** |
| ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes *** |