diff options
| author | Tom Stellard <tstellar@redhat.com> | 2018-06-22 00:44:29 +0000 | 
|---|---|---|
| committer | Tom Stellard <tstellar@redhat.com> | 2018-06-22 00:44:29 +0000 | 
| commit | 7712ee8891dc9b57c2a5e3f159a83dad63ee9f16 (patch) | |
| tree | d6eb48a793dbafb251a8d2790159244f6252f257 /llvm/test/CodeGen/AMDGPU | |
| parent | 0307d52bd7b28d562a286825624feac84a230455 (diff) | |
| download | bcm5719-llvm-7712ee8891dc9b57c2a5e3f159a83dad63ee9f16.tar.gz bcm5719-llvm-7712ee8891dc9b57c2a5e3f159a83dad63ee9f16.zip  | |
AMDGPU/GlobalISel: Implement select() for COPY
Reviewers: arsenm, nhaehnle
Reviewed By: nhaehnle
Subscribers: kzhuravl, wdng, yaxunl, rovka, kristof.beyls, dstuttard, tpr, t-tye, llvm-commits
Differential Revision: https://reviews.llvm.org/D46151
llvm-svn: 335315
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU')
| -rw-r--r-- | llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-copy.mir | 27 | 
1 files changed, 27 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-copy.mir b/llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-copy.mir new file mode 100644 index 00000000000..495acf63472 --- /dev/null +++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-copy.mir @@ -0,0 +1,27 @@ +# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py +# RUN: llc -march=amdgcn -run-pass=instruction-select -verify-machineinstrs -global-isel %s -o - | FileCheck %s -check-prefixes=GCN + +--- | +  define amdgpu_kernel void @copy(i32 addrspace(1)* %global0) {ret void} +... +--- + +name:            copy +legalized:       true +regBankSelected: true + + +body: | +  bb.0: +    liveins: $sgpr2_sgpr3 +    ; GCN-LABEL: name: copy +    ; GCN: [[COPY:%[0-9]+]]:sreg_64_xexec = COPY $sgpr2_sgpr3 +    ; GCN: [[COPY1:%[0-9]+]]:vreg_64 = COPY [[COPY]] +    ; GCN: [[DEF:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF +    ; GCN: FLAT_STORE_DWORD [[COPY1]], [[DEF]], 0, 0, 0, implicit $exec, implicit $flat_scr +    %0:sgpr(s64) = COPY $sgpr2_sgpr3 +    %1:vgpr(s64) = COPY %0 +    %2:vgpr(s32) = G_IMPLICIT_DEF +    G_STORE %2, %1 :: (store 4 into %ir.global0) +... +---  | 

