diff options
author | Richard Sandiford <richard@codesourcery.com> | 2006-09-10 19:28:48 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2006-09-10 19:28:48 +0000 |
commit | 9226543b679c84014627a7bdec0503061b3af43d (patch) | |
tree | b9dc496a59b71728c2401746553b841ebcbcaa38 /gcc/builtins.c | |
parent | ca6f2eefa4d61ec714e0d63d39e9120ad1e72e66 (diff) | |
download | gcc-9226543b679c84014627a7bdec0503061b3af43d.zip gcc-9226543b679c84014627a7bdec0503061b3af43d.tar.gz gcc-9226543b679c84014627a7bdec0503061b3af43d.tar.bz2 |
re PR target/29006 (Incorrect zeroing of unaligned 64-bit fields on MIPS targets)
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.
From-SVN: r116822
Diffstat (limited to 'gcc/builtins.c')
0 files changed, 0 insertions, 0 deletions