Using gen_int_mode instead of GEN_INT to avoid ICE caused by type promotion.
authorliuhongt <hongtao.liu@intel.com>
Wed, 22 Jul 2020 06:37:24 +0000 (14:37 +0800)
committerliuhongt <hongtao.liu@intel.com>
Fri, 21 Aug 2020 16:53:20 +0000 (00:53 +0800)
commitc44c2a3b0559979e3694ee2ab6860ec95fa3068a
tree7ab66f51a2d240ecce88954c7619ef0303648643
parentb46584d7836bee011facdf946fd7241c748d66f0
Using gen_int_mode instead of GEN_INT to avoid ICE caused by type promotion.

2020-07-22  Hongtao Liu  <hongtao.liu@intel.com>

gcc/
PR target/96262
* config/i386/i386-expand.c
(ix86_expand_vec_shift_qihi_constant): Refine.

gcc/testsuite/
* gcc.target/i386/pr96262-1.c: New test.
gcc/config/i386/i386-expand.c
gcc/testsuite/gcc.target/i386/pr96262-1.c [new file with mode: 0644]