]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR target/80286 (AVX2 _mm_cvtsi128_si32 doesn't return a proper 32bits...
authorJakub Jelinek <jakub@redhat.com>
Tue, 30 May 2017 08:23:29 +0000 (10:23 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 30 May 2017 08:23:29 +0000 (10:23 +0200)
commit6bf1a10ca1c20d493c33ccf7849e60bf9a8cf038
treea2df9321ec604ce316f915fe77bb0e2afc392d79
parent43df5a7cc3dc7496cee74c5772d5b667f92d7662
backport: re PR target/80286 (AVX2 _mm_cvtsi128_si32 doesn't return a proper 32bits int)

Backported from mainline
2017-04-04  Jakub Jelinek  <jakub@redhat.com>

PR target/80286
* config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
int mode, convert_modes it to mode as unsigned, otherwise use
lowpart_subreg to mode rather than SImode.
* config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
Use DImode instead of SImode for the shift count operand.
* config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
Likewise.

* gcc.target/i386/avx-pr80286.c: New test.
* gcc.dg/pr80286.c: New test.

From-SVN: r248668
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/mmx.md
gcc/config/i386/sse.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr80286.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx-pr80286.c [new file with mode: 0644]