summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Danzer <michel.daenzer@amd.com>2013-02-22 11:22:58 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-02-27 17:11:08 +0000
commit16ca877f58007eb0d72ac145d96b98e9df6adfd9 (patch)
tree2b6b8c7299b28404f9d271272dbf39cd2b934f7b
parent7975e20428a2cf4ac7d2b206f98b46a23dc033a1 (diff)
R600/SI: Add pattern for sign extension of i1 to i32.mesa-9.1
16 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@175887 91177308-0d34-0410-b5e6-96231b3b80d8 (cherry picked from commit 890dc926808587a193d705b89163b5a0c64444d9)
-rw-r--r--lib/Target/R600/SIInstructions.td5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/R600/SIInstructions.td b/lib/Target/R600/SIInstructions.td
index c9c368a571c..3a9822aefb0 100644
--- a/lib/Target/R600/SIInstructions.td
+++ b/lib/Target/R600/SIInstructions.td
@@ -1417,6 +1417,11 @@ def : Pat <
0, 0, 0, 0), sub3)
>;
+def : Pat <
+ (i32 (sext (i1 SReg_64:$src0))),
+ (V_CNDMASK_B32_e64 (i32 0), (i32 -1), SReg_64:$src0)
+>;
+
/********** ================== **********/
/********** VOP3 Patterns **********/
/********** ================== **********/