1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -O0 -run-pass=legalizer %s -o - | FileCheck -check-prefix=GFX9 %s
3
4---
5name: legal_s32_to_v2s16
6body: |
7  bb.0:
8    liveins: $vgpr0, $vgpr1
9
10    ; GFX9-LABEL: name: legal_s32_to_v2s16
11    ; GFX9: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
12    ; GFX9: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
13    ; GFX9: [[BUILD_VECTOR_TRUNC:%[0-9]+]]:_(<2 x s16>) = G_BUILD_VECTOR_TRUNC [[COPY]](s32), [[COPY1]](s32)
14    ; GFX9: S_NOP 0, implicit [[BUILD_VECTOR_TRUNC]](<2 x s16>)
15    %0:_(s32) = COPY $vgpr0
16    %1:_(s32) = COPY $vgpr1
17    %2:_(<2 x s16>) = G_BUILD_VECTOR_TRUNC %0, %1
18    S_NOP 0, implicit %2
19...
20