mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
505cc9fd53
Summary: Combine unmerge(trunc) to enable other merge combines. Without this combine, the scalar unmerge(trunc(merge)) pattern cannot be combined and easily lead to hard-to-legalize merge/unmerge artifacts. Reviewed By: arsenm Tags: #llvm Differential Revision: https://reviews.llvm.org/D79567
1244 lines
64 KiB
YAML
1244 lines
64 KiB
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=tahiti -O0 -run-pass=legalizer -global-isel-abort=2 -pass-remarks-missed='gisel*' -o - %s 2> %t | FileCheck %s
|
|
# FileCheck -check-prefix=ERR %s < %t
|
|
|
|
# ERR-NOT: remark:
|
|
# ERR: remark: <unknown>:0:0: unable to legalize instruction: %197:_(s136) = G_INSERT %209:_, %206:_(s8), 128 (in function: test_merge_s68_s17_s17_s17_s17)
|
|
# ERR-NOT: remark:
|
|
|
|
|
|
---
|
|
name: test_merge_p1_s8
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3, $vgpr4, $vgpr5, $vgpr6, $vgpr7
|
|
; CHECK-LABEL: name: test_merge_p1_s8
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY $vgpr3
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY $vgpr4
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY $vgpr5
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s32) = COPY $vgpr6
|
|
; CHECK: [[COPY7:%[0-9]+]]:_(s32) = COPY $vgpr7
|
|
; CHECK: [[C:%[0-9]+]]:_(s16) = G_CONSTANT i16 255
|
|
; CHECK: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[COPY]](s32)
|
|
; CHECK: [[AND:%[0-9]+]]:_(s16) = G_AND [[TRUNC]], [[C]]
|
|
; CHECK: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 8
|
|
; CHECK: [[COPY8:%[0-9]+]]:_(s32) = COPY [[C1]](s32)
|
|
; CHECK: [[C2:%[0-9]+]]:_(s32) = G_CONSTANT i32 255
|
|
; CHECK: [[COPY9:%[0-9]+]]:_(s32) = COPY [[COPY1]](s32)
|
|
; CHECK: [[AND1:%[0-9]+]]:_(s32) = G_AND [[COPY9]], [[C2]]
|
|
; CHECK: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[AND1]], [[COPY8]](s32)
|
|
; CHECK: [[TRUNC1:%[0-9]+]]:_(s16) = G_TRUNC [[SHL]](s32)
|
|
; CHECK: [[OR:%[0-9]+]]:_(s16) = G_OR [[AND]], [[TRUNC1]]
|
|
; CHECK: [[TRUNC2:%[0-9]+]]:_(s16) = G_TRUNC [[COPY2]](s32)
|
|
; CHECK: [[AND2:%[0-9]+]]:_(s16) = G_AND [[TRUNC2]], [[C]]
|
|
; CHECK: [[COPY10:%[0-9]+]]:_(s32) = COPY [[C1]](s32)
|
|
; CHECK: [[COPY11:%[0-9]+]]:_(s32) = COPY [[COPY3]](s32)
|
|
; CHECK: [[AND3:%[0-9]+]]:_(s32) = G_AND [[COPY11]], [[C2]]
|
|
; CHECK: [[SHL1:%[0-9]+]]:_(s32) = G_SHL [[AND3]], [[COPY10]](s32)
|
|
; CHECK: [[TRUNC3:%[0-9]+]]:_(s16) = G_TRUNC [[SHL1]](s32)
|
|
; CHECK: [[OR1:%[0-9]+]]:_(s16) = G_OR [[AND2]], [[TRUNC3]]
|
|
; CHECK: [[TRUNC4:%[0-9]+]]:_(s16) = G_TRUNC [[COPY4]](s32)
|
|
; CHECK: [[AND4:%[0-9]+]]:_(s16) = G_AND [[TRUNC4]], [[C]]
|
|
; CHECK: [[COPY12:%[0-9]+]]:_(s32) = COPY [[C1]](s32)
|
|
; CHECK: [[COPY13:%[0-9]+]]:_(s32) = COPY [[COPY5]](s32)
|
|
; CHECK: [[AND5:%[0-9]+]]:_(s32) = G_AND [[COPY13]], [[C2]]
|
|
; CHECK: [[SHL2:%[0-9]+]]:_(s32) = G_SHL [[AND5]], [[COPY12]](s32)
|
|
; CHECK: [[TRUNC5:%[0-9]+]]:_(s16) = G_TRUNC [[SHL2]](s32)
|
|
; CHECK: [[OR2:%[0-9]+]]:_(s16) = G_OR [[AND4]], [[TRUNC5]]
|
|
; CHECK: [[TRUNC6:%[0-9]+]]:_(s16) = G_TRUNC [[COPY6]](s32)
|
|
; CHECK: [[AND6:%[0-9]+]]:_(s16) = G_AND [[TRUNC6]], [[C]]
|
|
; CHECK: [[COPY14:%[0-9]+]]:_(s32) = COPY [[COPY7]](s32)
|
|
; CHECK: [[AND7:%[0-9]+]]:_(s32) = G_AND [[COPY14]], [[C2]]
|
|
; CHECK: [[SHL3:%[0-9]+]]:_(s32) = G_SHL [[AND7]], [[C1]](s32)
|
|
; CHECK: [[TRUNC7:%[0-9]+]]:_(s16) = G_TRUNC [[SHL3]](s32)
|
|
; CHECK: [[OR3:%[0-9]+]]:_(s16) = G_OR [[AND6]], [[TRUNC7]]
|
|
; CHECK: [[ZEXT:%[0-9]+]]:_(s32) = G_ZEXT [[OR]](s16)
|
|
; CHECK: [[ZEXT1:%[0-9]+]]:_(s32) = G_ZEXT [[OR1]](s16)
|
|
; CHECK: [[C3:%[0-9]+]]:_(s32) = G_CONSTANT i32 16
|
|
; CHECK: [[SHL4:%[0-9]+]]:_(s32) = G_SHL [[ZEXT1]], [[C3]](s32)
|
|
; CHECK: [[OR4:%[0-9]+]]:_(s32) = G_OR [[ZEXT]], [[SHL4]]
|
|
; CHECK: [[ZEXT2:%[0-9]+]]:_(s32) = G_ZEXT [[OR2]](s16)
|
|
; CHECK: [[ZEXT3:%[0-9]+]]:_(s32) = G_ZEXT [[OR3]](s16)
|
|
; CHECK: [[SHL5:%[0-9]+]]:_(s32) = G_SHL [[ZEXT3]], [[C3]](s32)
|
|
; CHECK: [[OR5:%[0-9]+]]:_(s32) = G_OR [[ZEXT2]], [[SHL5]]
|
|
; CHECK: [[MV:%[0-9]+]]:_(p1) = G_MERGE_VALUES [[OR4]](s32), [[OR5]](s32)
|
|
; CHECK: $vgpr0_vgpr1 = COPY [[MV]](p1)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s32) = COPY $vgpr2
|
|
%3:_(s32) = COPY $vgpr3
|
|
%4:_(s32) = COPY $vgpr4
|
|
%5:_(s32) = COPY $vgpr5
|
|
%6:_(s32) = COPY $vgpr6
|
|
%7:_(s32) = COPY $vgpr7
|
|
%8:_(s8) = G_TRUNC %0
|
|
%9:_(s8) = G_TRUNC %1
|
|
%10:_(s8) = G_TRUNC %2
|
|
%11:_(s8) = G_TRUNC %3
|
|
%12:_(s8) = G_TRUNC %4
|
|
%13:_(s8) = G_TRUNC %5
|
|
%14:_(s8) = G_TRUNC %6
|
|
%15:_(s8) = G_TRUNC %7
|
|
%16:_(p1) = G_MERGE_VALUES %8, %9, %10, %11, %12, %13, %14, %15
|
|
$vgpr0_vgpr1 = COPY %16
|
|
|
|
...
|
|
|
|
---
|
|
name: test_merge_s16_s8_s8
|
|
body: |
|
|
bb.0:
|
|
; CHECK-LABEL: name: test_merge_s16_s8_s8
|
|
; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
|
|
; CHECK: [[C1:%[0-9]+]]:_(s16) = G_CONSTANT i16 255
|
|
; CHECK: [[C2:%[0-9]+]]:_(s16) = G_CONSTANT i16 0
|
|
; CHECK: [[AND:%[0-9]+]]:_(s16) = G_AND [[C2]], [[C1]]
|
|
; CHECK: [[C3:%[0-9]+]]:_(s32) = G_CONSTANT i32 8
|
|
; CHECK: [[C4:%[0-9]+]]:_(s32) = G_CONSTANT i32 255
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND1:%[0-9]+]]:_(s32) = G_AND [[COPY]], [[C4]]
|
|
; CHECK: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[AND1]], [[C3]](s32)
|
|
; CHECK: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[SHL]](s32)
|
|
; CHECK: [[OR:%[0-9]+]]:_(s16) = G_OR [[AND]], [[TRUNC]]
|
|
; CHECK: [[ANYEXT:%[0-9]+]]:_(s32) = G_ANYEXT [[OR]](s16)
|
|
; CHECK: $vgpr0 = COPY [[ANYEXT]](s32)
|
|
%0:_(s8) = G_CONSTANT i8 0
|
|
%1:_(s8) = G_CONSTANT i8 1
|
|
%2:_(s16) = G_MERGE_VALUES %0, %1
|
|
%3:_(s32) = G_ANYEXT %2
|
|
$vgpr0 = COPY %3
|
|
...
|
|
|
|
---
|
|
name: test_merge_s24_s8_s8_s8
|
|
body: |
|
|
bb.0:
|
|
; CHECK-LABEL: name: test_merge_s24_s8_s8_s8
|
|
; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
|
|
; CHECK: [[DEF:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF
|
|
; CHECK: [[C1:%[0-9]+]]:_(s16) = G_CONSTANT i16 255
|
|
; CHECK: [[C2:%[0-9]+]]:_(s16) = G_CONSTANT i16 0
|
|
; CHECK: [[AND:%[0-9]+]]:_(s16) = G_AND [[C2]], [[C1]]
|
|
; CHECK: [[C3:%[0-9]+]]:_(s32) = G_CONSTANT i32 8
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY [[C3]](s32)
|
|
; CHECK: [[C4:%[0-9]+]]:_(s32) = G_CONSTANT i32 255
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND1:%[0-9]+]]:_(s32) = G_AND [[COPY1]], [[C4]]
|
|
; CHECK: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[AND1]], [[COPY]](s32)
|
|
; CHECK: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[SHL]](s32)
|
|
; CHECK: [[OR:%[0-9]+]]:_(s16) = G_OR [[AND]], [[TRUNC]]
|
|
; CHECK: [[C5:%[0-9]+]]:_(s16) = G_CONSTANT i16 2
|
|
; CHECK: [[AND2:%[0-9]+]]:_(s16) = G_AND [[C5]], [[C1]]
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY [[DEF]](s32)
|
|
; CHECK: [[AND3:%[0-9]+]]:_(s32) = G_AND [[COPY2]], [[C4]]
|
|
; CHECK: [[SHL1:%[0-9]+]]:_(s32) = G_SHL [[AND3]], [[C3]](s32)
|
|
; CHECK: [[TRUNC1:%[0-9]+]]:_(s16) = G_TRUNC [[SHL1]](s32)
|
|
; CHECK: [[OR1:%[0-9]+]]:_(s16) = G_OR [[AND2]], [[TRUNC1]]
|
|
; CHECK: [[ZEXT:%[0-9]+]]:_(s32) = G_ZEXT [[OR]](s16)
|
|
; CHECK: [[ZEXT1:%[0-9]+]]:_(s32) = G_ZEXT [[OR1]](s16)
|
|
; CHECK: [[C6:%[0-9]+]]:_(s32) = G_CONSTANT i32 16
|
|
; CHECK: [[SHL2:%[0-9]+]]:_(s32) = G_SHL [[ZEXT1]], [[C6]](s32)
|
|
; CHECK: [[OR2:%[0-9]+]]:_(s32) = G_OR [[ZEXT]], [[SHL2]]
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY [[OR2]](s32)
|
|
; CHECK: $vgpr0 = COPY [[COPY3]](s32)
|
|
%0:_(s8) = G_CONSTANT i8 0
|
|
%1:_(s8) = G_CONSTANT i8 1
|
|
%2:_(s8) = G_CONSTANT i8 2
|
|
%3:_(s24) = G_MERGE_VALUES %0, %1, %2
|
|
%4:_(s32) = G_ANYEXT %3
|
|
$vgpr0 = COPY %4
|
|
...
|
|
|
|
---
|
|
name: test_merge_s32_s8_s8_s8_s8
|
|
body: |
|
|
bb.0:
|
|
; CHECK-LABEL: name: test_merge_s32_s8_s8_s8_s8
|
|
; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 0
|
|
; CHECK: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
|
|
; CHECK: [[C2:%[0-9]+]]:_(s32) = G_CONSTANT i32 2
|
|
; CHECK: [[C3:%[0-9]+]]:_(s32) = G_CONSTANT i32 3
|
|
; CHECK: [[C4:%[0-9]+]]:_(s32) = G_CONSTANT i32 255
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY]], [[C4]]
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY [[C1]](s32)
|
|
; CHECK: [[AND1:%[0-9]+]]:_(s32) = G_AND [[COPY1]], [[C4]]
|
|
; CHECK: [[C5:%[0-9]+]]:_(s32) = G_CONSTANT i32 8
|
|
; CHECK: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[AND1]], [[C5]](s32)
|
|
; CHECK: [[OR:%[0-9]+]]:_(s32) = G_OR [[AND]], [[SHL]]
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY [[C2]](s32)
|
|
; CHECK: [[AND2:%[0-9]+]]:_(s32) = G_AND [[COPY2]], [[C4]]
|
|
; CHECK: [[C6:%[0-9]+]]:_(s32) = G_CONSTANT i32 16
|
|
; CHECK: [[SHL1:%[0-9]+]]:_(s32) = G_SHL [[AND2]], [[C6]](s32)
|
|
; CHECK: [[OR1:%[0-9]+]]:_(s32) = G_OR [[OR]], [[SHL1]]
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY [[C3]](s32)
|
|
; CHECK: [[AND3:%[0-9]+]]:_(s32) = G_AND [[COPY3]], [[C4]]
|
|
; CHECK: [[C7:%[0-9]+]]:_(s32) = G_CONSTANT i32 24
|
|
; CHECK: [[SHL2:%[0-9]+]]:_(s32) = G_SHL [[AND3]], [[C7]](s32)
|
|
; CHECK: [[OR2:%[0-9]+]]:_(s32) = G_OR [[OR1]], [[SHL2]]
|
|
; CHECK: $vgpr0 = COPY [[OR2]](s32)
|
|
%0:_(s8) = G_CONSTANT i8 0
|
|
%1:_(s8) = G_CONSTANT i8 1
|
|
%2:_(s8) = G_CONSTANT i8 2
|
|
%3:_(s8) = G_CONSTANT i8 3
|
|
%4:_(s32) = G_MERGE_VALUES %0, %1, %2, %3
|
|
$vgpr0 = COPY %4
|
|
...
|
|
|
|
---
|
|
name: test_merge_s64_s32_s32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1
|
|
; CHECK-LABEL: name: test_merge_s64_s32_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[MV:%[0-9]+]]:_(s64) = G_MERGE_VALUES [[COPY]](s32), [[COPY1]](s32)
|
|
; CHECK: $vgpr1_vgpr2 = COPY [[MV]](s64)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s64) = G_MERGE_VALUES %0, %1
|
|
$vgpr1_vgpr2 = COPY %2
|
|
...
|
|
|
|
---
|
|
name: test_merge_s64_s16_s16_s16_s16
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3
|
|
; CHECK-LABEL: name: test_merge_s64_s16_s16_s16_s16
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY $vgpr3
|
|
; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 65535
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)
|
|
; CHECK: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY4]], [[C]]
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY [[COPY1]](s32)
|
|
; CHECK: [[AND1:%[0-9]+]]:_(s32) = G_AND [[COPY5]], [[C]]
|
|
; CHECK: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 16
|
|
; CHECK: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[AND1]], [[C1]](s32)
|
|
; CHECK: [[OR:%[0-9]+]]:_(s32) = G_OR [[AND]], [[SHL]]
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s32) = COPY [[COPY2]](s32)
|
|
; CHECK: [[AND2:%[0-9]+]]:_(s32) = G_AND [[COPY6]], [[C]]
|
|
; CHECK: [[COPY7:%[0-9]+]]:_(s32) = COPY [[COPY3]](s32)
|
|
; CHECK: [[AND3:%[0-9]+]]:_(s32) = G_AND [[COPY7]], [[C]]
|
|
; CHECK: [[SHL1:%[0-9]+]]:_(s32) = G_SHL [[AND3]], [[C1]](s32)
|
|
; CHECK: [[OR1:%[0-9]+]]:_(s32) = G_OR [[AND2]], [[SHL1]]
|
|
; CHECK: [[MV:%[0-9]+]]:_(s64) = G_MERGE_VALUES [[OR]](s32), [[OR1]](s32)
|
|
; CHECK: $vgpr1_vgpr2 = COPY [[MV]](s64)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s32) = COPY $vgpr2
|
|
%3:_(s32) = COPY $vgpr3
|
|
%4:_(s16) = G_TRUNC %0
|
|
%5:_(s16) = G_TRUNC %1
|
|
%6:_(s16) = G_TRUNC %2
|
|
%7:_(s16) = G_TRUNC %3
|
|
%8:_(s64) = G_MERGE_VALUES %4, %5, %6, %7
|
|
$vgpr1_vgpr2 = COPY %8
|
|
...
|
|
|
|
---
|
|
|
|
name: test_merge_s24_s4_s4_s4_s4_s4_s4
|
|
body: |
|
|
bb.0:
|
|
; CHECK-LABEL: name: test_merge_s24_s4_s4_s4_s4_s4_s4
|
|
; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
|
|
; CHECK: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 2
|
|
; CHECK: [[C2:%[0-9]+]]:_(s32) = G_CONSTANT i32 3
|
|
; CHECK: [[C3:%[0-9]+]]:_(s32) = G_CONSTANT i32 4
|
|
; CHECK: [[C4:%[0-9]+]]:_(s32) = G_CONSTANT i32 5
|
|
; CHECK: [[DEF:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF
|
|
; CHECK: [[C5:%[0-9]+]]:_(s16) = G_CONSTANT i16 15
|
|
; CHECK: [[C6:%[0-9]+]]:_(s16) = G_CONSTANT i16 0
|
|
; CHECK: [[AND:%[0-9]+]]:_(s16) = G_AND [[C6]], [[C5]]
|
|
; CHECK: [[C7:%[0-9]+]]:_(s16) = G_CONSTANT i16 4
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY [[C3]](s32)
|
|
; CHECK: [[C8:%[0-9]+]]:_(s32) = G_CONSTANT i32 15
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND1:%[0-9]+]]:_(s32) = G_AND [[COPY1]], [[C8]]
|
|
; CHECK: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[AND1]], [[COPY]](s32)
|
|
; CHECK: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[SHL]](s32)
|
|
; CHECK: [[OR:%[0-9]+]]:_(s16) = G_OR [[AND]], [[TRUNC]]
|
|
; CHECK: [[C9:%[0-9]+]]:_(s32) = G_CONSTANT i32 8
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY [[C9]](s32)
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY [[C1]](s32)
|
|
; CHECK: [[AND2:%[0-9]+]]:_(s32) = G_AND [[COPY3]], [[C8]]
|
|
; CHECK: [[SHL1:%[0-9]+]]:_(s32) = G_SHL [[AND2]], [[COPY2]](s32)
|
|
; CHECK: [[TRUNC1:%[0-9]+]]:_(s16) = G_TRUNC [[SHL1]](s32)
|
|
; CHECK: [[OR1:%[0-9]+]]:_(s16) = G_OR [[OR]], [[TRUNC1]]
|
|
; CHECK: [[C10:%[0-9]+]]:_(s32) = G_CONSTANT i32 12
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY [[C10]](s32)
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY [[C2]](s32)
|
|
; CHECK: [[AND3:%[0-9]+]]:_(s32) = G_AND [[COPY5]], [[C8]]
|
|
; CHECK: [[SHL2:%[0-9]+]]:_(s32) = G_SHL [[AND3]], [[COPY4]](s32)
|
|
; CHECK: [[TRUNC2:%[0-9]+]]:_(s16) = G_TRUNC [[SHL2]](s32)
|
|
; CHECK: [[OR2:%[0-9]+]]:_(s16) = G_OR [[OR1]], [[TRUNC2]]
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s16) = COPY [[C7]](s16)
|
|
; CHECK: [[AND4:%[0-9]+]]:_(s16) = G_AND [[COPY6]], [[C5]]
|
|
; CHECK: [[COPY7:%[0-9]+]]:_(s32) = COPY [[C3]](s32)
|
|
; CHECK: [[COPY8:%[0-9]+]]:_(s32) = COPY [[C4]](s32)
|
|
; CHECK: [[AND5:%[0-9]+]]:_(s32) = G_AND [[COPY8]], [[C8]]
|
|
; CHECK: [[SHL3:%[0-9]+]]:_(s32) = G_SHL [[AND5]], [[COPY7]](s32)
|
|
; CHECK: [[TRUNC3:%[0-9]+]]:_(s16) = G_TRUNC [[SHL3]](s32)
|
|
; CHECK: [[OR3:%[0-9]+]]:_(s16) = G_OR [[AND4]], [[TRUNC3]]
|
|
; CHECK: [[COPY9:%[0-9]+]]:_(s32) = COPY [[DEF]](s32)
|
|
; CHECK: [[AND6:%[0-9]+]]:_(s32) = G_AND [[COPY9]], [[C8]]
|
|
; CHECK: [[SHL4:%[0-9]+]]:_(s32) = G_SHL [[AND6]], [[C9]](s32)
|
|
; CHECK: [[TRUNC4:%[0-9]+]]:_(s16) = G_TRUNC [[SHL4]](s32)
|
|
; CHECK: [[OR4:%[0-9]+]]:_(s16) = G_OR [[OR3]], [[TRUNC4]]
|
|
; CHECK: [[COPY10:%[0-9]+]]:_(s32) = COPY [[DEF]](s32)
|
|
; CHECK: [[AND7:%[0-9]+]]:_(s32) = G_AND [[COPY10]], [[C8]]
|
|
; CHECK: [[SHL5:%[0-9]+]]:_(s32) = G_SHL [[AND7]], [[C10]](s32)
|
|
; CHECK: [[TRUNC5:%[0-9]+]]:_(s16) = G_TRUNC [[SHL5]](s32)
|
|
; CHECK: [[OR5:%[0-9]+]]:_(s16) = G_OR [[OR4]], [[TRUNC5]]
|
|
; CHECK: [[ZEXT:%[0-9]+]]:_(s32) = G_ZEXT [[OR2]](s16)
|
|
; CHECK: [[ZEXT1:%[0-9]+]]:_(s32) = G_ZEXT [[OR5]](s16)
|
|
; CHECK: [[C11:%[0-9]+]]:_(s32) = G_CONSTANT i32 16
|
|
; CHECK: [[SHL6:%[0-9]+]]:_(s32) = G_SHL [[ZEXT1]], [[C11]](s32)
|
|
; CHECK: [[OR6:%[0-9]+]]:_(s32) = G_OR [[ZEXT]], [[SHL6]]
|
|
; CHECK: [[TRUNC6:%[0-9]+]]:_(s24) = G_TRUNC [[OR6]](s32)
|
|
; CHECK: S_NOP 0, implicit [[TRUNC6]](s24)
|
|
%0:_(s4) = G_CONSTANT i4 0
|
|
%1:_(s4) = G_CONSTANT i4 1
|
|
%2:_(s4) = G_CONSTANT i4 2
|
|
%3:_(s4) = G_CONSTANT i4 3
|
|
%4:_(s4) = G_CONSTANT i4 4
|
|
%5:_(s4) = G_CONSTANT i4 5
|
|
%6:_(s24) = G_MERGE_VALUES %0, %1, %2, %3, %4, %5
|
|
S_NOP 0, implicit %6
|
|
...
|
|
|
|
---
|
|
name: test_merge_s28_s4_s4_s4_s4_s4_s4_s4
|
|
body: |
|
|
bb.0:
|
|
; CHECK-LABEL: name: test_merge_s28_s4_s4_s4_s4_s4_s4_s4
|
|
; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
|
|
; CHECK: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 2
|
|
; CHECK: [[C2:%[0-9]+]]:_(s32) = G_CONSTANT i32 3
|
|
; CHECK: [[C3:%[0-9]+]]:_(s32) = G_CONSTANT i32 4
|
|
; CHECK: [[C4:%[0-9]+]]:_(s32) = G_CONSTANT i32 5
|
|
; CHECK: [[C5:%[0-9]+]]:_(s32) = G_CONSTANT i32 6
|
|
; CHECK: [[DEF:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF
|
|
; CHECK: [[C6:%[0-9]+]]:_(s16) = G_CONSTANT i16 15
|
|
; CHECK: [[C7:%[0-9]+]]:_(s16) = G_CONSTANT i16 0
|
|
; CHECK: [[AND:%[0-9]+]]:_(s16) = G_AND [[C7]], [[C6]]
|
|
; CHECK: [[C8:%[0-9]+]]:_(s16) = G_CONSTANT i16 4
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY [[C3]](s32)
|
|
; CHECK: [[C9:%[0-9]+]]:_(s32) = G_CONSTANT i32 15
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND1:%[0-9]+]]:_(s32) = G_AND [[COPY1]], [[C9]]
|
|
; CHECK: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[AND1]], [[COPY]](s32)
|
|
; CHECK: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[SHL]](s32)
|
|
; CHECK: [[OR:%[0-9]+]]:_(s16) = G_OR [[AND]], [[TRUNC]]
|
|
; CHECK: [[C10:%[0-9]+]]:_(s32) = G_CONSTANT i32 8
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY [[C10]](s32)
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY [[C1]](s32)
|
|
; CHECK: [[AND2:%[0-9]+]]:_(s32) = G_AND [[COPY3]], [[C9]]
|
|
; CHECK: [[SHL1:%[0-9]+]]:_(s32) = G_SHL [[AND2]], [[COPY2]](s32)
|
|
; CHECK: [[TRUNC1:%[0-9]+]]:_(s16) = G_TRUNC [[SHL1]](s32)
|
|
; CHECK: [[OR1:%[0-9]+]]:_(s16) = G_OR [[OR]], [[TRUNC1]]
|
|
; CHECK: [[C11:%[0-9]+]]:_(s32) = G_CONSTANT i32 12
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY [[C11]](s32)
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY [[C2]](s32)
|
|
; CHECK: [[AND3:%[0-9]+]]:_(s32) = G_AND [[COPY5]], [[C9]]
|
|
; CHECK: [[SHL2:%[0-9]+]]:_(s32) = G_SHL [[AND3]], [[COPY4]](s32)
|
|
; CHECK: [[TRUNC2:%[0-9]+]]:_(s16) = G_TRUNC [[SHL2]](s32)
|
|
; CHECK: [[OR2:%[0-9]+]]:_(s16) = G_OR [[OR1]], [[TRUNC2]]
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s16) = COPY [[C8]](s16)
|
|
; CHECK: [[AND4:%[0-9]+]]:_(s16) = G_AND [[COPY6]], [[C6]]
|
|
; CHECK: [[COPY7:%[0-9]+]]:_(s32) = COPY [[C3]](s32)
|
|
; CHECK: [[COPY8:%[0-9]+]]:_(s32) = COPY [[C4]](s32)
|
|
; CHECK: [[AND5:%[0-9]+]]:_(s32) = G_AND [[COPY8]], [[C9]]
|
|
; CHECK: [[SHL3:%[0-9]+]]:_(s32) = G_SHL [[AND5]], [[COPY7]](s32)
|
|
; CHECK: [[TRUNC3:%[0-9]+]]:_(s16) = G_TRUNC [[SHL3]](s32)
|
|
; CHECK: [[OR3:%[0-9]+]]:_(s16) = G_OR [[AND4]], [[TRUNC3]]
|
|
; CHECK: [[COPY9:%[0-9]+]]:_(s32) = COPY [[C5]](s32)
|
|
; CHECK: [[AND6:%[0-9]+]]:_(s32) = G_AND [[COPY9]], [[C9]]
|
|
; CHECK: [[SHL4:%[0-9]+]]:_(s32) = G_SHL [[AND6]], [[C10]](s32)
|
|
; CHECK: [[TRUNC4:%[0-9]+]]:_(s16) = G_TRUNC [[SHL4]](s32)
|
|
; CHECK: [[OR4:%[0-9]+]]:_(s16) = G_OR [[OR3]], [[TRUNC4]]
|
|
; CHECK: [[COPY10:%[0-9]+]]:_(s32) = COPY [[DEF]](s32)
|
|
; CHECK: [[AND7:%[0-9]+]]:_(s32) = G_AND [[COPY10]], [[C9]]
|
|
; CHECK: [[SHL5:%[0-9]+]]:_(s32) = G_SHL [[AND7]], [[C11]](s32)
|
|
; CHECK: [[TRUNC5:%[0-9]+]]:_(s16) = G_TRUNC [[SHL5]](s32)
|
|
; CHECK: [[OR5:%[0-9]+]]:_(s16) = G_OR [[OR4]], [[TRUNC5]]
|
|
; CHECK: [[ZEXT:%[0-9]+]]:_(s32) = G_ZEXT [[OR2]](s16)
|
|
; CHECK: [[ZEXT1:%[0-9]+]]:_(s32) = G_ZEXT [[OR5]](s16)
|
|
; CHECK: [[C12:%[0-9]+]]:_(s32) = G_CONSTANT i32 16
|
|
; CHECK: [[SHL6:%[0-9]+]]:_(s32) = G_SHL [[ZEXT1]], [[C12]](s32)
|
|
; CHECK: [[OR6:%[0-9]+]]:_(s32) = G_OR [[ZEXT]], [[SHL6]]
|
|
; CHECK: [[TRUNC6:%[0-9]+]]:_(s28) = G_TRUNC [[OR6]](s32)
|
|
; CHECK: S_NOP 0, implicit [[TRUNC6]](s28)
|
|
%0:_(s4) = G_CONSTANT i4 0
|
|
%1:_(s4) = G_CONSTANT i4 1
|
|
%2:_(s4) = G_CONSTANT i4 2
|
|
%3:_(s4) = G_CONSTANT i4 3
|
|
%4:_(s4) = G_CONSTANT i4 4
|
|
%5:_(s4) = G_CONSTANT i4 5
|
|
%6:_(s4) = G_CONSTANT i4 6
|
|
%7:_(s28) = G_MERGE_VALUES %0, %1, %2, %3, %4, %5, %6
|
|
S_NOP 0, implicit %7
|
|
...
|
|
|
|
---
|
|
name: test_merge_s32_s4_s4_s4_s4_s4_s4_s4_s4
|
|
body: |
|
|
bb.0:
|
|
; CHECK-LABEL: name: test_merge_s32_s4_s4_s4_s4_s4_s4_s4_s4
|
|
; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 0
|
|
; CHECK: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
|
|
; CHECK: [[C2:%[0-9]+]]:_(s32) = G_CONSTANT i32 2
|
|
; CHECK: [[C3:%[0-9]+]]:_(s32) = G_CONSTANT i32 3
|
|
; CHECK: [[C4:%[0-9]+]]:_(s32) = G_CONSTANT i32 4
|
|
; CHECK: [[C5:%[0-9]+]]:_(s32) = G_CONSTANT i32 5
|
|
; CHECK: [[C6:%[0-9]+]]:_(s32) = G_CONSTANT i32 6
|
|
; CHECK: [[C7:%[0-9]+]]:_(s32) = G_CONSTANT i32 7
|
|
; CHECK: [[C8:%[0-9]+]]:_(s32) = G_CONSTANT i32 15
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY]], [[C8]]
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY [[C1]](s32)
|
|
; CHECK: [[AND1:%[0-9]+]]:_(s32) = G_AND [[COPY1]], [[C8]]
|
|
; CHECK: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[AND1]], [[C4]](s32)
|
|
; CHECK: [[OR:%[0-9]+]]:_(s32) = G_OR [[AND]], [[SHL]]
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY [[C2]](s32)
|
|
; CHECK: [[AND2:%[0-9]+]]:_(s32) = G_AND [[COPY2]], [[C8]]
|
|
; CHECK: [[C9:%[0-9]+]]:_(s32) = G_CONSTANT i32 8
|
|
; CHECK: [[SHL1:%[0-9]+]]:_(s32) = G_SHL [[AND2]], [[C9]](s32)
|
|
; CHECK: [[OR1:%[0-9]+]]:_(s32) = G_OR [[OR]], [[SHL1]]
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY [[C3]](s32)
|
|
; CHECK: [[AND3:%[0-9]+]]:_(s32) = G_AND [[COPY3]], [[C8]]
|
|
; CHECK: [[C10:%[0-9]+]]:_(s32) = G_CONSTANT i32 12
|
|
; CHECK: [[SHL2:%[0-9]+]]:_(s32) = G_SHL [[AND3]], [[C10]](s32)
|
|
; CHECK: [[OR2:%[0-9]+]]:_(s32) = G_OR [[OR1]], [[SHL2]]
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY [[C4]](s32)
|
|
; CHECK: [[AND4:%[0-9]+]]:_(s32) = G_AND [[COPY4]], [[C8]]
|
|
; CHECK: [[C11:%[0-9]+]]:_(s32) = G_CONSTANT i32 16
|
|
; CHECK: [[SHL3:%[0-9]+]]:_(s32) = G_SHL [[AND4]], [[C11]](s32)
|
|
; CHECK: [[OR3:%[0-9]+]]:_(s32) = G_OR [[OR2]], [[SHL3]]
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY [[C5]](s32)
|
|
; CHECK: [[AND5:%[0-9]+]]:_(s32) = G_AND [[COPY5]], [[C8]]
|
|
; CHECK: [[C12:%[0-9]+]]:_(s32) = G_CONSTANT i32 20
|
|
; CHECK: [[SHL4:%[0-9]+]]:_(s32) = G_SHL [[AND5]], [[C12]](s32)
|
|
; CHECK: [[OR4:%[0-9]+]]:_(s32) = G_OR [[OR3]], [[SHL4]]
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s32) = COPY [[C6]](s32)
|
|
; CHECK: [[AND6:%[0-9]+]]:_(s32) = G_AND [[COPY6]], [[C8]]
|
|
; CHECK: [[C13:%[0-9]+]]:_(s32) = G_CONSTANT i32 24
|
|
; CHECK: [[SHL5:%[0-9]+]]:_(s32) = G_SHL [[AND6]], [[C13]](s32)
|
|
; CHECK: [[OR5:%[0-9]+]]:_(s32) = G_OR [[OR4]], [[SHL5]]
|
|
; CHECK: [[COPY7:%[0-9]+]]:_(s32) = COPY [[C7]](s32)
|
|
; CHECK: [[AND7:%[0-9]+]]:_(s32) = G_AND [[COPY7]], [[C8]]
|
|
; CHECK: [[C14:%[0-9]+]]:_(s32) = G_CONSTANT i32 28
|
|
; CHECK: [[SHL6:%[0-9]+]]:_(s32) = G_SHL [[AND7]], [[C14]](s32)
|
|
; CHECK: [[OR6:%[0-9]+]]:_(s32) = G_OR [[OR5]], [[SHL6]]
|
|
; CHECK: S_NOP 0, implicit [[OR6]](s32)
|
|
%0:_(s4) = G_CONSTANT i4 0
|
|
%1:_(s4) = G_CONSTANT i4 1
|
|
%2:_(s4) = G_CONSTANT i4 2
|
|
%3:_(s4) = G_CONSTANT i4 3
|
|
%4:_(s4) = G_CONSTANT i4 4
|
|
%5:_(s4) = G_CONSTANT i4 5
|
|
%6:_(s4) = G_CONSTANT i4 6
|
|
%7:_(s4) = G_CONSTANT i4 7
|
|
%8:_(s32) = G_MERGE_VALUES %0, %1, %2, %3, %4, %5, %6, %7
|
|
S_NOP 0, implicit %8
|
|
...
|
|
|
|
---
|
|
name: test_merge_s64_s8_s8_s8_s8_s8_s8_s8_s8
|
|
body: |
|
|
bb.0:
|
|
; CHECK-LABEL: name: test_merge_s64_s8_s8_s8_s8_s8_s8_s8_s8
|
|
; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
|
|
; CHECK: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 3
|
|
; CHECK: [[C2:%[0-9]+]]:_(s32) = G_CONSTANT i32 5
|
|
; CHECK: [[C3:%[0-9]+]]:_(s32) = G_CONSTANT i32 7
|
|
; CHECK: [[C4:%[0-9]+]]:_(s16) = G_CONSTANT i16 255
|
|
; CHECK: [[C5:%[0-9]+]]:_(s16) = G_CONSTANT i16 0
|
|
; CHECK: [[AND:%[0-9]+]]:_(s16) = G_AND [[C5]], [[C4]]
|
|
; CHECK: [[C6:%[0-9]+]]:_(s32) = G_CONSTANT i32 8
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY [[C6]](s32)
|
|
; CHECK: [[C7:%[0-9]+]]:_(s32) = G_CONSTANT i32 255
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND1:%[0-9]+]]:_(s32) = G_AND [[COPY1]], [[C7]]
|
|
; CHECK: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[AND1]], [[COPY]](s32)
|
|
; CHECK: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[SHL]](s32)
|
|
; CHECK: [[OR:%[0-9]+]]:_(s16) = G_OR [[AND]], [[TRUNC]]
|
|
; CHECK: [[C8:%[0-9]+]]:_(s16) = G_CONSTANT i16 2
|
|
; CHECK: [[AND2:%[0-9]+]]:_(s16) = G_AND [[C8]], [[C4]]
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY [[C6]](s32)
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY [[C1]](s32)
|
|
; CHECK: [[AND3:%[0-9]+]]:_(s32) = G_AND [[COPY3]], [[C7]]
|
|
; CHECK: [[SHL1:%[0-9]+]]:_(s32) = G_SHL [[AND3]], [[COPY2]](s32)
|
|
; CHECK: [[TRUNC1:%[0-9]+]]:_(s16) = G_TRUNC [[SHL1]](s32)
|
|
; CHECK: [[OR1:%[0-9]+]]:_(s16) = G_OR [[AND2]], [[TRUNC1]]
|
|
; CHECK: [[C9:%[0-9]+]]:_(s16) = G_CONSTANT i16 4
|
|
; CHECK: [[AND4:%[0-9]+]]:_(s16) = G_AND [[C9]], [[C4]]
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY [[C6]](s32)
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY [[C2]](s32)
|
|
; CHECK: [[AND5:%[0-9]+]]:_(s32) = G_AND [[COPY5]], [[C7]]
|
|
; CHECK: [[SHL2:%[0-9]+]]:_(s32) = G_SHL [[AND5]], [[COPY4]](s32)
|
|
; CHECK: [[TRUNC2:%[0-9]+]]:_(s16) = G_TRUNC [[SHL2]](s32)
|
|
; CHECK: [[OR2:%[0-9]+]]:_(s16) = G_OR [[AND4]], [[TRUNC2]]
|
|
; CHECK: [[C10:%[0-9]+]]:_(s16) = G_CONSTANT i16 6
|
|
; CHECK: [[AND6:%[0-9]+]]:_(s16) = G_AND [[C10]], [[C4]]
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s32) = COPY [[C3]](s32)
|
|
; CHECK: [[AND7:%[0-9]+]]:_(s32) = G_AND [[COPY6]], [[C7]]
|
|
; CHECK: [[SHL3:%[0-9]+]]:_(s32) = G_SHL [[AND7]], [[C6]](s32)
|
|
; CHECK: [[TRUNC3:%[0-9]+]]:_(s16) = G_TRUNC [[SHL3]](s32)
|
|
; CHECK: [[OR3:%[0-9]+]]:_(s16) = G_OR [[AND6]], [[TRUNC3]]
|
|
; CHECK: [[ZEXT:%[0-9]+]]:_(s32) = G_ZEXT [[OR]](s16)
|
|
; CHECK: [[ZEXT1:%[0-9]+]]:_(s32) = G_ZEXT [[OR1]](s16)
|
|
; CHECK: [[C11:%[0-9]+]]:_(s32) = G_CONSTANT i32 16
|
|
; CHECK: [[SHL4:%[0-9]+]]:_(s32) = G_SHL [[ZEXT1]], [[C11]](s32)
|
|
; CHECK: [[OR4:%[0-9]+]]:_(s32) = G_OR [[ZEXT]], [[SHL4]]
|
|
; CHECK: [[ZEXT2:%[0-9]+]]:_(s32) = G_ZEXT [[OR2]](s16)
|
|
; CHECK: [[ZEXT3:%[0-9]+]]:_(s32) = G_ZEXT [[OR3]](s16)
|
|
; CHECK: [[SHL5:%[0-9]+]]:_(s32) = G_SHL [[ZEXT3]], [[C11]](s32)
|
|
; CHECK: [[OR5:%[0-9]+]]:_(s32) = G_OR [[ZEXT2]], [[SHL5]]
|
|
; CHECK: [[MV:%[0-9]+]]:_(s64) = G_MERGE_VALUES [[OR4]](s32), [[OR5]](s32)
|
|
; CHECK: $vgpr0_vgpr1 = COPY [[MV]](s64)
|
|
%0:_(s8) = G_CONSTANT i8 0
|
|
%1:_(s8) = G_CONSTANT i8 1
|
|
%2:_(s8) = G_CONSTANT i8 2
|
|
%3:_(s8) = G_CONSTANT i8 3
|
|
%4:_(s8) = G_CONSTANT i8 4
|
|
%5:_(s8) = G_CONSTANT i8 5
|
|
%6:_(s8) = G_CONSTANT i8 6
|
|
%7:_(s8) = G_CONSTANT i8 7
|
|
%8:_(s64) = G_MERGE_VALUES %0, %1, %2, %3, %4, %5, %6, %7
|
|
$vgpr0_vgpr1 = COPY %8
|
|
...
|
|
|
|
---
|
|
name: test_merge_s96_s8_s8_s8_s8_s8_s8_s8_s8_s8_s8_s8_s8
|
|
body: |
|
|
bb.0:
|
|
; CHECK-LABEL: name: test_merge_s96_s8_s8_s8_s8_s8_s8_s8_s8_s8_s8_s8_s8
|
|
; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
|
|
; CHECK: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 3
|
|
; CHECK: [[C2:%[0-9]+]]:_(s32) = G_CONSTANT i32 5
|
|
; CHECK: [[C3:%[0-9]+]]:_(s32) = G_CONSTANT i32 7
|
|
; CHECK: [[C4:%[0-9]+]]:_(s32) = G_CONSTANT i32 8
|
|
; CHECK: [[C5:%[0-9]+]]:_(s32) = G_CONSTANT i32 9
|
|
; CHECK: [[C6:%[0-9]+]]:_(s32) = G_CONSTANT i32 11
|
|
; CHECK: [[C7:%[0-9]+]]:_(s16) = G_CONSTANT i16 255
|
|
; CHECK: [[C8:%[0-9]+]]:_(s16) = G_CONSTANT i16 0
|
|
; CHECK: [[AND:%[0-9]+]]:_(s16) = G_AND [[C8]], [[C7]]
|
|
; CHECK: [[C9:%[0-9]+]]:_(s16) = G_CONSTANT i16 8
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY [[C4]](s32)
|
|
; CHECK: [[C10:%[0-9]+]]:_(s32) = G_CONSTANT i32 255
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND1:%[0-9]+]]:_(s32) = G_AND [[COPY1]], [[C10]]
|
|
; CHECK: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[AND1]], [[COPY]](s32)
|
|
; CHECK: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[SHL]](s32)
|
|
; CHECK: [[OR:%[0-9]+]]:_(s16) = G_OR [[AND]], [[TRUNC]]
|
|
; CHECK: [[C11:%[0-9]+]]:_(s16) = G_CONSTANT i16 2
|
|
; CHECK: [[AND2:%[0-9]+]]:_(s16) = G_AND [[C11]], [[C7]]
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY [[C4]](s32)
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY [[C1]](s32)
|
|
; CHECK: [[AND3:%[0-9]+]]:_(s32) = G_AND [[COPY3]], [[C10]]
|
|
; CHECK: [[SHL1:%[0-9]+]]:_(s32) = G_SHL [[AND3]], [[COPY2]](s32)
|
|
; CHECK: [[TRUNC1:%[0-9]+]]:_(s16) = G_TRUNC [[SHL1]](s32)
|
|
; CHECK: [[OR1:%[0-9]+]]:_(s16) = G_OR [[AND2]], [[TRUNC1]]
|
|
; CHECK: [[C12:%[0-9]+]]:_(s16) = G_CONSTANT i16 4
|
|
; CHECK: [[AND4:%[0-9]+]]:_(s16) = G_AND [[C12]], [[C7]]
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY [[C4]](s32)
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY [[C2]](s32)
|
|
; CHECK: [[AND5:%[0-9]+]]:_(s32) = G_AND [[COPY5]], [[C10]]
|
|
; CHECK: [[SHL2:%[0-9]+]]:_(s32) = G_SHL [[AND5]], [[COPY4]](s32)
|
|
; CHECK: [[TRUNC2:%[0-9]+]]:_(s16) = G_TRUNC [[SHL2]](s32)
|
|
; CHECK: [[OR2:%[0-9]+]]:_(s16) = G_OR [[AND4]], [[TRUNC2]]
|
|
; CHECK: [[C13:%[0-9]+]]:_(s16) = G_CONSTANT i16 6
|
|
; CHECK: [[AND6:%[0-9]+]]:_(s16) = G_AND [[C13]], [[C7]]
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s32) = COPY [[C4]](s32)
|
|
; CHECK: [[COPY7:%[0-9]+]]:_(s32) = COPY [[C3]](s32)
|
|
; CHECK: [[AND7:%[0-9]+]]:_(s32) = G_AND [[COPY7]], [[C10]]
|
|
; CHECK: [[SHL3:%[0-9]+]]:_(s32) = G_SHL [[AND7]], [[COPY6]](s32)
|
|
; CHECK: [[TRUNC3:%[0-9]+]]:_(s16) = G_TRUNC [[SHL3]](s32)
|
|
; CHECK: [[OR3:%[0-9]+]]:_(s16) = G_OR [[AND6]], [[TRUNC3]]
|
|
; CHECK: [[COPY8:%[0-9]+]]:_(s16) = COPY [[C9]](s16)
|
|
; CHECK: [[AND8:%[0-9]+]]:_(s16) = G_AND [[COPY8]], [[C7]]
|
|
; CHECK: [[COPY9:%[0-9]+]]:_(s32) = COPY [[C4]](s32)
|
|
; CHECK: [[COPY10:%[0-9]+]]:_(s32) = COPY [[C5]](s32)
|
|
; CHECK: [[AND9:%[0-9]+]]:_(s32) = G_AND [[COPY10]], [[C10]]
|
|
; CHECK: [[SHL4:%[0-9]+]]:_(s32) = G_SHL [[AND9]], [[COPY9]](s32)
|
|
; CHECK: [[TRUNC4:%[0-9]+]]:_(s16) = G_TRUNC [[SHL4]](s32)
|
|
; CHECK: [[OR4:%[0-9]+]]:_(s16) = G_OR [[AND8]], [[TRUNC4]]
|
|
; CHECK: [[C14:%[0-9]+]]:_(s16) = G_CONSTANT i16 10
|
|
; CHECK: [[AND10:%[0-9]+]]:_(s16) = G_AND [[C14]], [[C7]]
|
|
; CHECK: [[COPY11:%[0-9]+]]:_(s32) = COPY [[C4]](s32)
|
|
; CHECK: [[COPY12:%[0-9]+]]:_(s32) = COPY [[C6]](s32)
|
|
; CHECK: [[AND11:%[0-9]+]]:_(s32) = G_AND [[COPY12]], [[C10]]
|
|
; CHECK: [[SHL5:%[0-9]+]]:_(s32) = G_SHL [[AND11]], [[COPY11]](s32)
|
|
; CHECK: [[TRUNC5:%[0-9]+]]:_(s16) = G_TRUNC [[SHL5]](s32)
|
|
; CHECK: [[OR5:%[0-9]+]]:_(s16) = G_OR [[AND10]], [[TRUNC5]]
|
|
; CHECK: [[ZEXT:%[0-9]+]]:_(s32) = G_ZEXT [[OR]](s16)
|
|
; CHECK: [[ZEXT1:%[0-9]+]]:_(s32) = G_ZEXT [[OR1]](s16)
|
|
; CHECK: [[C15:%[0-9]+]]:_(s32) = G_CONSTANT i32 16
|
|
; CHECK: [[SHL6:%[0-9]+]]:_(s32) = G_SHL [[ZEXT1]], [[C15]](s32)
|
|
; CHECK: [[OR6:%[0-9]+]]:_(s32) = G_OR [[ZEXT]], [[SHL6]]
|
|
; CHECK: [[ZEXT2:%[0-9]+]]:_(s32) = G_ZEXT [[OR2]](s16)
|
|
; CHECK: [[ZEXT3:%[0-9]+]]:_(s32) = G_ZEXT [[OR3]](s16)
|
|
; CHECK: [[SHL7:%[0-9]+]]:_(s32) = G_SHL [[ZEXT3]], [[C15]](s32)
|
|
; CHECK: [[OR7:%[0-9]+]]:_(s32) = G_OR [[ZEXT2]], [[SHL7]]
|
|
; CHECK: [[ZEXT4:%[0-9]+]]:_(s32) = G_ZEXT [[OR4]](s16)
|
|
; CHECK: [[ZEXT5:%[0-9]+]]:_(s32) = G_ZEXT [[OR5]](s16)
|
|
; CHECK: [[SHL8:%[0-9]+]]:_(s32) = G_SHL [[ZEXT5]], [[C15]](s32)
|
|
; CHECK: [[OR8:%[0-9]+]]:_(s32) = G_OR [[ZEXT4]], [[SHL8]]
|
|
; CHECK: [[MV:%[0-9]+]]:_(s96) = G_MERGE_VALUES [[OR6]](s32), [[OR7]](s32), [[OR8]](s32)
|
|
; CHECK: $vgpr0_vgpr1_vgpr2 = COPY [[MV]](s96)
|
|
%0:_(s8) = G_CONSTANT i8 0
|
|
%1:_(s8) = G_CONSTANT i8 1
|
|
%2:_(s8) = G_CONSTANT i8 2
|
|
%3:_(s8) = G_CONSTANT i8 3
|
|
%4:_(s8) = G_CONSTANT i8 4
|
|
%5:_(s8) = G_CONSTANT i8 5
|
|
%6:_(s8) = G_CONSTANT i8 6
|
|
%7:_(s8) = G_CONSTANT i8 7
|
|
%9:_(s8) = G_CONSTANT i8 8
|
|
%10:_(s8) = G_CONSTANT i8 9
|
|
%11:_(s8) = G_CONSTANT i8 10
|
|
%12:_(s8) = G_CONSTANT i8 11
|
|
|
|
%13:_(s96) = G_MERGE_VALUES %0, %1, %2, %3, %4, %5, %6, %7, %9, %10, %11, %12
|
|
$vgpr0_vgpr1_vgpr2 = COPY %13
|
|
...
|
|
|
|
---
|
|
name: test_merge_s96_s16_s16_s16_s16_s16_s16
|
|
body: |
|
|
bb.0:
|
|
; CHECK-LABEL: name: test_merge_s96_s16_s16_s16_s16_s16_s16
|
|
; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 0
|
|
; CHECK: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
|
|
; CHECK: [[C2:%[0-9]+]]:_(s32) = G_CONSTANT i32 16
|
|
; CHECK: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[C1]], [[C2]](s32)
|
|
; CHECK: [[OR:%[0-9]+]]:_(s32) = G_OR [[C]], [[SHL]]
|
|
; CHECK: [[C3:%[0-9]+]]:_(s32) = G_CONSTANT i32 2
|
|
; CHECK: [[C4:%[0-9]+]]:_(s32) = G_CONSTANT i32 3
|
|
; CHECK: [[SHL1:%[0-9]+]]:_(s32) = G_SHL [[C4]], [[C2]](s32)
|
|
; CHECK: [[OR1:%[0-9]+]]:_(s32) = G_OR [[C3]], [[SHL1]]
|
|
; CHECK: [[C5:%[0-9]+]]:_(s32) = G_CONSTANT i32 4
|
|
; CHECK: [[C6:%[0-9]+]]:_(s32) = G_CONSTANT i32 5
|
|
; CHECK: [[SHL2:%[0-9]+]]:_(s32) = G_SHL [[C6]], [[C2]](s32)
|
|
; CHECK: [[OR2:%[0-9]+]]:_(s32) = G_OR [[C5]], [[SHL2]]
|
|
; CHECK: [[MV:%[0-9]+]]:_(s96) = G_MERGE_VALUES [[OR]](s32), [[OR1]](s32), [[OR2]](s32)
|
|
; CHECK: $vgpr0_vgpr1_vgpr2 = COPY [[MV]](s96)
|
|
%0:_(s16) = G_CONSTANT i16 0
|
|
%1:_(s16) = G_CONSTANT i16 1
|
|
%2:_(s16) = G_CONSTANT i16 2
|
|
%3:_(s16) = G_CONSTANT i16 3
|
|
%4:_(s16) = G_CONSTANT i16 4
|
|
%5:_(s16) = G_CONSTANT i16 5
|
|
%8:_(s96) = G_MERGE_VALUES %0, %1, %2, %3, %4, %5
|
|
$vgpr0_vgpr1_vgpr2 = COPY %8
|
|
...
|
|
|
|
---
|
|
name: test_merge_s56_s8_s8_s8_s8_s8_s8_s8
|
|
body: |
|
|
bb.0:
|
|
; CHECK-LABEL: name: test_merge_s56_s8_s8_s8_s8_s8_s8_s8
|
|
; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
|
|
; CHECK: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 3
|
|
; CHECK: [[C2:%[0-9]+]]:_(s32) = G_CONSTANT i32 5
|
|
; CHECK: [[DEF:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF
|
|
; CHECK: [[C3:%[0-9]+]]:_(s16) = G_CONSTANT i16 255
|
|
; CHECK: [[C4:%[0-9]+]]:_(s16) = G_CONSTANT i16 0
|
|
; CHECK: [[AND:%[0-9]+]]:_(s16) = G_AND [[C4]], [[C3]]
|
|
; CHECK: [[C5:%[0-9]+]]:_(s32) = G_CONSTANT i32 8
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY [[C5]](s32)
|
|
; CHECK: [[C6:%[0-9]+]]:_(s32) = G_CONSTANT i32 255
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND1:%[0-9]+]]:_(s32) = G_AND [[COPY1]], [[C6]]
|
|
; CHECK: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[AND1]], [[COPY]](s32)
|
|
; CHECK: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[SHL]](s32)
|
|
; CHECK: [[OR:%[0-9]+]]:_(s16) = G_OR [[AND]], [[TRUNC]]
|
|
; CHECK: [[C7:%[0-9]+]]:_(s16) = G_CONSTANT i16 2
|
|
; CHECK: [[AND2:%[0-9]+]]:_(s16) = G_AND [[C7]], [[C3]]
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY [[C5]](s32)
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY [[C1]](s32)
|
|
; CHECK: [[AND3:%[0-9]+]]:_(s32) = G_AND [[COPY3]], [[C6]]
|
|
; CHECK: [[SHL1:%[0-9]+]]:_(s32) = G_SHL [[AND3]], [[COPY2]](s32)
|
|
; CHECK: [[TRUNC1:%[0-9]+]]:_(s16) = G_TRUNC [[SHL1]](s32)
|
|
; CHECK: [[OR1:%[0-9]+]]:_(s16) = G_OR [[AND2]], [[TRUNC1]]
|
|
; CHECK: [[C8:%[0-9]+]]:_(s16) = G_CONSTANT i16 4
|
|
; CHECK: [[AND4:%[0-9]+]]:_(s16) = G_AND [[C8]], [[C3]]
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY [[C5]](s32)
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY [[C2]](s32)
|
|
; CHECK: [[AND5:%[0-9]+]]:_(s32) = G_AND [[COPY5]], [[C6]]
|
|
; CHECK: [[SHL2:%[0-9]+]]:_(s32) = G_SHL [[AND5]], [[COPY4]](s32)
|
|
; CHECK: [[TRUNC2:%[0-9]+]]:_(s16) = G_TRUNC [[SHL2]](s32)
|
|
; CHECK: [[OR2:%[0-9]+]]:_(s16) = G_OR [[AND4]], [[TRUNC2]]
|
|
; CHECK: [[C9:%[0-9]+]]:_(s16) = G_CONSTANT i16 6
|
|
; CHECK: [[AND6:%[0-9]+]]:_(s16) = G_AND [[C9]], [[C3]]
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s32) = COPY [[DEF]](s32)
|
|
; CHECK: [[AND7:%[0-9]+]]:_(s32) = G_AND [[COPY6]], [[C6]]
|
|
; CHECK: [[SHL3:%[0-9]+]]:_(s32) = G_SHL [[AND7]], [[C5]](s32)
|
|
; CHECK: [[TRUNC3:%[0-9]+]]:_(s16) = G_TRUNC [[SHL3]](s32)
|
|
; CHECK: [[OR3:%[0-9]+]]:_(s16) = G_OR [[AND6]], [[TRUNC3]]
|
|
; CHECK: [[ZEXT:%[0-9]+]]:_(s32) = G_ZEXT [[OR]](s16)
|
|
; CHECK: [[ZEXT1:%[0-9]+]]:_(s32) = G_ZEXT [[OR1]](s16)
|
|
; CHECK: [[C10:%[0-9]+]]:_(s32) = G_CONSTANT i32 16
|
|
; CHECK: [[SHL4:%[0-9]+]]:_(s32) = G_SHL [[ZEXT1]], [[C10]](s32)
|
|
; CHECK: [[OR4:%[0-9]+]]:_(s32) = G_OR [[ZEXT]], [[SHL4]]
|
|
; CHECK: [[ZEXT2:%[0-9]+]]:_(s32) = G_ZEXT [[OR2]](s16)
|
|
; CHECK: [[ZEXT3:%[0-9]+]]:_(s32) = G_ZEXT [[OR3]](s16)
|
|
; CHECK: [[SHL5:%[0-9]+]]:_(s32) = G_SHL [[ZEXT3]], [[C10]](s32)
|
|
; CHECK: [[OR5:%[0-9]+]]:_(s32) = G_OR [[ZEXT2]], [[SHL5]]
|
|
; CHECK: [[MV:%[0-9]+]]:_(s64) = G_MERGE_VALUES [[OR4]](s32), [[OR5]](s32)
|
|
; CHECK: [[TRUNC4:%[0-9]+]]:_(s56) = G_TRUNC [[MV]](s64)
|
|
; CHECK: S_NOP 0, implicit [[TRUNC4]](s56)
|
|
%0:_(s8) = G_CONSTANT i8 0
|
|
%1:_(s8) = G_CONSTANT i8 1
|
|
%2:_(s8) = G_CONSTANT i8 2
|
|
%3:_(s8) = G_CONSTANT i8 3
|
|
%4:_(s8) = G_CONSTANT i8 4
|
|
%5:_(s8) = G_CONSTANT i8 5
|
|
%6:_(s8) = G_CONSTANT i8 6
|
|
%7:_(s56) = G_MERGE_VALUES %0, %1, %2, %3, %4, %5, %6
|
|
S_NOP 0, implicit %7
|
|
...
|
|
|
|
---
|
|
name: test_merge_s68_s17_s17_s17_s17
|
|
body: |
|
|
bb.0:
|
|
; CHECK-LABEL: name: test_merge_s68_s17_s17_s17_s17
|
|
; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 0
|
|
; CHECK: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
|
|
; CHECK: [[C2:%[0-9]+]]:_(s32) = G_CONSTANT i32 2
|
|
; CHECK: [[C3:%[0-9]+]]:_(s32) = G_CONSTANT i32 3
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY]], [[C1]]
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND1:%[0-9]+]]:_(s32) = G_AND [[COPY1]], [[C1]]
|
|
; CHECK: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[AND1]], [[C1]](s32)
|
|
; CHECK: [[OR:%[0-9]+]]:_(s32) = G_OR [[AND]], [[SHL]]
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND2:%[0-9]+]]:_(s32) = G_AND [[COPY2]], [[C1]]
|
|
; CHECK: [[SHL1:%[0-9]+]]:_(s32) = G_SHL [[AND2]], [[C2]](s32)
|
|
; CHECK: [[OR1:%[0-9]+]]:_(s32) = G_OR [[OR]], [[SHL1]]
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND3:%[0-9]+]]:_(s32) = G_AND [[COPY3]], [[C1]]
|
|
; CHECK: [[SHL2:%[0-9]+]]:_(s32) = G_SHL [[AND3]], [[C3]](s32)
|
|
; CHECK: [[OR2:%[0-9]+]]:_(s32) = G_OR [[OR1]], [[SHL2]]
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND4:%[0-9]+]]:_(s32) = G_AND [[COPY4]], [[C1]]
|
|
; CHECK: [[C4:%[0-9]+]]:_(s32) = G_CONSTANT i32 4
|
|
; CHECK: [[SHL3:%[0-9]+]]:_(s32) = G_SHL [[AND4]], [[C4]](s32)
|
|
; CHECK: [[OR3:%[0-9]+]]:_(s32) = G_OR [[OR2]], [[SHL3]]
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND5:%[0-9]+]]:_(s32) = G_AND [[COPY5]], [[C1]]
|
|
; CHECK: [[C5:%[0-9]+]]:_(s32) = G_CONSTANT i32 5
|
|
; CHECK: [[SHL4:%[0-9]+]]:_(s32) = G_SHL [[AND5]], [[C5]](s32)
|
|
; CHECK: [[OR4:%[0-9]+]]:_(s32) = G_OR [[OR3]], [[SHL4]]
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND6:%[0-9]+]]:_(s32) = G_AND [[COPY6]], [[C1]]
|
|
; CHECK: [[C6:%[0-9]+]]:_(s32) = G_CONSTANT i32 6
|
|
; CHECK: [[SHL5:%[0-9]+]]:_(s32) = G_SHL [[AND6]], [[C6]](s32)
|
|
; CHECK: [[OR5:%[0-9]+]]:_(s32) = G_OR [[OR4]], [[SHL5]]
|
|
; CHECK: [[COPY7:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND7:%[0-9]+]]:_(s32) = G_AND [[COPY7]], [[C1]]
|
|
; CHECK: [[C7:%[0-9]+]]:_(s32) = G_CONSTANT i32 7
|
|
; CHECK: [[SHL6:%[0-9]+]]:_(s32) = G_SHL [[AND7]], [[C7]](s32)
|
|
; CHECK: [[OR6:%[0-9]+]]:_(s32) = G_OR [[OR5]], [[SHL6]]
|
|
; CHECK: [[COPY8:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND8:%[0-9]+]]:_(s32) = G_AND [[COPY8]], [[C1]]
|
|
; CHECK: [[C8:%[0-9]+]]:_(s32) = G_CONSTANT i32 8
|
|
; CHECK: [[SHL7:%[0-9]+]]:_(s32) = G_SHL [[AND8]], [[C8]](s32)
|
|
; CHECK: [[OR7:%[0-9]+]]:_(s32) = G_OR [[OR6]], [[SHL7]]
|
|
; CHECK: [[COPY9:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND9:%[0-9]+]]:_(s32) = G_AND [[COPY9]], [[C1]]
|
|
; CHECK: [[C9:%[0-9]+]]:_(s32) = G_CONSTANT i32 9
|
|
; CHECK: [[SHL8:%[0-9]+]]:_(s32) = G_SHL [[AND9]], [[C9]](s32)
|
|
; CHECK: [[OR8:%[0-9]+]]:_(s32) = G_OR [[OR7]], [[SHL8]]
|
|
; CHECK: [[COPY10:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND10:%[0-9]+]]:_(s32) = G_AND [[COPY10]], [[C1]]
|
|
; CHECK: [[C10:%[0-9]+]]:_(s32) = G_CONSTANT i32 10
|
|
; CHECK: [[SHL9:%[0-9]+]]:_(s32) = G_SHL [[AND10]], [[C10]](s32)
|
|
; CHECK: [[OR9:%[0-9]+]]:_(s32) = G_OR [[OR8]], [[SHL9]]
|
|
; CHECK: [[COPY11:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND11:%[0-9]+]]:_(s32) = G_AND [[COPY11]], [[C1]]
|
|
; CHECK: [[C11:%[0-9]+]]:_(s32) = G_CONSTANT i32 11
|
|
; CHECK: [[SHL10:%[0-9]+]]:_(s32) = G_SHL [[AND11]], [[C11]](s32)
|
|
; CHECK: [[OR10:%[0-9]+]]:_(s32) = G_OR [[OR9]], [[SHL10]]
|
|
; CHECK: [[COPY12:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND12:%[0-9]+]]:_(s32) = G_AND [[COPY12]], [[C1]]
|
|
; CHECK: [[C12:%[0-9]+]]:_(s32) = G_CONSTANT i32 12
|
|
; CHECK: [[SHL11:%[0-9]+]]:_(s32) = G_SHL [[AND12]], [[C12]](s32)
|
|
; CHECK: [[OR11:%[0-9]+]]:_(s32) = G_OR [[OR10]], [[SHL11]]
|
|
; CHECK: [[COPY13:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND13:%[0-9]+]]:_(s32) = G_AND [[COPY13]], [[C1]]
|
|
; CHECK: [[C13:%[0-9]+]]:_(s32) = G_CONSTANT i32 13
|
|
; CHECK: [[SHL12:%[0-9]+]]:_(s32) = G_SHL [[AND13]], [[C13]](s32)
|
|
; CHECK: [[OR12:%[0-9]+]]:_(s32) = G_OR [[OR11]], [[SHL12]]
|
|
; CHECK: [[COPY14:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND14:%[0-9]+]]:_(s32) = G_AND [[COPY14]], [[C1]]
|
|
; CHECK: [[C14:%[0-9]+]]:_(s32) = G_CONSTANT i32 14
|
|
; CHECK: [[SHL13:%[0-9]+]]:_(s32) = G_SHL [[AND14]], [[C14]](s32)
|
|
; CHECK: [[OR13:%[0-9]+]]:_(s32) = G_OR [[OR12]], [[SHL13]]
|
|
; CHECK: [[COPY15:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND15:%[0-9]+]]:_(s32) = G_AND [[COPY15]], [[C1]]
|
|
; CHECK: [[C15:%[0-9]+]]:_(s32) = G_CONSTANT i32 15
|
|
; CHECK: [[SHL14:%[0-9]+]]:_(s32) = G_SHL [[AND15]], [[C15]](s32)
|
|
; CHECK: [[OR14:%[0-9]+]]:_(s32) = G_OR [[OR13]], [[SHL14]]
|
|
; CHECK: [[COPY16:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND16:%[0-9]+]]:_(s32) = G_AND [[COPY16]], [[C1]]
|
|
; CHECK: [[C16:%[0-9]+]]:_(s32) = G_CONSTANT i32 16
|
|
; CHECK: [[SHL15:%[0-9]+]]:_(s32) = G_SHL [[AND16]], [[C16]](s32)
|
|
; CHECK: [[OR15:%[0-9]+]]:_(s32) = G_OR [[OR14]], [[SHL15]]
|
|
; CHECK: [[COPY17:%[0-9]+]]:_(s32) = COPY [[C1]](s32)
|
|
; CHECK: [[AND17:%[0-9]+]]:_(s32) = G_AND [[COPY17]], [[C1]]
|
|
; CHECK: [[C17:%[0-9]+]]:_(s32) = G_CONSTANT i32 17
|
|
; CHECK: [[SHL16:%[0-9]+]]:_(s32) = G_SHL [[AND17]], [[C17]](s32)
|
|
; CHECK: [[OR16:%[0-9]+]]:_(s32) = G_OR [[OR15]], [[SHL16]]
|
|
; CHECK: [[COPY18:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND18:%[0-9]+]]:_(s32) = G_AND [[COPY18]], [[C1]]
|
|
; CHECK: [[C18:%[0-9]+]]:_(s32) = G_CONSTANT i32 18
|
|
; CHECK: [[SHL17:%[0-9]+]]:_(s32) = G_SHL [[AND18]], [[C18]](s32)
|
|
; CHECK: [[OR17:%[0-9]+]]:_(s32) = G_OR [[OR16]], [[SHL17]]
|
|
; CHECK: [[COPY19:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND19:%[0-9]+]]:_(s32) = G_AND [[COPY19]], [[C1]]
|
|
; CHECK: [[C19:%[0-9]+]]:_(s32) = G_CONSTANT i32 19
|
|
; CHECK: [[SHL18:%[0-9]+]]:_(s32) = G_SHL [[AND19]], [[C19]](s32)
|
|
; CHECK: [[OR18:%[0-9]+]]:_(s32) = G_OR [[OR17]], [[SHL18]]
|
|
; CHECK: [[COPY20:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND20:%[0-9]+]]:_(s32) = G_AND [[COPY20]], [[C1]]
|
|
; CHECK: [[C20:%[0-9]+]]:_(s32) = G_CONSTANT i32 20
|
|
; CHECK: [[SHL19:%[0-9]+]]:_(s32) = G_SHL [[AND20]], [[C20]](s32)
|
|
; CHECK: [[OR19:%[0-9]+]]:_(s32) = G_OR [[OR18]], [[SHL19]]
|
|
; CHECK: [[COPY21:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND21:%[0-9]+]]:_(s32) = G_AND [[COPY21]], [[C1]]
|
|
; CHECK: [[C21:%[0-9]+]]:_(s32) = G_CONSTANT i32 21
|
|
; CHECK: [[SHL20:%[0-9]+]]:_(s32) = G_SHL [[AND21]], [[C21]](s32)
|
|
; CHECK: [[OR20:%[0-9]+]]:_(s32) = G_OR [[OR19]], [[SHL20]]
|
|
; CHECK: [[COPY22:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND22:%[0-9]+]]:_(s32) = G_AND [[COPY22]], [[C1]]
|
|
; CHECK: [[C22:%[0-9]+]]:_(s32) = G_CONSTANT i32 22
|
|
; CHECK: [[SHL21:%[0-9]+]]:_(s32) = G_SHL [[AND22]], [[C22]](s32)
|
|
; CHECK: [[OR21:%[0-9]+]]:_(s32) = G_OR [[OR20]], [[SHL21]]
|
|
; CHECK: [[COPY23:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND23:%[0-9]+]]:_(s32) = G_AND [[COPY23]], [[C1]]
|
|
; CHECK: [[C23:%[0-9]+]]:_(s32) = G_CONSTANT i32 23
|
|
; CHECK: [[SHL22:%[0-9]+]]:_(s32) = G_SHL [[AND23]], [[C23]](s32)
|
|
; CHECK: [[OR22:%[0-9]+]]:_(s32) = G_OR [[OR21]], [[SHL22]]
|
|
; CHECK: [[COPY24:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND24:%[0-9]+]]:_(s32) = G_AND [[COPY24]], [[C1]]
|
|
; CHECK: [[C24:%[0-9]+]]:_(s32) = G_CONSTANT i32 24
|
|
; CHECK: [[SHL23:%[0-9]+]]:_(s32) = G_SHL [[AND24]], [[C24]](s32)
|
|
; CHECK: [[OR23:%[0-9]+]]:_(s32) = G_OR [[OR22]], [[SHL23]]
|
|
; CHECK: [[COPY25:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND25:%[0-9]+]]:_(s32) = G_AND [[COPY25]], [[C1]]
|
|
; CHECK: [[C25:%[0-9]+]]:_(s32) = G_CONSTANT i32 25
|
|
; CHECK: [[SHL24:%[0-9]+]]:_(s32) = G_SHL [[AND25]], [[C25]](s32)
|
|
; CHECK: [[OR24:%[0-9]+]]:_(s32) = G_OR [[OR23]], [[SHL24]]
|
|
; CHECK: [[COPY26:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND26:%[0-9]+]]:_(s32) = G_AND [[COPY26]], [[C1]]
|
|
; CHECK: [[C26:%[0-9]+]]:_(s32) = G_CONSTANT i32 26
|
|
; CHECK: [[SHL25:%[0-9]+]]:_(s32) = G_SHL [[AND26]], [[C26]](s32)
|
|
; CHECK: [[OR25:%[0-9]+]]:_(s32) = G_OR [[OR24]], [[SHL25]]
|
|
; CHECK: [[COPY27:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND27:%[0-9]+]]:_(s32) = G_AND [[COPY27]], [[C1]]
|
|
; CHECK: [[C27:%[0-9]+]]:_(s32) = G_CONSTANT i32 27
|
|
; CHECK: [[SHL26:%[0-9]+]]:_(s32) = G_SHL [[AND27]], [[C27]](s32)
|
|
; CHECK: [[OR26:%[0-9]+]]:_(s32) = G_OR [[OR25]], [[SHL26]]
|
|
; CHECK: [[COPY28:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND28:%[0-9]+]]:_(s32) = G_AND [[COPY28]], [[C1]]
|
|
; CHECK: [[C28:%[0-9]+]]:_(s32) = G_CONSTANT i32 28
|
|
; CHECK: [[SHL27:%[0-9]+]]:_(s32) = G_SHL [[AND28]], [[C28]](s32)
|
|
; CHECK: [[OR27:%[0-9]+]]:_(s32) = G_OR [[OR26]], [[SHL27]]
|
|
; CHECK: [[COPY29:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND29:%[0-9]+]]:_(s32) = G_AND [[COPY29]], [[C1]]
|
|
; CHECK: [[C29:%[0-9]+]]:_(s32) = G_CONSTANT i32 29
|
|
; CHECK: [[SHL28:%[0-9]+]]:_(s32) = G_SHL [[AND29]], [[C29]](s32)
|
|
; CHECK: [[OR28:%[0-9]+]]:_(s32) = G_OR [[OR27]], [[SHL28]]
|
|
; CHECK: [[COPY30:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND30:%[0-9]+]]:_(s32) = G_AND [[COPY30]], [[C1]]
|
|
; CHECK: [[C30:%[0-9]+]]:_(s32) = G_CONSTANT i32 30
|
|
; CHECK: [[SHL29:%[0-9]+]]:_(s32) = G_SHL [[AND30]], [[C30]](s32)
|
|
; CHECK: [[OR29:%[0-9]+]]:_(s32) = G_OR [[OR28]], [[SHL29]]
|
|
; CHECK: [[COPY31:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND31:%[0-9]+]]:_(s32) = G_AND [[COPY31]], [[C1]]
|
|
; CHECK: [[C31:%[0-9]+]]:_(s32) = G_CONSTANT i32 31
|
|
; CHECK: [[SHL30:%[0-9]+]]:_(s32) = G_SHL [[AND31]], [[C31]](s32)
|
|
; CHECK: [[OR30:%[0-9]+]]:_(s32) = G_OR [[OR29]], [[SHL30]]
|
|
; CHECK: [[COPY32:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND32:%[0-9]+]]:_(s32) = G_AND [[COPY32]], [[C1]]
|
|
; CHECK: [[COPY33:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND33:%[0-9]+]]:_(s32) = G_AND [[COPY33]], [[C1]]
|
|
; CHECK: [[SHL31:%[0-9]+]]:_(s32) = G_SHL [[AND33]], [[C1]](s32)
|
|
; CHECK: [[OR31:%[0-9]+]]:_(s32) = G_OR [[AND32]], [[SHL31]]
|
|
; CHECK: [[COPY34:%[0-9]+]]:_(s32) = COPY [[C2]](s32)
|
|
; CHECK: [[AND34:%[0-9]+]]:_(s32) = G_AND [[COPY34]], [[C1]]
|
|
; CHECK: [[SHL32:%[0-9]+]]:_(s32) = G_SHL [[AND34]], [[C2]](s32)
|
|
; CHECK: [[OR32:%[0-9]+]]:_(s32) = G_OR [[OR31]], [[SHL32]]
|
|
; CHECK: [[COPY35:%[0-9]+]]:_(s32) = COPY [[C1]](s32)
|
|
; CHECK: [[AND35:%[0-9]+]]:_(s32) = G_AND [[COPY35]], [[C1]]
|
|
; CHECK: [[SHL33:%[0-9]+]]:_(s32) = G_SHL [[AND35]], [[C3]](s32)
|
|
; CHECK: [[OR33:%[0-9]+]]:_(s32) = G_OR [[OR32]], [[SHL33]]
|
|
; CHECK: [[COPY36:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND36:%[0-9]+]]:_(s32) = G_AND [[COPY36]], [[C1]]
|
|
; CHECK: [[SHL34:%[0-9]+]]:_(s32) = G_SHL [[AND36]], [[C4]](s32)
|
|
; CHECK: [[OR34:%[0-9]+]]:_(s32) = G_OR [[OR33]], [[SHL34]]
|
|
; CHECK: [[COPY37:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND37:%[0-9]+]]:_(s32) = G_AND [[COPY37]], [[C1]]
|
|
; CHECK: [[SHL35:%[0-9]+]]:_(s32) = G_SHL [[AND37]], [[C5]](s32)
|
|
; CHECK: [[OR35:%[0-9]+]]:_(s32) = G_OR [[OR34]], [[SHL35]]
|
|
; CHECK: [[COPY38:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND38:%[0-9]+]]:_(s32) = G_AND [[COPY38]], [[C1]]
|
|
; CHECK: [[SHL36:%[0-9]+]]:_(s32) = G_SHL [[AND38]], [[C6]](s32)
|
|
; CHECK: [[OR36:%[0-9]+]]:_(s32) = G_OR [[OR35]], [[SHL36]]
|
|
; CHECK: [[COPY39:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND39:%[0-9]+]]:_(s32) = G_AND [[COPY39]], [[C1]]
|
|
; CHECK: [[SHL37:%[0-9]+]]:_(s32) = G_SHL [[AND39]], [[C7]](s32)
|
|
; CHECK: [[OR37:%[0-9]+]]:_(s32) = G_OR [[OR36]], [[SHL37]]
|
|
; CHECK: [[COPY40:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND40:%[0-9]+]]:_(s32) = G_AND [[COPY40]], [[C1]]
|
|
; CHECK: [[SHL38:%[0-9]+]]:_(s32) = G_SHL [[AND40]], [[C8]](s32)
|
|
; CHECK: [[OR38:%[0-9]+]]:_(s32) = G_OR [[OR37]], [[SHL38]]
|
|
; CHECK: [[COPY41:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND41:%[0-9]+]]:_(s32) = G_AND [[COPY41]], [[C1]]
|
|
; CHECK: [[SHL39:%[0-9]+]]:_(s32) = G_SHL [[AND41]], [[C9]](s32)
|
|
; CHECK: [[OR39:%[0-9]+]]:_(s32) = G_OR [[OR38]], [[SHL39]]
|
|
; CHECK: [[COPY42:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND42:%[0-9]+]]:_(s32) = G_AND [[COPY42]], [[C1]]
|
|
; CHECK: [[SHL40:%[0-9]+]]:_(s32) = G_SHL [[AND42]], [[C10]](s32)
|
|
; CHECK: [[OR40:%[0-9]+]]:_(s32) = G_OR [[OR39]], [[SHL40]]
|
|
; CHECK: [[COPY43:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND43:%[0-9]+]]:_(s32) = G_AND [[COPY43]], [[C1]]
|
|
; CHECK: [[SHL41:%[0-9]+]]:_(s32) = G_SHL [[AND43]], [[C11]](s32)
|
|
; CHECK: [[OR41:%[0-9]+]]:_(s32) = G_OR [[OR40]], [[SHL41]]
|
|
; CHECK: [[COPY44:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND44:%[0-9]+]]:_(s32) = G_AND [[COPY44]], [[C1]]
|
|
; CHECK: [[SHL42:%[0-9]+]]:_(s32) = G_SHL [[AND44]], [[C12]](s32)
|
|
; CHECK: [[OR42:%[0-9]+]]:_(s32) = G_OR [[OR41]], [[SHL42]]
|
|
; CHECK: [[COPY45:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND45:%[0-9]+]]:_(s32) = G_AND [[COPY45]], [[C1]]
|
|
; CHECK: [[SHL43:%[0-9]+]]:_(s32) = G_SHL [[AND45]], [[C13]](s32)
|
|
; CHECK: [[OR43:%[0-9]+]]:_(s32) = G_OR [[OR42]], [[SHL43]]
|
|
; CHECK: [[COPY46:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND46:%[0-9]+]]:_(s32) = G_AND [[COPY46]], [[C1]]
|
|
; CHECK: [[SHL44:%[0-9]+]]:_(s32) = G_SHL [[AND46]], [[C14]](s32)
|
|
; CHECK: [[OR44:%[0-9]+]]:_(s32) = G_OR [[OR43]], [[SHL44]]
|
|
; CHECK: [[COPY47:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND47:%[0-9]+]]:_(s32) = G_AND [[COPY47]], [[C1]]
|
|
; CHECK: [[SHL45:%[0-9]+]]:_(s32) = G_SHL [[AND47]], [[C15]](s32)
|
|
; CHECK: [[OR45:%[0-9]+]]:_(s32) = G_OR [[OR44]], [[SHL45]]
|
|
; CHECK: [[COPY48:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND48:%[0-9]+]]:_(s32) = G_AND [[COPY48]], [[C1]]
|
|
; CHECK: [[SHL46:%[0-9]+]]:_(s32) = G_SHL [[AND48]], [[C16]](s32)
|
|
; CHECK: [[OR46:%[0-9]+]]:_(s32) = G_OR [[OR45]], [[SHL46]]
|
|
; CHECK: [[COPY49:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND49:%[0-9]+]]:_(s32) = G_AND [[COPY49]], [[C1]]
|
|
; CHECK: [[SHL47:%[0-9]+]]:_(s32) = G_SHL [[AND49]], [[C17]](s32)
|
|
; CHECK: [[OR47:%[0-9]+]]:_(s32) = G_OR [[OR46]], [[SHL47]]
|
|
; CHECK: [[COPY50:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND50:%[0-9]+]]:_(s32) = G_AND [[COPY50]], [[C1]]
|
|
; CHECK: [[SHL48:%[0-9]+]]:_(s32) = G_SHL [[AND50]], [[C18]](s32)
|
|
; CHECK: [[OR48:%[0-9]+]]:_(s32) = G_OR [[OR47]], [[SHL48]]
|
|
; CHECK: [[COPY51:%[0-9]+]]:_(s32) = COPY [[C3]](s32)
|
|
; CHECK: [[AND51:%[0-9]+]]:_(s32) = G_AND [[COPY51]], [[C1]]
|
|
; CHECK: [[SHL49:%[0-9]+]]:_(s32) = G_SHL [[AND51]], [[C19]](s32)
|
|
; CHECK: [[OR49:%[0-9]+]]:_(s32) = G_OR [[OR48]], [[SHL49]]
|
|
; CHECK: [[COPY52:%[0-9]+]]:_(s32) = COPY [[C1]](s32)
|
|
; CHECK: [[AND52:%[0-9]+]]:_(s32) = G_AND [[COPY52]], [[C1]]
|
|
; CHECK: [[SHL50:%[0-9]+]]:_(s32) = G_SHL [[AND52]], [[C20]](s32)
|
|
; CHECK: [[OR50:%[0-9]+]]:_(s32) = G_OR [[OR49]], [[SHL50]]
|
|
; CHECK: [[COPY53:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND53:%[0-9]+]]:_(s32) = G_AND [[COPY53]], [[C1]]
|
|
; CHECK: [[SHL51:%[0-9]+]]:_(s32) = G_SHL [[AND53]], [[C21]](s32)
|
|
; CHECK: [[OR51:%[0-9]+]]:_(s32) = G_OR [[OR50]], [[SHL51]]
|
|
; CHECK: [[COPY54:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND54:%[0-9]+]]:_(s32) = G_AND [[COPY54]], [[C1]]
|
|
; CHECK: [[SHL52:%[0-9]+]]:_(s32) = G_SHL [[AND54]], [[C22]](s32)
|
|
; CHECK: [[OR52:%[0-9]+]]:_(s32) = G_OR [[OR51]], [[SHL52]]
|
|
; CHECK: [[COPY55:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND55:%[0-9]+]]:_(s32) = G_AND [[COPY55]], [[C1]]
|
|
; CHECK: [[SHL53:%[0-9]+]]:_(s32) = G_SHL [[AND55]], [[C23]](s32)
|
|
; CHECK: [[OR53:%[0-9]+]]:_(s32) = G_OR [[OR52]], [[SHL53]]
|
|
; CHECK: [[COPY56:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND56:%[0-9]+]]:_(s32) = G_AND [[COPY56]], [[C1]]
|
|
; CHECK: [[SHL54:%[0-9]+]]:_(s32) = G_SHL [[AND56]], [[C24]](s32)
|
|
; CHECK: [[OR54:%[0-9]+]]:_(s32) = G_OR [[OR53]], [[SHL54]]
|
|
; CHECK: [[COPY57:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND57:%[0-9]+]]:_(s32) = G_AND [[COPY57]], [[C1]]
|
|
; CHECK: [[SHL55:%[0-9]+]]:_(s32) = G_SHL [[AND57]], [[C25]](s32)
|
|
; CHECK: [[OR55:%[0-9]+]]:_(s32) = G_OR [[OR54]], [[SHL55]]
|
|
; CHECK: [[COPY58:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND58:%[0-9]+]]:_(s32) = G_AND [[COPY58]], [[C1]]
|
|
; CHECK: [[SHL56:%[0-9]+]]:_(s32) = G_SHL [[AND58]], [[C26]](s32)
|
|
; CHECK: [[OR56:%[0-9]+]]:_(s32) = G_OR [[OR55]], [[SHL56]]
|
|
; CHECK: [[COPY59:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND59:%[0-9]+]]:_(s32) = G_AND [[COPY59]], [[C1]]
|
|
; CHECK: [[SHL57:%[0-9]+]]:_(s32) = G_SHL [[AND59]], [[C27]](s32)
|
|
; CHECK: [[OR57:%[0-9]+]]:_(s32) = G_OR [[OR56]], [[SHL57]]
|
|
; CHECK: [[COPY60:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND60:%[0-9]+]]:_(s32) = G_AND [[COPY60]], [[C1]]
|
|
; CHECK: [[SHL58:%[0-9]+]]:_(s32) = G_SHL [[AND60]], [[C28]](s32)
|
|
; CHECK: [[OR58:%[0-9]+]]:_(s32) = G_OR [[OR57]], [[SHL58]]
|
|
; CHECK: [[COPY61:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND61:%[0-9]+]]:_(s32) = G_AND [[COPY61]], [[C1]]
|
|
; CHECK: [[SHL59:%[0-9]+]]:_(s32) = G_SHL [[AND61]], [[C29]](s32)
|
|
; CHECK: [[OR59:%[0-9]+]]:_(s32) = G_OR [[OR58]], [[SHL59]]
|
|
; CHECK: [[COPY62:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND62:%[0-9]+]]:_(s32) = G_AND [[COPY62]], [[C1]]
|
|
; CHECK: [[SHL60:%[0-9]+]]:_(s32) = G_SHL [[AND62]], [[C30]](s32)
|
|
; CHECK: [[OR60:%[0-9]+]]:_(s32) = G_OR [[OR59]], [[SHL60]]
|
|
; CHECK: [[COPY63:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND63:%[0-9]+]]:_(s32) = G_AND [[COPY63]], [[C1]]
|
|
; CHECK: [[SHL61:%[0-9]+]]:_(s32) = G_SHL [[AND63]], [[C31]](s32)
|
|
; CHECK: [[OR61:%[0-9]+]]:_(s32) = G_OR [[OR60]], [[SHL61]]
|
|
; CHECK: [[COPY64:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND64:%[0-9]+]]:_(s32) = G_AND [[COPY64]], [[C1]]
|
|
; CHECK: [[COPY65:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND65:%[0-9]+]]:_(s32) = G_AND [[COPY65]], [[C1]]
|
|
; CHECK: [[SHL62:%[0-9]+]]:_(s32) = G_SHL [[AND65]], [[C1]](s32)
|
|
; CHECK: [[OR62:%[0-9]+]]:_(s32) = G_OR [[AND64]], [[SHL62]]
|
|
; CHECK: [[COPY66:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND66:%[0-9]+]]:_(s32) = G_AND [[COPY66]], [[C1]]
|
|
; CHECK: [[SHL63:%[0-9]+]]:_(s32) = G_SHL [[AND66]], [[C2]](s32)
|
|
; CHECK: [[OR63:%[0-9]+]]:_(s32) = G_OR [[OR62]], [[SHL63]]
|
|
; CHECK: [[COPY67:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[AND67:%[0-9]+]]:_(s32) = G_AND [[COPY67]], [[C1]]
|
|
; CHECK: [[SHL64:%[0-9]+]]:_(s32) = G_SHL [[AND67]], [[C3]](s32)
|
|
; CHECK: [[OR64:%[0-9]+]]:_(s32) = G_OR [[OR63]], [[SHL64]]
|
|
; CHECK: [[COPY68:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL65:%[0-9]+]]:_(s32) = G_SHL [[COPY68]], [[C4]](s32)
|
|
; CHECK: [[OR65:%[0-9]+]]:_(s32) = G_OR [[OR64]], [[SHL65]]
|
|
; CHECK: [[COPY69:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL66:%[0-9]+]]:_(s32) = G_SHL [[COPY69]], [[C5]](s32)
|
|
; CHECK: [[OR66:%[0-9]+]]:_(s32) = G_OR [[OR65]], [[SHL66]]
|
|
; CHECK: [[COPY70:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL67:%[0-9]+]]:_(s32) = G_SHL [[COPY70]], [[C6]](s32)
|
|
; CHECK: [[OR67:%[0-9]+]]:_(s32) = G_OR [[OR66]], [[SHL67]]
|
|
; CHECK: [[COPY71:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL68:%[0-9]+]]:_(s32) = G_SHL [[COPY71]], [[C7]](s32)
|
|
; CHECK: [[OR68:%[0-9]+]]:_(s32) = G_OR [[OR67]], [[SHL68]]
|
|
; CHECK: [[COPY72:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL69:%[0-9]+]]:_(s32) = G_SHL [[COPY72]], [[C8]](s32)
|
|
; CHECK: [[OR69:%[0-9]+]]:_(s32) = G_OR [[OR68]], [[SHL69]]
|
|
; CHECK: [[COPY73:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL70:%[0-9]+]]:_(s32) = G_SHL [[COPY73]], [[C9]](s32)
|
|
; CHECK: [[OR70:%[0-9]+]]:_(s32) = G_OR [[OR69]], [[SHL70]]
|
|
; CHECK: [[COPY74:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL71:%[0-9]+]]:_(s32) = G_SHL [[COPY74]], [[C10]](s32)
|
|
; CHECK: [[OR71:%[0-9]+]]:_(s32) = G_OR [[OR70]], [[SHL71]]
|
|
; CHECK: [[COPY75:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL72:%[0-9]+]]:_(s32) = G_SHL [[COPY75]], [[C11]](s32)
|
|
; CHECK: [[OR72:%[0-9]+]]:_(s32) = G_OR [[OR71]], [[SHL72]]
|
|
; CHECK: [[COPY76:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL73:%[0-9]+]]:_(s32) = G_SHL [[COPY76]], [[C12]](s32)
|
|
; CHECK: [[OR73:%[0-9]+]]:_(s32) = G_OR [[OR72]], [[SHL73]]
|
|
; CHECK: [[COPY77:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL74:%[0-9]+]]:_(s32) = G_SHL [[COPY77]], [[C13]](s32)
|
|
; CHECK: [[OR74:%[0-9]+]]:_(s32) = G_OR [[OR73]], [[SHL74]]
|
|
; CHECK: [[COPY78:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL75:%[0-9]+]]:_(s32) = G_SHL [[COPY78]], [[C14]](s32)
|
|
; CHECK: [[OR75:%[0-9]+]]:_(s32) = G_OR [[OR74]], [[SHL75]]
|
|
; CHECK: [[COPY79:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL76:%[0-9]+]]:_(s32) = G_SHL [[COPY79]], [[C15]](s32)
|
|
; CHECK: [[OR76:%[0-9]+]]:_(s32) = G_OR [[OR75]], [[SHL76]]
|
|
; CHECK: [[COPY80:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL77:%[0-9]+]]:_(s32) = G_SHL [[COPY80]], [[C16]](s32)
|
|
; CHECK: [[OR77:%[0-9]+]]:_(s32) = G_OR [[OR76]], [[SHL77]]
|
|
; CHECK: [[COPY81:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL78:%[0-9]+]]:_(s32) = G_SHL [[COPY81]], [[C17]](s32)
|
|
; CHECK: [[OR78:%[0-9]+]]:_(s32) = G_OR [[OR77]], [[SHL78]]
|
|
; CHECK: [[COPY82:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL79:%[0-9]+]]:_(s32) = G_SHL [[COPY82]], [[C18]](s32)
|
|
; CHECK: [[OR79:%[0-9]+]]:_(s32) = G_OR [[OR78]], [[SHL79]]
|
|
; CHECK: [[COPY83:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL80:%[0-9]+]]:_(s32) = G_SHL [[COPY83]], [[C19]](s32)
|
|
; CHECK: [[OR80:%[0-9]+]]:_(s32) = G_OR [[OR79]], [[SHL80]]
|
|
; CHECK: [[COPY84:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL81:%[0-9]+]]:_(s32) = G_SHL [[COPY84]], [[C20]](s32)
|
|
; CHECK: [[OR81:%[0-9]+]]:_(s32) = G_OR [[OR80]], [[SHL81]]
|
|
; CHECK: [[COPY85:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL82:%[0-9]+]]:_(s32) = G_SHL [[COPY85]], [[C21]](s32)
|
|
; CHECK: [[OR82:%[0-9]+]]:_(s32) = G_OR [[OR81]], [[SHL82]]
|
|
; CHECK: [[COPY86:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL83:%[0-9]+]]:_(s32) = G_SHL [[COPY86]], [[C22]](s32)
|
|
; CHECK: [[OR83:%[0-9]+]]:_(s32) = G_OR [[OR82]], [[SHL83]]
|
|
; CHECK: [[COPY87:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL84:%[0-9]+]]:_(s32) = G_SHL [[COPY87]], [[C23]](s32)
|
|
; CHECK: [[OR84:%[0-9]+]]:_(s32) = G_OR [[OR83]], [[SHL84]]
|
|
; CHECK: [[COPY88:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL85:%[0-9]+]]:_(s32) = G_SHL [[COPY88]], [[C24]](s32)
|
|
; CHECK: [[OR85:%[0-9]+]]:_(s32) = G_OR [[OR84]], [[SHL85]]
|
|
; CHECK: [[COPY89:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL86:%[0-9]+]]:_(s32) = G_SHL [[COPY89]], [[C25]](s32)
|
|
; CHECK: [[OR86:%[0-9]+]]:_(s32) = G_OR [[OR85]], [[SHL86]]
|
|
; CHECK: [[COPY90:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL87:%[0-9]+]]:_(s32) = G_SHL [[COPY90]], [[C26]](s32)
|
|
; CHECK: [[OR87:%[0-9]+]]:_(s32) = G_OR [[OR86]], [[SHL87]]
|
|
; CHECK: [[COPY91:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL88:%[0-9]+]]:_(s32) = G_SHL [[COPY91]], [[C27]](s32)
|
|
; CHECK: [[OR88:%[0-9]+]]:_(s32) = G_OR [[OR87]], [[SHL88]]
|
|
; CHECK: [[COPY92:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL89:%[0-9]+]]:_(s32) = G_SHL [[COPY92]], [[C28]](s32)
|
|
; CHECK: [[OR89:%[0-9]+]]:_(s32) = G_OR [[OR88]], [[SHL89]]
|
|
; CHECK: [[COPY93:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL90:%[0-9]+]]:_(s32) = G_SHL [[COPY93]], [[C29]](s32)
|
|
; CHECK: [[OR90:%[0-9]+]]:_(s32) = G_OR [[OR89]], [[SHL90]]
|
|
; CHECK: [[COPY94:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL91:%[0-9]+]]:_(s32) = G_SHL [[COPY94]], [[C30]](s32)
|
|
; CHECK: [[OR91:%[0-9]+]]:_(s32) = G_OR [[OR90]], [[SHL91]]
|
|
; CHECK: [[COPY95:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; CHECK: [[SHL92:%[0-9]+]]:_(s32) = G_SHL [[COPY95]], [[C31]](s32)
|
|
; CHECK: [[OR92:%[0-9]+]]:_(s32) = G_OR [[OR91]], [[SHL92]]
|
|
; CHECK: [[MV:%[0-9]+]]:_(s96) = G_MERGE_VALUES [[OR30]](s32), [[OR61]](s32), [[OR92]](s32)
|
|
; CHECK: [[TRUNC:%[0-9]+]]:_(s68) = G_TRUNC [[MV]](s96)
|
|
; CHECK: S_NOP 0, implicit [[TRUNC]](s68)
|
|
%0:_(s17) = G_CONSTANT i17 0
|
|
%1:_(s17) = G_CONSTANT i17 1
|
|
%2:_(s17) = G_CONSTANT i17 2
|
|
%3:_(s17) = G_CONSTANT i17 3
|
|
%4:_(s68) = G_MERGE_VALUES %0, %1, %2, %3
|
|
S_NOP 0, implicit %4
|
|
...
|
|
---
|
|
name: test_merge_p3_s16_s16
|
|
body: |
|
|
bb.0:
|
|
; CHECK-LABEL: name: test_merge_p3_s16_s16
|
|
; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 0
|
|
; CHECK: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
|
|
; CHECK: [[C2:%[0-9]+]]:_(s32) = G_CONSTANT i32 16
|
|
; CHECK: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[C1]], [[C2]](s32)
|
|
; CHECK: [[OR:%[0-9]+]]:_(s32) = G_OR [[C]], [[SHL]]
|
|
; CHECK: [[INTTOPTR:%[0-9]+]]:_(p3) = G_INTTOPTR [[OR]](s32)
|
|
; CHECK: $vgpr0 = COPY [[INTTOPTR]](p3)
|
|
%0:_(s16) = G_CONSTANT i16 0
|
|
%1:_(s16) = G_CONSTANT i16 1
|
|
%2:_(p3) = G_MERGE_VALUES %0, %1
|
|
$vgpr0 = COPY %2
|
|
...
|
|
|
|
---
|
|
name: test_merge_s32_s16_s16
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1
|
|
|
|
; CHECK-LABEL: name: test_merge_s32_s16_s16
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 65535
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)
|
|
; CHECK: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY2]], [[C]]
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY [[COPY1]](s32)
|
|
; CHECK: [[AND1:%[0-9]+]]:_(s32) = G_AND [[COPY3]], [[C]]
|
|
; CHECK: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 16
|
|
; CHECK: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[AND1]], [[C1]](s32)
|
|
; CHECK: [[OR:%[0-9]+]]:_(s32) = G_OR [[AND]], [[SHL]]
|
|
; CHECK: $vgpr0 = COPY [[OR]](s32)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s16) = G_TRUNC %0
|
|
%3:_(s16) = G_TRUNC %1
|
|
%4:_(s32) = G_MERGE_VALUES %2, %3
|
|
$vgpr0 = COPY %4
|
|
...
|
|
|
|
---
|
|
name: test_merge_s48_s16_s16_s16
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3
|
|
|
|
; CHECK-LABEL: name: test_merge_s48_s16_s16_s16
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 65535
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)
|
|
; CHECK: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY3]], [[C]]
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY [[COPY1]](s32)
|
|
; CHECK: [[AND1:%[0-9]+]]:_(s32) = G_AND [[COPY4]], [[C]]
|
|
; CHECK: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 16
|
|
; CHECK: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[AND1]], [[C1]](s32)
|
|
; CHECK: [[OR:%[0-9]+]]:_(s32) = G_OR [[AND]], [[SHL]]
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY [[COPY2]](s32)
|
|
; CHECK: [[AND2:%[0-9]+]]:_(s32) = G_AND [[COPY5]], [[C]]
|
|
; CHECK: [[C2:%[0-9]+]]:_(s32) = G_CONSTANT i32 0
|
|
; CHECK: [[SHL1:%[0-9]+]]:_(s32) = G_SHL [[C2]], [[C1]](s32)
|
|
; CHECK: [[OR1:%[0-9]+]]:_(s32) = G_OR [[AND2]], [[SHL1]]
|
|
; CHECK: [[MV:%[0-9]+]]:_(s64) = G_MERGE_VALUES [[OR]](s32), [[OR1]](s32)
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s64) = COPY [[MV]](s64)
|
|
; CHECK: $vgpr0_vgpr1 = COPY [[COPY6]](s64)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s32) = COPY $vgpr2
|
|
|
|
%3:_(s16) = G_TRUNC %0
|
|
%4:_(s16) = G_TRUNC %1
|
|
%5:_(s16) = G_TRUNC %2
|
|
|
|
%6:_(s48) = G_MERGE_VALUES %3, %4, %5
|
|
%7:_(s64) = G_ANYEXT %6
|
|
$vgpr0_vgpr1 = COPY %7
|
|
...
|
|
|
|
---
|
|
|
|
name: test_merge_s256_s128
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1_vgpr2_vgpr3, $vgpr4_vgpr5_vgpr6_vgpr7
|
|
|
|
; CHECK-LABEL: name: test_merge_s256_s128
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s128) = COPY $vgpr0_vgpr1_vgpr2_vgpr3
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s128) = COPY $vgpr4_vgpr5_vgpr6_vgpr7
|
|
; CHECK: [[MV:%[0-9]+]]:_(s256) = G_MERGE_VALUES [[COPY]](s128), [[COPY1]](s128)
|
|
; CHECK: $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7 = COPY [[MV]](s256)
|
|
%0:_(s128) = COPY $vgpr0_vgpr1_vgpr2_vgpr3
|
|
%1:_(s128) = COPY $vgpr4_vgpr5_vgpr6_vgpr7
|
|
%2:_(s256) = G_MERGE_VALUES %0, %1
|
|
$vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7 = COPY %2
|
|
...
|
|
|
|
---
|
|
|
|
name: test_merge_s512_s256
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1_vgpr2_vgpr3, $vgpr4_vgpr5_vgpr6_vgpr7, $vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15
|
|
|
|
; CHECK-LABEL: name: test_merge_s512_s256
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s256) = COPY $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s256) = COPY $vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15
|
|
; CHECK: [[MV:%[0-9]+]]:_(s512) = G_MERGE_VALUES [[COPY]](s256), [[COPY1]](s256)
|
|
; CHECK: $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15 = COPY [[MV]](s512)
|
|
%0:_(s256) = COPY $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7
|
|
%1:_(s256) = COPY $vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15
|
|
%2:_(s512) = G_MERGE_VALUES %0, %1
|
|
$vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15 = COPY %2
|
|
...
|
|
|
|
---
|
|
|
|
name: test_merge_s1024_s512
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, $vgpr16_vgpr17_vgpr18_vgpr19_vgpr20_vgpr21_vgpr22_vgpr23_vgpr24_vgpr25_vgpr26_vgpr27_vgpr28_vgpr29_vgpr30_vgpr31
|
|
|
|
; CHECK-LABEL: name: test_merge_s1024_s512
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s512) = COPY $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s512) = COPY $vgpr16_vgpr17_vgpr18_vgpr19_vgpr20_vgpr21_vgpr22_vgpr23_vgpr24_vgpr25_vgpr26_vgpr27_vgpr28_vgpr29_vgpr30_vgpr31
|
|
; CHECK: [[MV:%[0-9]+]]:_(s1024) = G_MERGE_VALUES [[COPY]](s512), [[COPY1]](s512)
|
|
; CHECK: $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15_vgpr16_vgpr17_vgpr18_vgpr19_vgpr20_vgpr21_vgpr22_vgpr23_vgpr24_vgpr25_vgpr26_vgpr27_vgpr28_vgpr29_vgpr30_vgpr31 = COPY [[MV]](s1024)
|
|
%0:_(s512) = COPY $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15
|
|
%1:_(s512) = COPY $vgpr16_vgpr17_vgpr18_vgpr19_vgpr20_vgpr21_vgpr22_vgpr23_vgpr24_vgpr25_vgpr26_vgpr27_vgpr28_vgpr29_vgpr30_vgpr31
|
|
%2:_(s1024) = G_MERGE_VALUES %0, %1
|
|
$vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15_vgpr16_vgpr17_vgpr18_vgpr19_vgpr20_vgpr21_vgpr22_vgpr23_vgpr24_vgpr25_vgpr26_vgpr27_vgpr28_vgpr29_vgpr30_vgpr31 = COPY %2
|
|
|
|
...
|