diff mbox

[i386,AVX512,84/n] Add missing immediate checks.

Message ID 20141022122809.GE11644@msticlxl57.ims.intel.com
State New
Headers show

Commit Message

Kirill Yukhin Oct. 22, 2014, 12:28 p.m. UTC
Hello,
This tiny patch adds couple of missing immediate checks.

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_args_builtin): Handle
	avx_vpermilv4df_mask, avx_shufpd256_mask, avx_vpermilv2df_mask.

--
Thanks, K

Comments

Uros Bizjak Oct. 23, 2014, 5:53 p.m. UTC | #1
On Wed, Oct 22, 2014 at 2:28 PM, Kirill Yukhin <kirill.yukhin@gmail.com> wrote:
> Hello,
> This tiny patch adds couple of missing immediate checks.
>
> 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_args_builtin): Handle
>         avx_vpermilv4df_mask, avx_shufpd256_mask, avx_vpermilv2df_mask.

OK.

Thanks,
Uros.
diff mbox

Patch

diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 00e1992..510ca5b 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -36610,6 +36610,7 @@  ix86_expand_args_builtin (const struct builtin_description *d,
 	      case CODE_FOR_sse4_1_blendps:
 	      case CODE_FOR_avx_blendpd256:
 	      case CODE_FOR_avx_vpermilv4df:
+	      case CODE_FOR_avx_vpermilv4df_mask:
 	      case CODE_FOR_avx512f_getmantv8df_mask:
 	      case CODE_FOR_avx512f_getmantv16sf_mask:
 	      case CODE_FOR_avx512vl_getmantv8sf_mask:
@@ -36622,12 +36623,14 @@  ix86_expand_args_builtin (const struct builtin_description *d,
 	      case CODE_FOR_avx512dq_rangepv8sf_mask:
 	      case CODE_FOR_avx512dq_rangepv2df_mask:
 	      case CODE_FOR_avx512dq_rangepv4sf_mask:
+	      case CODE_FOR_avx_shufpd256_mask:
 		error ("the last argument must be a 4-bit immediate");
 		return const0_rtx;
 
 	      case CODE_FOR_sha1rnds4:
 	      case CODE_FOR_sse4_1_blendpd:
 	      case CODE_FOR_avx_vpermilv2df:
+	      case CODE_FOR_avx_vpermilv2df_mask:
 	      case CODE_FOR_xop_vpermil2v2df3:
 	      case CODE_FOR_xop_vpermil2v4sf3:
 	      case CODE_FOR_xop_vpermil2v4df3: