• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -march=amdgcn -run-pass=instruction-select -verify-machineinstrs -global-isel %s -o - | FileCheck %s -check-prefixes=GCN
3
4--- |
5  define amdgpu_kernel void @copy(i32 addrspace(1)* %global0) {ret void}
6...
7---
8
9name:            copy
10legalized:       true
11regBankSelected: true
12
13
14body: |
15  bb.0:
16    liveins: $sgpr2_sgpr3
17    ; GCN-LABEL: name: copy
18    ; GCN: [[COPY:%[0-9]+]]:sreg_64_xexec = COPY $sgpr2_sgpr3
19    ; GCN: [[COPY1:%[0-9]+]]:vreg_64 = COPY [[COPY]]
20    ; GCN: [[DEF:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF
21    ; GCN: FLAT_STORE_DWORD [[COPY1]], [[DEF]], 0, 0, 0, implicit $exec, implicit $flat_scr
22    %0:sgpr(s64) = COPY $sgpr2_sgpr3
23    %1:vgpr(s64) = COPY %0
24    %2:vgpr(s32) = G_IMPLICIT_DEF
25    G_STORE %2, %1 :: (store 4 into %ir.global0)
26...
27---
28