[llvm] cbe0c82 - AMDGPU/GlobalISel: Fix missing test for select of s64 scalar G_CTPOP
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 7 10:16:02 PST 2020
Author: Matt Arsenault
Date: 2020-02-07T13:15:48-05:00
New Revision: cbe0c8299e946e572870054cf21ccb7e86d90d03
URL: https://github.com/llvm/llvm-project/commit/cbe0c8299e946e572870054cf21ccb7e86d90d03
DIFF: https://github.com/llvm/llvm-project/commit/cbe0c8299e946e572870054cf21ccb7e86d90d03.diff
LOG: AMDGPU/GlobalISel: Fix missing test for select of s64 scalar G_CTPOP
Added:
Modified:
llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-ctpop.mir
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-ctpop.mir b/llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-ctpop.mir
index 5ca79a4d69ce..5c60cb487ef9 100644
--- a/llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-ctpop.mir
+++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-ctpop.mir
@@ -202,3 +202,23 @@ body: |
%3:vgpr(s32) = G_ADD %2, %1
S_ENDPGM 0, implicit %3
...
+
+---
+name: ctpop_s64_ss
+legalized: true
+regBankSelected: true
+tracksRegLiveness: true
+
+body: |
+ bb.0:
+ liveins: $sgpr0_sgpr1
+
+ ; CHECK-LABEL: name: ctpop_s64_ss
+ ; CHECK: liveins: $sgpr0_sgpr1
+ ; CHECK: [[COPY:%[0-9]+]]:sreg_64 = COPY $sgpr0_sgpr1
+ ; CHECK: [[S_BCNT1_I32_B64_:%[0-9]+]]:sreg_32 = S_BCNT1_I32_B64 [[COPY]], implicit-def $scc
+ ; CHECK: S_ENDPGM 0, implicit [[S_BCNT1_I32_B64_]]
+ %0:sgpr(s64) = COPY $sgpr0_sgpr1
+ %1:sgpr(s32) = G_CTPOP %0
+ S_ENDPGM 0, implicit %1
+...
More information about the llvm-commits
mailing list