------- Comment #2 from rsandifo at gcc dot gnu dot org 2006-09-10 19:28 ------- Subject: Bug 29006
Author: rsandifo Date: Sun Sep 10 19:28:48 2006 New Revision: 116822 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116822 Log: gcc/ PR target/29006 * config/mips/mips-protos.h (mips_mem_fits_mode_p): Declare. * config/mips/mips.c (mips_expand_unaligned_store): Use the mode returned by mode_for_size, rather than the mode of src itself, to choose between 32-bit and 64-bit patterns. (mips_mem_fits_mode_p): New function. * config/mips/mips.md (mov_<load>l, mov_<load>r): Use it to check that the size of the source matches the size of the destination. (mov_<store>l, mov_<store>r): Likewise. gcc/testsuite/ PR target/29006 * gcc.c-torture/execute/pr29006.c: New test. Added: trunk/gcc/testsuite/gcc.c-torture/execute/pr29006.c Modified: trunk/gcc/ChangeLog trunk/gcc/config/mips/mips-protos.h trunk/gcc/config/mips/mips.c trunk/gcc/config/mips/mips.md trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29006