forked from OSchip/llvm-project
22 lines
818 B
YAML
22 lines
818 B
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -run-pass=legalizer %s -o - | FileCheck %s
|
|
|
|
---
|
|
name: insert_vector_elt_0_v2i32
|
|
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1, $vgpr2
|
|
; CHECK-LABEL: name: insert_vector_elt_0_v2i32
|
|
; CHECK: [[COPY:%[0-9]+]]:_(<2 x s32>) = COPY $vgpr0_vgpr1
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 0
|
|
; CHECK: [[IVEC:%[0-9]+]]:_(<2 x s32>) = G_INSERT_VECTOR_ELT [[COPY]], [[COPY1]](s32), [[C]](s32)
|
|
; CHECK: $vgpr0_vgpr1 = COPY [[IVEC]](<2 x s32>)
|
|
%0:_(<2 x s32>) = COPY $vgpr0_vgpr1
|
|
%1:_(s32) = COPY $vgpr2
|
|
%2:_(s32) = G_CONSTANT i32 0
|
|
%3:_(<2 x s32>) = G_INSERT_VECTOR_ELT %0, %1, %2
|
|
$vgpr0_vgpr1 = COPY %3
|
|
...
|