diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-11-14 22:32:49 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-11-14 22:32:49 +0000 |
commit | 5f59fe577485312a86debc48c7f310ea9265c201 (patch) | |
tree | 8f338c775c4f1d228e4f7b6d3e5adcde8c3d581c /lib/Target | |
parent | 41e1a18885b8ef29219b7102ad25cd480c4a3f55 (diff) | |
download | external_llvm-5f59fe577485312a86debc48c7f310ea9265c201.zip external_llvm-5f59fe577485312a86debc48c7f310ea9265c201.tar.gz external_llvm-5f59fe577485312a86debc48c7f310ea9265c201.tar.bz2 |
R600/SI: Specify S_ADDK/S_MULK set SCC and are commutable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194738 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/R600/SIInstructions.td | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Target/R600/SIInstructions.td b/lib/Target/R600/SIInstructions.td index fb9ae45..e10c040 100644 --- a/lib/Target/R600/SIInstructions.td +++ b/lib/Target/R600/SIInstructions.td @@ -128,8 +128,11 @@ def S_CMPK_LT_U32 : SOPK_32 <0x0000000d, "S_CMPK_LT_U32", []>; def S_CMPK_LE_U32 : SOPK_32 <0x0000000e, "S_CMPK_LE_U32", []>; } // End isCompare = 1 -def S_ADDK_I32 : SOPK_32 <0x0000000f, "S_ADDK_I32", []>; -def S_MULK_I32 : SOPK_32 <0x00000010, "S_MULK_I32", []>; +let Defs = [SCC], isCommutable = 1 in { + def S_ADDK_I32 : SOPK_32 <0x0000000f, "S_ADDK_I32", []>; + def S_MULK_I32 : SOPK_32 <0x00000010, "S_MULK_I32", []>; +} + //def S_CBRANCH_I_FORK : SOPK_ <0x00000011, "S_CBRANCH_I_FORK", []>; def S_GETREG_B32 : SOPK_32 <0x00000012, "S_GETREG_B32", []>; def S_SETREG_B32 : SOPK_32 <0x00000013, "S_SETREG_B32", []>; |