re PR target/80286 (AVX2 _mm_cvtsi128_si32 doesn't return a proper 32bits int)
authorJakub Jelinek <jakub@redhat.com>
Tue, 4 Apr 2017 10:45:55 +0000 (12:45 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 4 Apr 2017 10:45:55 +0000 (12:45 +0200)
commitb1fd967c2cfb38bdb42b986ca78deab2c2fc613e
tree51d717db4f65195f7d22e20b362c896df55b040d
parentc4060df4b1ae72421aa0da0fbb0acdc7af3b7c68
re PR target/80286 (AVX2 _mm_cvtsi128_si32 doesn't return a proper 32bits int)

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.
testsuite/
* gcc.target/i386/avx-pr80286.c: New test.
* gcc.dg/pr80286.c: New test.

From-SVN: r246676
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]