[Mesa-dev] [PATCH 1/3] R600/SI: Add pattern for sign extension of i1 to i32.
Michel Dänzer
michel at daenzer.net
Wed Feb 13 09:54:45 PST 2013
From: Michel Dänzer <michel.daenzer at amd.com>
16 more little piglits with radeonsi.
NOTE: This is a candidate for the Mesa stable branch.
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
lib/Target/R600/SIInstructions.td | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/Target/R600/SIInstructions.td b/lib/Target/R600/SIInstructions.td
index d4f7b37..ad1eff7 100644
--- a/lib/Target/R600/SIInstructions.td
+++ b/lib/Target/R600/SIInstructions.td
@@ -1404,6 +1404,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 **********/
/********** ================== **********/
--
1.8.1.3
More information about the mesa-dev
mailing list