mirror of
https://github.com/RPCS3/llvm.git
synced 2026-08-27 11:01:30 -04:00
45cd9c275c
SGPR_128 only includes the real allocatable SGPRs, and SReg_128 adds the additional non-allocatable TTMP registers. There's no point in allocating SReg_128 vregs. This shrinks the size of the classes regalloc needs to consider, which is usually good. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374284 91177308-0d34-0410-b5e6-96231b3b80d8
25 lines
920 B
YAML
25 lines
920 B
YAML
# RUN: llc -march=amdgcn -run-pass si-fold-operands -verify-machineinstrs %s -o - | FileCheck -check-prefix=GCN %s
|
|
|
|
# GCN-LABEL: name: fold-imm-copy
|
|
# GCN: [[SREG:%[0-9+]]]:sreg_32_xm0 = S_MOV_B32 65535
|
|
# GCN: V_AND_B32_e32 [[SREG]]
|
|
|
|
---
|
|
name: fold-imm-copy
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $sgpr0_sgpr1
|
|
%0:vgpr_32 = COPY $vgpr0
|
|
%1:sgpr_64 = COPY $sgpr0_sgpr1
|
|
%2:sgpr_128 = S_LOAD_DWORDX4_IMM %1, 9, 0, 0
|
|
%3:sreg_32_xm0 = S_MOV_B32 2
|
|
%4:vgpr_32 = V_LSHLREV_B32_e64 killed %3, %0, implicit $exec
|
|
%5:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
|
|
%6:vreg_64 = REG_SEQUENCE killed %4, %subreg.sub0, killed %5, %subreg.sub1
|
|
%7:vgpr_32 = BUFFER_LOAD_DWORD_ADDR64 %6, %2, 0, 4, 0, 0, 0, 0, 0, implicit $exec
|
|
%8:sreg_32_xm0 = S_MOV_B32 65535
|
|
%9:vgpr_32 = COPY %8
|
|
%10:vgpr_32 = V_AND_B32_e32 %7, %9, implicit $exec
|
|
...
|