mips.c (mips16_build_call_stub): Zero-extend the low half of a single-register SCmode...
authorRichard Sandiford <rdsandiford@googlemail.com>
Sun, 18 Jul 2010 12:14:26 +0000 (12:14 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sun, 18 Jul 2010 12:14:26 +0000 (12:14 +0000)
commit93f63c6860c3238d4e0e4023989f04ba6b98f59c
tree3f135248859d1c57bf04783407c54fda6c437c99
parent0e789461b0a396ff57adb62b30901948ceeadfba
mips.c (mips16_build_call_stub): Zero-extend the low half of a single-register SCmode return value before ORing...

gcc/
* config/mips/mips.c (mips16_build_call_stub): Zero-extend the
low half of a single-register SCmode return value before ORing
it with the high half.
* config/mips/mips16.S (MERGE_GPRf): Likewise.

gcc/testsuite/
* gcc.target/mips/mips16-attributes-4.c: New test.

From-SVN: r162283
gcc/ChangeLog
gcc/config/mips/mips.c
gcc/config/mips/mips16.S
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/mips16-attributes-4.c [new file with mode: 0644]