diff --git a/llvm/lib/Target/AMDGPU/GCNSubtarget.h b/llvm/lib/Target/AMDGPU/GCNSubtarget.h index 5dac0c5dd9bd7..79997cf7a6429 100644 --- a/llvm/lib/Target/AMDGPU/GCNSubtarget.h +++ b/llvm/lib/Target/AMDGPU/GCNSubtarget.h @@ -538,9 +538,7 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo, // Shift amount of a 64 bit shift cannot be a highest allocated register // if also at the end of the allocation block. - bool hasShift64HighRegBug() const { - return HasGFX90AInsts && !HasGFX940Insts; - } + bool hasShift64HighRegBug() const { return HasGFX90AInsts; } // Has one cycle hazard on transcendental instruction feeding a // non transcendental VALU. diff --git a/llvm/test/CodeGen/AMDGPU/hazard-shift64.mir b/llvm/test/CodeGen/AMDGPU/hazard-shift64.mir index 74c641bebb78b..d349a602c49eb 100644 --- a/llvm/test/CodeGen/AMDGPU/hazard-shift64.mir +++ b/llvm/test/CodeGen/AMDGPU/hazard-shift64.mir @@ -1,5 +1,7 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py # RUN: llc -mtriple=amdgcn -mcpu=gfx90a -verify-machineinstrs -run-pass post-RA-hazard-rec %s -o - | FileCheck -check-prefix=GCN %s +# RUN: llc -mtriple=amdgcn -mcpu=gfx942 -verify-machineinstrs -run-pass post-RA-hazard-rec %s -o - | FileCheck -check-prefix=GCN %s +# RUN: llc -mtriple=amdgcn -mcpu=gfx950 -verify-machineinstrs -run-pass post-RA-hazard-rec %s -o - | FileCheck -check-prefix=GCN %s --- name: highest_reg_shift_amt_v7