summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Danzer <michel.daenzer@amd.com>2013-02-22 11:22:54 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-02-27 17:10:51 +0000
commit7975e20428a2cf4ac7d2b206f98b46a23dc033a1 (patch)
tree1935f18e1c2ebf76a573cb1e1bf65404658e7c95
parent9b28f1592b213e569e81a2d7c1e90b127e23a574 (diff)
R600/SI: Add pattern for logical or of i1 values.
24 more little piglits with radeonsi. NOTE: This is a candidate for the Mesa stable branch. Reviewed-by: Tom Stellard <thomas.stellard@amd.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175886 91177308-0d34-0410-b5e6-96231b3b80d8 (cherry picked from commit dd24703f95676c148171f2c0b8431b7c1baf6601)
-rw-r--r--lib/Target/R600/SIInstructions.td4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/R600/SIInstructions.td b/lib/Target/R600/SIInstructions.td
index 3e9a6bf9d6a..c9c368a571c 100644
--- a/lib/Target/R600/SIInstructions.td
+++ b/lib/Target/R600/SIInstructions.td
@@ -995,6 +995,10 @@ def : Pat <
def S_OR_B32 : SOP2_32 <0x00000010, "S_OR_B32", []>;
def S_OR_B64 : SOP2_64 <0x00000011, "S_OR_B64", []>;
+def : Pat <
+ (i1 (or SSrc_64:$src0, SSrc_64:$src1)),
+ (S_OR_B64 SSrc_64:$src0, SSrc_64:$src1)
+>;
def S_XOR_B32 : SOP2_32 <0x00000012, "S_XOR_B32", []>;
def S_XOR_B64 : SOP2_64 <0x00000013, "S_XOR_B64", []>;
def S_ANDN2_B32 : SOP2_32 <0x00000014, "S_ANDN2_B32", []>;