2018-03-12 14:35:43 +01:00
|
|
|
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
2018-05-05 23:19:59 +02:00
|
|
|
# RUN: llc -mtriple=amdgcn-- -O0 -run-pass=legalizer -o - %s | FileCheck %s
|
2018-03-12 14:35:43 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
name: test_unmerge_s64_s32
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_unmerge_s64_s32
|
|
|
|
; CHECK: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 0
|
|
|
|
; CHECK: [[UV:%[0-9]+]]:_(s32), [[UV1:%[0-9]+]]:_(s32) = G_UNMERGE_VALUES [[C]](s64)
|
|
|
|
; CHECK: $vgpr0 = COPY [[UV]](s32)
|
|
|
|
; CHECK: $vgpr2 = COPY [[UV1]](s32)
|
|
|
|
%0:_(s64) = G_CONSTANT i64 0
|
|
|
|
%1:_(s32), %2:_(s32) = G_UNMERGE_VALUES %0:_(s64)
|
|
|
|
$vgpr0 = COPY %1(s32)
|
|
|
|
$vgpr2 = COPY %2(s32)
|
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
name: test_unmerge_v2s32_s32
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
liveins: $vgpr0_vgpr1
|
|
|
|
; CHECK-LABEL: name: test_unmerge_v2s32_s32
|
|
|
|
; CHECK: [[COPY:%[0-9]+]]:_(<2 x s32>) = COPY $vgpr0_vgpr1
|
|
|
|
; CHECK: [[UV:%[0-9]+]]:_(s32), [[UV1:%[0-9]+]]:_(s32) = G_UNMERGE_VALUES [[COPY]](<2 x s32>)
|
|
|
|
; CHECK: $vgpr0 = COPY [[UV]](s32)
|
|
|
|
; CHECK: $vgpr2 = COPY [[UV1]](s32)
|
|
|
|
%0:_(<2 x s32>) = COPY $vgpr0_vgpr1
|
|
|
|
%1:_(s32), %2:_(s32) = G_UNMERGE_VALUES %0:_(<2 x s32>)
|
|
|
|
$vgpr0 = COPY %1(s32)
|
|
|
|
$vgpr2 = COPY %2(s32)
|
|
|
|
...
|