re PR target/66922 (wrong code for bit-field struct at -O1 and above on x86_64-linux...
authorUros Bizjak <ubizjak@gmail.com>
Sat, 18 Jul 2015 09:50:37 +0000 (11:50 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Sat, 18 Jul 2015 09:50:37 +0000 (11:50 +0200)
commitab22883b701867cefe872dcd6942ebdf2e84db32
tree7d4f831584734fe895030a29d6445f001e97afdb
parent49b8fe6c1a585edfeb5dd0f292e05a167f475f68
re PR target/66922 (wrong code for bit-field struct at -O1 and above on x86_64-linux-gnu)

PR target/66922
* config/i386/i386.c (ix86_expand_pextr): Reject extractions
from misaligned positions.
(ix86_expand_pinsr): Reject insertions to misaligned positions.

testsuite/ChangeLog:

PR target/66922
* gcc.target/i386/pr66922.c: New test.

From-SVN: r225980
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr66922.c [new file with mode: 0644]