PR target/80286
commit6b4236b9779b293054f472f2eab946509d323abe
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Apr 2017 10:45:55 +0000 (4 10:45 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Apr 2017 10:45:55 +0000 (4 10:45 +0000)
tree51d717db4f65195f7d22e20b362c896df55b040d
parentcd34a2a4d2b4c3c0607f665e24eefba8988fd312
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246676 138bc75d-0d04-0410-961f-82ee72b054a4
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]