[PATCH] D114700: AMDGPU/GlobalISel: Fix constant bus restriction errors for med3
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 30 03:52:16 PST 2021
foad added inline comments.
================
Comment at: llvm/test/CodeGen/AMDGPU/GlobalISel/regbankcombiner-smed3.mir:14
- ; CHECK-LABEL: name: test_min_max_ValK0_K1_i32
- ; CHECK: liveins: $vgpr0, $sgpr30_sgpr31
- ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
- ; CHECK: [[COPY1:%[0-9]+]]:sgpr_64 = COPY $sgpr30_sgpr31
- ; CHECK: [[C:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 -12
- ; CHECK: [[C1:%[0-9]+]]:sgpr(s32) = G_CONSTANT i32 17
- ; CHECK: [[AMDGPU_SMED3_:%[0-9]+]]:vgpr(s32) = G_AMDGPU_SMED3 [[COPY]], [[C]], [[C1]]
- ; CHECK: $vgpr0 = COPY [[AMDGPU_SMED3_]](s32)
- ; CHECK: [[COPY2:%[0-9]+]]:ccr_sgpr_64 = COPY [[COPY1]]
- ; CHECK: S_SETPC_B64_return [[COPY2]], implicit $vgpr0
+ ; GFX9-LABEL: name: test_min_max_ValK0_K1_i32
+ ; GFX9: liveins: $vgpr0, $sgpr30_sgpr31
----------------
What is the difference between GFX9 and GFX10 here? Can they use a common prefix?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114700/new/
https://reviews.llvm.org/D114700
More information about the llvm-commits
mailing list