diff mbox

[i386,AVX512,77/n] Use blend for cond-set V32HI and V64QI.

Message ID 20141009150706.GB15093@msticlxl57.ims.intel.com
State New
Headers show

Commit Message

Kirill Yukhin Oct. 9, 2014, 3:07 p.m. UTC
Hello,
This patch extends movcc/vcond autogen.

Bootstrapped.
AVX-512* tests on top of patch-set all pass
under simulator.

Is it ok for trunk?

gcc/
	* config/i386/i386.c
	(ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
	(ix86_expand_int_vcond): Ditto.

--
Thanks, K

Comments

Uros Bizjak Oct. 9, 2014, 4:08 p.m. UTC | #1
On Thu, Oct 9, 2014 at 5:07 PM, Kirill Yukhin <kirill.yukhin@gmail.com> wrote:
> Hello,
> This patch extends movcc/vcond autogen.
>
> Bootstrapped.
> AVX-512* tests on top of patch-set all pass
> under simulator.
>
> Is it ok for trunk?
>
> gcc/
>         * config/i386/i386.c
>         (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
>         (ix86_expand_int_vcond): Ditto.

OK.

Thanks,
Uros.
diff mbox

Patch

diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 8a7853e..f86aa1b 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -21015,6 +21015,12 @@  ix86_expand_sse_movcc (rtx dest, rtx cmp, rtx op_true, rtx op_false)
 	    }
 	  break;
 
+	case V64QImode:
+	  gen = gen_avx512bw_blendmv64qi;
+	  break;
+	case V32HImode:
+	  gen = gen_avx512bw_blendmv32hi;
+	  break;
 	case V16SImode:
 	  gen = gen_avx512f_blendmv16si;
 	  break;
@@ -21331,6 +21337,8 @@  ix86_expand_int_vcond (rtx operands[])
 		}
 	      break;
 
+	    case V64QImode:
+	    case V32HImode:
 	    case V32QImode:
 	    case V16HImode:
 	    case V16QImode: