From 79dd1c976188865fb72b6883c86939edd340dc89 Mon Sep 17 00:00:00 2001 From: Michel Danzer Date: Fri, 22 Feb 2013 11:22:58 +0000 Subject: [PATCH] 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 llvm-svn: 175887 --- 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 2e43f9e5fdb..907cf49c6c3 100644 --- a/lib/Target/R600/SIInstructions.td +++ b/lib/Target/R600/SIInstructions.td @@ -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 **********/ /********** ================== **********/