[AMDGPU] make ubsan happy with unsigned left shift

Fixes UBSAN error after rG9ee272f13d88f090817235ef4f91e56bb2a153d6
A trivial signed/unsigned shift.
This commit is contained in:
Stanislav Mekhanoshin 2020-06-15 16:57:33 -07:00
parent f8170d8715
commit 576fa5a50c
1 changed files with 1 additions and 1 deletions

View File

@ -860,7 +860,7 @@ let OtherPredicates = [HasNoSMemTimeInst] in {
def : GCNPat <
(i64 (readcyclecounter)),
(REG_SEQUENCE SReg_64,
(S_GETREG_B32 getHwRegImm<HWREG.SHADER_CYCLES, 0, -12>.ret), sub0,
(S_GETREG_B32 -26595), sub0,
(S_MOV_B32 (i32 0)), sub1)
>;
} // let OtherPredicates = [HasNoSMemTimeInst]