[PATCH] D11170: AMDGPU: s_mulk_i32 does not set scc according to ISA doc

Matt Arsenault Matthew.Arsenault at amd.com
Mon Jul 13 17:27:36 PDT 2015


arsenm created this revision.
arsenm added a subscriber: llvm-commits.

http://reviews.llvm.org/D11170

Files:
  lib/Target/AMDGPU/SIInstructions.td

Index: lib/Target/AMDGPU/SIInstructions.td
===================================================================
--- lib/Target/AMDGPU/SIInstructions.td
+++ lib/Target/AMDGPU/SIInstructions.td
@@ -394,9 +394,12 @@
 defm S_CMPK_LE_U32 : SOPK_SCC <sopk<0x0e, 0x0d>, "s_cmpk_le_u32", []>;
 } // End isCompare = 1
 
-let Defs = [SCC], isCommutable = 1, DisableEncoding = "$src0",
+let isCommutable = 1, DisableEncoding = "$src0",
     Constraints = "$sdst = $src0" in {
-  defm S_ADDK_I32 : SOPK_32TIE <sopk<0x0f, 0x0e>, "s_addk_i32", []>;
+  let Defs = [SCC] in {
+    defm S_ADDK_I32 : SOPK_32TIE <sopk<0x0f, 0x0e>, "s_addk_i32", []>;
+  }
+
   defm S_MULK_I32 : SOPK_32TIE <sopk<0x10, 0x0f>, "s_mulk_i32", []>;
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11170.29633.patch
Type: text/x-patch
Size: 713 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150714/9fefb7b9/attachment.bin>


More information about the llvm-commits mailing list