[llvm] r175887 - R600/SI: Add pattern for sign extension of i1 to i32.
Michel Danzer
michel.daenzer at amd.com
Fri Feb 22 03:22:58 PST 2013
Author: daenzer
Date: Fri Feb 22 05:22:58 2013
New Revision: 175887
URL: http://llvm.org/viewvc/llvm-project?rev=175887&view=rev
Log:
R600/SI: Add pattern for sign extension of i1 to i32.
16 more little piglits with radeonsi.
NOTE: This is a candidate for the Mesa stable branch.
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
Modified:
llvm/trunk/lib/Target/R600/SIInstructions.td
Modified: llvm/trunk/lib/Target/R600/SIInstructions.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SIInstructions.td?rev=175887&r1=175886&r2=175887&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SIInstructions.td (original)
+++ llvm/trunk/lib/Target/R600/SIInstructions.td Fri Feb 22 05:22:58 2013
@@ -1382,6 +1382,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 **********/
/********** ================== **********/
More information about the llvm-commits
mailing list