2017-06-21 02:32:42 +08:00
|
|
|
# RUN: llc -march=amdgcn -run-pass si-fix-sgpr-copies,si-fold-operands,dead-mi-elimination -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s
|
|
|
|
|
|
|
|
# Check that constant is in SGPR registers
|
|
|
|
|
|
|
|
# GCN-LABEL: {{^}}name: const_to_sgpr{{$}}
|
2017-10-25 02:04:54 +08:00
|
|
|
# GCN: %[[HI:[0-9]+]]:sreg_32_xm0 = S_MOV_B32 0
|
|
|
|
# GCN-NEXT: %[[LO:[0-9]+]]:sreg_32_xm0 = S_MOV_B32 1048576
|
2017-11-07 05:46:06 +08:00
|
|
|
# GCN-NEXT: %[[SGPR_PAIR:[0-9]+]]:sreg_64 = REG_SEQUENCE killed %[[LO]], %subreg.sub0, killed %[[HI]], %subreg.sub1
|
2018-02-01 06:04:26 +08:00
|
|
|
# GCN-NEXT: V_CMP_LT_U64_e64 killed %{{[0-9]+}}, %[[SGPR_PAIR]], implicit $exec
|
2017-06-21 02:32:42 +08:00
|
|
|
|
|
|
|
|
|
|
|
# GCN-LABEL: {{^}}name: const_to_sgpr_multiple_use{{$}}
|
2017-10-25 02:04:54 +08:00
|
|
|
# GCN: %[[HI:[0-9]+]]:sreg_32_xm0 = S_MOV_B32 0
|
|
|
|
# GCN-NEXT: %[[LO:[0-9]+]]:sreg_32_xm0 = S_MOV_B32 1048576
|
2017-11-07 05:46:06 +08:00
|
|
|
# GCN-NEXT: %[[SGPR_PAIR:[0-9]+]]:sreg_64 = REG_SEQUENCE killed %[[LO]], %subreg.sub0, killed %[[HI]], %subreg.sub1
|
2018-02-01 06:04:26 +08:00
|
|
|
# GCN-NEXT: V_CMP_LT_U64_e64 killed %{{[0-9]+}}, %[[SGPR_PAIR]], implicit $exec
|
|
|
|
# GCN-NEXT: V_CMP_LT_U64_e64 killed %{{[0-9]+}}, %[[SGPR_PAIR]], implicit $exec
|
2017-06-21 02:32:42 +08:00
|
|
|
|
|
|
|
# GCN-LABEL: {{^}}name: const_to_sgpr_subreg{{$}}
|
2017-11-07 05:46:06 +08:00
|
|
|
# GCN: %[[OP0:[0-9]+]]:vreg_64 = REG_SEQUENCE killed %{{[0-9]+}}, %subreg.sub0, killed %{{[0-9]+}}, %subreg.sub1
|
2018-02-01 06:04:26 +08:00
|
|
|
# GCN-NEXT: V_CMP_LT_U32_e64 killed %[[OP0]].sub0, 12, implicit $exec
|
2017-06-21 02:32:42 +08:00
|
|
|
|
|
|
|
--- |
|
|
|
|
define amdgpu_kernel void @const_to_sgpr(i32 addrspace(1)* nocapture %arg, i64 %id) {
|
|
|
|
bb:
|
|
|
|
br i1 undef, label %bb1, label %bb2
|
|
|
|
|
|
|
|
bb1: ; preds = %bb
|
|
|
|
br label %bb2
|
|
|
|
|
|
|
|
bb2: ; preds = %bb1, %bb
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define amdgpu_kernel void @const_to_sgpr_multiple_use(i32 addrspace(1)* nocapture %arg, i64 %id1, i64 %id2) {
|
|
|
|
bb:
|
|
|
|
br i1 undef, label %bb1, label %bb2
|
|
|
|
|
|
|
|
bb1: ; preds = %bb
|
|
|
|
br label %bb2
|
|
|
|
|
|
|
|
bb2: ; preds = %bb1, %bb
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define amdgpu_kernel void @const_to_sgpr_subreg(i32 addrspace(1)* nocapture %arg, i64 %id) {
|
|
|
|
bb:
|
|
|
|
br i1 undef, label %bb1, label %bb2
|
|
|
|
|
|
|
|
bb1: ; preds = %bb
|
|
|
|
br label %bb2
|
|
|
|
|
|
|
|
bb2: ; preds = %bb1, %bb
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
name: const_to_sgpr
|
|
|
|
alignment: 0
|
|
|
|
exposesReturnsTwice: false
|
|
|
|
legalized: false
|
|
|
|
regBankSelected: false
|
|
|
|
selected: false
|
|
|
|
tracksRegLiveness: true
|
|
|
|
registers:
|
|
|
|
- { id: 0, class: sreg_64 }
|
|
|
|
- { id: 1, class: sreg_64 }
|
|
|
|
- { id: 2, class: vgpr_32 }
|
|
|
|
- { id: 3, class: sgpr_64 }
|
|
|
|
- { id: 4, class: sreg_32_xm0 }
|
|
|
|
- { id: 5, class: sgpr_32 }
|
|
|
|
- { id: 6, class: sreg_64 }
|
|
|
|
- { id: 7, class: sreg_64_xexec }
|
|
|
|
- { id: 8, class: sreg_64_xexec }
|
|
|
|
- { id: 9, class: sreg_32 }
|
|
|
|
- { id: 10, class: sreg_64 }
|
|
|
|
- { id: 11, class: sreg_32_xm0 }
|
|
|
|
- { id: 12, class: sreg_32_xm0 }
|
|
|
|
- { id: 13, class: sreg_32_xm0 }
|
|
|
|
- { id: 14, class: sreg_32_xm0 }
|
|
|
|
- { id: 15, class: sreg_32_xm0 }
|
|
|
|
- { id: 16, class: sreg_32_xm0 }
|
|
|
|
- { id: 17, class: sreg_64 }
|
|
|
|
- { id: 18, class: sreg_32_xm0 }
|
|
|
|
- { id: 19, class: sreg_32_xm0 }
|
|
|
|
- { id: 20, class: sreg_64 }
|
|
|
|
- { id: 21, class: sreg_64 }
|
|
|
|
- { id: 22, class: vreg_64 }
|
|
|
|
- { id: 23, class: sreg_32_xm0 }
|
|
|
|
- { id: 24, class: sreg_64 }
|
|
|
|
- { id: 25, class: sreg_32_xm0 }
|
|
|
|
- { id: 26, class: sreg_32_xm0 }
|
|
|
|
- { id: 27, class: sgpr_64 }
|
|
|
|
- { id: 28, class: sgpr_128 }
|
|
|
|
- { id: 29, class: vgpr_32 }
|
|
|
|
- { id: 30, class: vreg_64 }
|
|
|
|
liveins:
|
2018-02-01 06:04:26 +08:00
|
|
|
- { reg: '$vgpr0', virtual-reg: '%2' }
|
|
|
|
- { reg: '$sgpr0_sgpr1', virtual-reg: '%3' }
|
2017-06-21 02:32:42 +08:00
|
|
|
body: |
|
|
|
|
bb.0.bb:
|
|
|
|
successors: %bb.1.bb1(0x40000000), %bb.2.bb2(0x40000000)
|
2018-02-01 06:04:26 +08:00
|
|
|
liveins: $vgpr0, $sgpr0_sgpr1
|
2017-06-21 02:32:42 +08:00
|
|
|
|
2018-02-01 06:04:26 +08:00
|
|
|
%3 = COPY $sgpr0_sgpr1
|
|
|
|
%2 = COPY $vgpr0
|
2017-06-21 02:32:42 +08:00
|
|
|
%7 = S_LOAD_DWORDX2_IMM %3, 9, 0
|
|
|
|
%8 = S_LOAD_DWORDX2_IMM %3, 11, 0
|
|
|
|
%6 = COPY %7
|
|
|
|
%9 = S_MOV_B32 0
|
2017-11-07 05:46:06 +08:00
|
|
|
%10 = REG_SEQUENCE %2, %subreg.sub0, killed %9, %subreg.sub1
|
2017-06-21 02:32:42 +08:00
|
|
|
%0 = COPY %10
|
|
|
|
%11 = COPY %10.sub0
|
|
|
|
%12 = COPY %10.sub1
|
|
|
|
%13 = COPY %8.sub0
|
|
|
|
%14 = COPY %8.sub1
|
2018-02-01 06:04:26 +08:00
|
|
|
%15 = S_ADD_U32 killed %11, killed %13, implicit-def $scc
|
|
|
|
%16 = S_ADDC_U32 killed %12, killed %14, implicit-def dead $scc, implicit $scc
|
2017-11-07 05:46:06 +08:00
|
|
|
%17 = REG_SEQUENCE killed %15, %subreg.sub0, killed %16, %subreg.sub1
|
2017-06-21 02:32:42 +08:00
|
|
|
%18 = S_MOV_B32 0
|
|
|
|
%19 = S_MOV_B32 1048576
|
2017-11-07 05:46:06 +08:00
|
|
|
%20 = REG_SEQUENCE killed %19, %subreg.sub0, killed %18, %subreg.sub1
|
2017-06-21 02:32:42 +08:00
|
|
|
%22 = COPY killed %20
|
2018-02-01 06:04:26 +08:00
|
|
|
%21 = V_CMP_LT_U64_e64 killed %17, %22, implicit $exec
|
|
|
|
%1 = SI_IF killed %21, %bb.2.bb2, implicit-def dead $exec, implicit-def dead $scc, implicit $exec
|
2017-06-21 02:32:42 +08:00
|
|
|
S_BRANCH %bb.1.bb1
|
|
|
|
|
|
|
|
bb.1.bb1:
|
|
|
|
successors: %bb.2.bb2(0x80000000)
|
|
|
|
|
|
|
|
%23 = S_MOV_B32 2
|
2018-02-01 06:04:26 +08:00
|
|
|
%24 = S_LSHL_B64 %0, killed %23, implicit-def dead $scc
|
2017-06-21 02:32:42 +08:00
|
|
|
%25 = S_MOV_B32 61440
|
|
|
|
%26 = S_MOV_B32 0
|
2017-11-07 05:46:06 +08:00
|
|
|
%27 = REG_SEQUENCE killed %26, %subreg.sub0, killed %25, %subreg.sub1
|
2017-06-21 02:32:42 +08:00
|
|
|
%28 = REG_SEQUENCE %6, 17, killed %27, 18
|
2018-02-01 06:04:26 +08:00
|
|
|
%29 = V_MOV_B32_e32 0, implicit $exec
|
2017-06-21 02:32:42 +08:00
|
|
|
%30 = COPY %24
|
2018-02-01 06:04:26 +08:00
|
|
|
BUFFER_STORE_DWORD_ADDR64 killed %29, killed %30, killed %28, 0, 0, 0, 0, 0, implicit $exec
|
2017-06-21 02:32:42 +08:00
|
|
|
|
|
|
|
bb.2.bb2:
|
2018-02-01 06:04:26 +08:00
|
|
|
SI_END_CF %1, implicit-def dead $exec, implicit-def dead $scc, implicit $exec
|
2017-06-21 02:32:42 +08:00
|
|
|
S_ENDPGM
|
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
name: const_to_sgpr_multiple_use
|
|
|
|
alignment: 0
|
|
|
|
exposesReturnsTwice: false
|
|
|
|
legalized: false
|
|
|
|
regBankSelected: false
|
|
|
|
selected: false
|
|
|
|
tracksRegLiveness: true
|
|
|
|
registers:
|
|
|
|
- { id: 0, class: sreg_64 }
|
|
|
|
- { id: 1, class: sreg_64 }
|
|
|
|
- { id: 2, class: vgpr_32 }
|
|
|
|
- { id: 3, class: sgpr_64 }
|
|
|
|
- { id: 4, class: sreg_32_xm0 }
|
|
|
|
- { id: 5, class: sgpr_32 }
|
|
|
|
- { id: 6, class: sreg_64 }
|
|
|
|
- { id: 7, class: sreg_64_xexec }
|
|
|
|
- { id: 8, class: sreg_64_xexec }
|
|
|
|
- { id: 9, class: sreg_64_xexec }
|
|
|
|
- { id: 10, class: sreg_32 }
|
|
|
|
- { id: 11, class: sreg_64 }
|
|
|
|
- { id: 12, class: sreg_32_xm0 }
|
|
|
|
- { id: 13, class: sreg_32_xm0 }
|
|
|
|
- { id: 14, class: sreg_32_xm0 }
|
|
|
|
- { id: 15, class: sreg_32_xm0 }
|
|
|
|
- { id: 16, class: sreg_32_xm0 }
|
|
|
|
- { id: 17, class: sreg_32_xm0 }
|
|
|
|
- { id: 18, class: sreg_64 }
|
|
|
|
- { id: 19, class: sreg_32_xm0 }
|
|
|
|
- { id: 20, class: sreg_32_xm0 }
|
|
|
|
- { id: 21, class: sreg_32_xm0 }
|
|
|
|
- { id: 22, class: sreg_32_xm0 }
|
|
|
|
- { id: 23, class: sreg_64 }
|
|
|
|
- { id: 24, class: sreg_32_xm0 }
|
|
|
|
- { id: 25, class: sreg_32_xm0 }
|
|
|
|
- { id: 26, class: sreg_64 }
|
|
|
|
- { id: 27, class: sreg_64 }
|
|
|
|
- { id: 28, class: vreg_64 }
|
|
|
|
- { id: 29, class: sreg_64 }
|
|
|
|
- { id: 30, class: vreg_64 }
|
|
|
|
- { id: 31, class: sreg_64 }
|
|
|
|
- { id: 32, class: sreg_32_xm0 }
|
|
|
|
- { id: 33, class: sreg_64 }
|
|
|
|
- { id: 34, class: sreg_32_xm0 }
|
|
|
|
- { id: 35, class: sreg_32_xm0 }
|
|
|
|
- { id: 36, class: sgpr_64 }
|
|
|
|
- { id: 37, class: sgpr_128 }
|
|
|
|
- { id: 38, class: vgpr_32 }
|
|
|
|
- { id: 39, class: vreg_64 }
|
|
|
|
liveins:
|
2018-02-01 06:04:26 +08:00
|
|
|
- { reg: '$vgpr0', virtual-reg: '%2' }
|
|
|
|
- { reg: '$sgpr0_sgpr1', virtual-reg: '%3' }
|
2017-06-21 02:32:42 +08:00
|
|
|
body: |
|
|
|
|
bb.0.bb:
|
|
|
|
successors: %bb.1.bb1(0x40000000), %bb.2.bb2(0x40000000)
|
2018-02-01 06:04:26 +08:00
|
|
|
liveins: $vgpr0, $sgpr0_sgpr1
|
2017-06-21 02:32:42 +08:00
|
|
|
|
2018-02-01 06:04:26 +08:00
|
|
|
%3 = COPY $sgpr0_sgpr1
|
|
|
|
%2 = COPY $vgpr0
|
2017-06-21 02:32:42 +08:00
|
|
|
%7 = S_LOAD_DWORDX2_IMM %3, 9, 0
|
|
|
|
%8 = S_LOAD_DWORDX2_IMM %3, 11, 0
|
|
|
|
%9 = S_LOAD_DWORDX2_IMM %3, 13, 0
|
|
|
|
%6 = COPY %7
|
|
|
|
%10 = S_MOV_B32 0
|
2017-11-07 05:46:06 +08:00
|
|
|
%11 = REG_SEQUENCE %2, %subreg.sub0, killed %10, %subreg.sub1
|
2017-06-21 02:32:42 +08:00
|
|
|
%0 = COPY %11
|
|
|
|
%12 = COPY %11.sub0
|
|
|
|
%13 = COPY %11.sub1
|
|
|
|
%14 = COPY %8.sub0
|
|
|
|
%15 = COPY %8.sub1
|
2018-02-01 06:04:26 +08:00
|
|
|
%16 = S_ADD_U32 %12, killed %14, implicit-def $scc
|
|
|
|
%17 = S_ADDC_U32 %13, killed %15, implicit-def dead $scc, implicit $scc
|
2017-11-07 05:46:06 +08:00
|
|
|
%18 = REG_SEQUENCE killed %16, %subreg.sub0, killed %17, %subreg.sub1
|
2017-06-21 02:32:42 +08:00
|
|
|
%19 = COPY %9.sub0
|
|
|
|
%20 = COPY %9.sub1
|
2018-02-01 06:04:26 +08:00
|
|
|
%21 = S_ADD_U32 %12, killed %19, implicit-def $scc
|
|
|
|
%22 = S_ADDC_U32 %13, killed %20, implicit-def dead $scc, implicit $scc
|
2017-11-07 05:46:06 +08:00
|
|
|
%23 = REG_SEQUENCE killed %21, %subreg.sub0, killed %22, %subreg.sub1
|
2017-06-21 02:32:42 +08:00
|
|
|
%24 = S_MOV_B32 0
|
|
|
|
%25 = S_MOV_B32 1048576
|
2017-11-07 05:46:06 +08:00
|
|
|
%26 = REG_SEQUENCE killed %25, %subreg.sub0, killed %24, %subreg.sub1
|
2017-06-21 02:32:42 +08:00
|
|
|
%28 = COPY %26
|
2018-02-01 06:04:26 +08:00
|
|
|
%27 = V_CMP_LT_U64_e64 killed %18, %28, implicit $exec
|
|
|
|
%29 = V_CMP_LT_U64_e64 killed %23, %28, implicit $exec
|
|
|
|
%31 = S_AND_B64 killed %27, killed %29, implicit-def dead $scc
|
|
|
|
%1 = SI_IF killed %31, %bb.2.bb2, implicit-def dead $exec, implicit-def dead $scc, implicit $exec
|
2017-06-21 02:32:42 +08:00
|
|
|
S_BRANCH %bb.1.bb1
|
|
|
|
|
|
|
|
bb.1.bb1:
|
|
|
|
successors: %bb.2.bb2(0x80000000)
|
|
|
|
|
|
|
|
%32 = S_MOV_B32 2
|
2018-02-01 06:04:26 +08:00
|
|
|
%33 = S_LSHL_B64 %0, killed %32, implicit-def dead $scc
|
2017-06-21 02:32:42 +08:00
|
|
|
%34 = S_MOV_B32 61440
|
|
|
|
%35 = S_MOV_B32 0
|
2017-11-07 05:46:06 +08:00
|
|
|
%36 = REG_SEQUENCE killed %35, %subreg.sub0, killed %34, %subreg.sub1
|
2017-06-21 02:32:42 +08:00
|
|
|
%37 = REG_SEQUENCE %6, 17, killed %36, 18
|
2018-02-01 06:04:26 +08:00
|
|
|
%38 = V_MOV_B32_e32 0, implicit $exec
|
2017-06-21 02:32:42 +08:00
|
|
|
%39 = COPY %33
|
2018-02-01 06:04:26 +08:00
|
|
|
BUFFER_STORE_DWORD_ADDR64 killed %38, killed %39, killed %37, 0, 0, 0, 0, 0, implicit $exec
|
2017-06-21 02:32:42 +08:00
|
|
|
|
|
|
|
bb.2.bb2:
|
2018-02-01 06:04:26 +08:00
|
|
|
SI_END_CF %1, implicit-def dead $exec, implicit-def dead $scc, implicit $exec
|
2017-06-21 02:32:42 +08:00
|
|
|
S_ENDPGM
|
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
name: const_to_sgpr_subreg
|
|
|
|
alignment: 0
|
|
|
|
exposesReturnsTwice: false
|
|
|
|
legalized: false
|
|
|
|
regBankSelected: false
|
|
|
|
selected: false
|
|
|
|
tracksRegLiveness: true
|
|
|
|
registers:
|
|
|
|
- { id: 0, class: sreg_64 }
|
|
|
|
- { id: 1, class: sreg_64 }
|
|
|
|
- { id: 2, class: vgpr_32 }
|
|
|
|
- { id: 3, class: sgpr_64 }
|
|
|
|
- { id: 4, class: sreg_32_xm0 }
|
|
|
|
- { id: 5, class: sgpr_32 }
|
|
|
|
- { id: 6, class: sreg_64 }
|
|
|
|
- { id: 7, class: sreg_64_xexec }
|
|
|
|
- { id: 8, class: sreg_64_xexec }
|
|
|
|
- { id: 9, class: sreg_32 }
|
|
|
|
- { id: 10, class: sreg_64 }
|
|
|
|
- { id: 11, class: sreg_32_xm0 }
|
|
|
|
- { id: 12, class: sreg_32_xm0 }
|
|
|
|
- { id: 13, class: sreg_32_xm0 }
|
|
|
|
- { id: 14, class: sreg_32_xm0 }
|
|
|
|
- { id: 15, class: sreg_32_xm0 }
|
|
|
|
- { id: 16, class: sreg_32_xm0 }
|
|
|
|
- { id: 17, class: sreg_64 }
|
|
|
|
- { id: 18, class: sreg_32_xm0 }
|
|
|
|
- { id: 19, class: sreg_32_xm0 }
|
|
|
|
- { id: 20, class: sreg_64 }
|
|
|
|
- { id: 21, class: sreg_64 }
|
|
|
|
- { id: 22, class: vgpr_32 }
|
|
|
|
- { id: 23, class: sreg_32_xm0 }
|
|
|
|
- { id: 24, class: sreg_64 }
|
|
|
|
- { id: 25, class: sreg_32_xm0 }
|
|
|
|
- { id: 26, class: sreg_32_xm0 }
|
|
|
|
- { id: 27, class: sgpr_64 }
|
|
|
|
- { id: 28, class: sgpr_128 }
|
|
|
|
- { id: 29, class: vgpr_32 }
|
|
|
|
- { id: 30, class: vreg_64 }
|
|
|
|
liveins:
|
2018-02-01 06:04:26 +08:00
|
|
|
- { reg: '$vgpr0', virtual-reg: '%2' }
|
|
|
|
- { reg: '$sgpr0_sgpr1', virtual-reg: '%3' }
|
2017-06-21 02:32:42 +08:00
|
|
|
body: |
|
|
|
|
bb.0.bb:
|
|
|
|
successors: %bb.1.bb1(0x40000000), %bb.2.bb2(0x40000000)
|
2018-02-01 06:04:26 +08:00
|
|
|
liveins: $vgpr0, $sgpr0_sgpr1
|
2017-06-21 02:32:42 +08:00
|
|
|
|
2018-02-01 06:04:26 +08:00
|
|
|
%3 = COPY $sgpr0_sgpr1
|
|
|
|
%2 = COPY $vgpr0
|
2017-06-21 02:32:42 +08:00
|
|
|
%7 = S_LOAD_DWORDX2_IMM %3, 9, 0
|
|
|
|
%8 = S_LOAD_DWORDX2_IMM %3, 11, 0
|
|
|
|
%6 = COPY %7
|
|
|
|
%9 = S_MOV_B32 0
|
2017-11-07 05:46:06 +08:00
|
|
|
%10 = REG_SEQUENCE %2, %subreg.sub0, killed %9, %subreg.sub1
|
2017-06-21 02:32:42 +08:00
|
|
|
%0 = COPY %10
|
|
|
|
%11 = COPY %10.sub0
|
|
|
|
%12 = COPY %10.sub1
|
|
|
|
%13 = COPY %8.sub0
|
|
|
|
%14 = COPY %8.sub1
|
2018-02-01 06:04:26 +08:00
|
|
|
%15 = S_ADD_U32 killed %11, killed %13, implicit-def $scc
|
|
|
|
%16 = S_ADDC_U32 killed %12, killed %14, implicit-def dead $scc, implicit $scc
|
2017-11-07 05:46:06 +08:00
|
|
|
%17 = REG_SEQUENCE killed %15, %subreg.sub0, killed %16, %subreg.sub1
|
2017-06-21 02:32:42 +08:00
|
|
|
%18 = S_MOV_B32 12
|
|
|
|
%19 = S_MOV_B32 1048576
|
2017-11-07 05:46:06 +08:00
|
|
|
%20 = REG_SEQUENCE killed %19, %subreg.sub0, killed %18, %subreg.sub1
|
2017-06-21 02:32:42 +08:00
|
|
|
%22 = COPY killed %20.sub1
|
2018-02-01 06:04:26 +08:00
|
|
|
%21 = V_CMP_LT_U32_e64 killed %17.sub0, %22, implicit $exec
|
|
|
|
%1 = SI_IF killed %21, %bb.2.bb2, implicit-def dead $exec, implicit-def dead $scc, implicit $exec
|
2017-06-21 02:32:42 +08:00
|
|
|
S_BRANCH %bb.1.bb1
|
|
|
|
|
|
|
|
bb.1.bb1:
|
|
|
|
successors: %bb.2.bb2(0x80000000)
|
|
|
|
|
|
|
|
%23 = S_MOV_B32 2
|
2018-02-01 06:04:26 +08:00
|
|
|
%24 = S_LSHL_B64 %0, killed %23, implicit-def dead $scc
|
2017-06-21 02:32:42 +08:00
|
|
|
%25 = S_MOV_B32 61440
|
|
|
|
%26 = S_MOV_B32 0
|
2017-11-07 05:46:06 +08:00
|
|
|
%27 = REG_SEQUENCE killed %26, %subreg.sub0, killed %25, %subreg.sub1
|
2017-06-21 02:32:42 +08:00
|
|
|
%28 = REG_SEQUENCE %6, 17, killed %27, 18
|
2018-02-01 06:04:26 +08:00
|
|
|
%29 = V_MOV_B32_e32 0, implicit $exec
|
2017-06-21 02:32:42 +08:00
|
|
|
%30 = COPY %24
|
2018-02-01 06:04:26 +08:00
|
|
|
BUFFER_STORE_DWORD_ADDR64 killed %29, killed %30, killed %28, 0, 0, 0, 0, 0, implicit $exec
|
2017-06-21 02:32:42 +08:00
|
|
|
|
|
|
|
bb.2.bb2:
|
2018-02-01 06:04:26 +08:00
|
|
|
SI_END_CF %1, implicit-def dead $exec, implicit-def dead $scc, implicit $exec
|
2017-06-21 02:32:42 +08:00
|
|
|
S_ENDPGM
|
|
|
|
|
|
|
|
...
|