<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#0078D7;margin:15pt;" align="Left">
[AMD Official Use Only - Internal Distribution Only]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
This was in the tabelgen shift? Tablegen should be fixed instead?<br>
</div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> llvm-commits <llvm-commits-bounces@lists.llvm.org> on behalf of Stanislav Mekhanoshin via llvm-commits <llvm-commits@lists.llvm.org><br>
<b>Sent:</b> Monday, June 15, 2020 5:21 PM<br>
<b>To:</b> llvm-commits@lists.llvm.org <llvm-commits@lists.llvm.org><br>
<b>Subject:</b> [llvm] 576fa5a - [AMDGPU] make ubsan happy with unsigned left shift</font>
<div class="PlainText"> <br>
<br>
Author: Stanislav Mekhanoshin<br>
Date: 2020-06-15T17:21:10-07:00<br>
New Revision: 576fa5a50c8509977835031d190f8906e1dbb075<br>
<br>
URL: <a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fllvm%2Fllvm-project%2Fcommit%2F576fa5a50c8509977835031d190f8906e1dbb075&amp;data=02%7C01%7CMatthew.Arsenault%40amd.com%7C8347580ea9c14e02566d08d8118b3468%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637278636882998969&amp;sdata=03WSLSu42FOTqFmGc%2FedlUjWr5X0QmQdPOb%2FDkmrULk%3D&amp;reserved=0">
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fllvm%2Fllvm-project%2Fcommit%2F576fa5a50c8509977835031d190f8906e1dbb075&amp;data=02%7C01%7CMatthew.Arsenault%40amd.com%7C8347580ea9c14e02566d08d8118b3468%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637278636882998969&amp;sdata=03WSLSu42FOTqFmGc%2FedlUjWr5X0QmQdPOb%2FDkmrULk%3D&amp;reserved=0</a><br>
DIFF: <a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fllvm%2Fllvm-project%2Fcommit%2F576fa5a50c8509977835031d190f8906e1dbb075.diff&amp;data=02%7C01%7CMatthew.Arsenault%40amd.com%7C8347580ea9c14e02566d08d8118b3468%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637278636883008962&amp;sdata=Y4UJC7EUNn1yiWrwNcXJ5idm1%2Bi%2B3BZRlzUULZ1wguE%3D&amp;reserved=0">
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fllvm%2Fllvm-project%2Fcommit%2F576fa5a50c8509977835031d190f8906e1dbb075.diff&amp;data=02%7C01%7CMatthew.Arsenault%40amd.com%7C8347580ea9c14e02566d08d8118b3468%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637278636883008962&amp;sdata=Y4UJC7EUNn1yiWrwNcXJ5idm1%2Bi%2B3BZRlzUULZ1wguE%3D&amp;reserved=0</a><br>
<br>
LOG: [AMDGPU] make ubsan happy with unsigned left shift<br>
<br>
Fixes UBSAN error after rG9ee272f13d88f090817235ef4f91e56bb2a153d6<br>
A trivial signed/unsigned shift.<br>
<br>
Added:<br>
<br>
<br>
Modified:<br>
    llvm/lib/Target/AMDGPU/SMInstructions.td<br>
<br>
Removed:<br>
<br>
<br>
<br>
################################################################################<br>
diff  --git a/llvm/lib/Target/AMDGPU/SMInstructions.td b/llvm/lib/Target/AMDGPU/SMInstructions.td<br>
index 252f191a2f66..df21c864ccad 100644<br>
--- a/llvm/lib/Target/AMDGPU/SMInstructions.td<br>
+++ b/llvm/lib/Target/AMDGPU/SMInstructions.td<br>
@@ -860,7 +860,7 @@ let OtherPredicates = [HasNoSMemTimeInst] in {<br>
 def : GCNPat <<br>
   (i64 (readcyclecounter)),<br>
   (REG_SEQUENCE SReg_64,<br>
-    (S_GETREG_B32 getHwRegImm<HWREG.SHADER_CYCLES, 0, -12>.ret), sub0,<br>
+    (S_GETREG_B32 -26595), sub0,<br>
     (S_MOV_B32 (i32 0)), sub1)<br>
 >;<br>
 } // let OtherPredicates = [HasNoSMemTimeInst]<br>
<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
llvm-commits@lists.llvm.org<br>
<a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.llvm.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fllvm-commits&amp;data=02%7C01%7CMatthew.Arsenault%40amd.com%7C8347580ea9c14e02566d08d8118b3468%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637278636883008962&amp;sdata=K4JiBEwIXLcAuBoYnoMN%2BiJ3t29BioFc5%2BC%2FUeW%2BYjg%3D&amp;reserved=0">https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.llvm.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fllvm-commits&amp;data=02%7C01%7CMatthew.Arsenault%40amd.com%7C8347580ea9c14e02566d08d8118b3468%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637278636883008962&amp;sdata=K4JiBEwIXLcAuBoYnoMN%2BiJ3t29BioFc5%2BC%2FUeW%2BYjg%3D&amp;reserved=0</a><br>
</div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt"></span></font></div>
</div>
</body>
</html>