re PR target/85667 (ms_abi rules aren't followed when returning short structs with...
authorLokesh Janghel <lokeshjanghel91@gmail.com>
Wed, 21 Nov 2018 20:09:56 +0000 (20:09 +0000)
committerUros Bizjak <uros@gcc.gnu.org>
Wed, 21 Nov 2018 20:09:56 +0000 (21:09 +0100)
commitc339a8985df1288e569d550a1f22f50399e998e8
treeb98c691600b53a83320b00fbc928f17524f942b6
parent99b5ace4696fa38118604cf80069c0c25f65c5ea
re PR target/85667 (ms_abi rules aren't followed when returning short structs with float values)

PR target/85667
* config/i386/i386.c (function_value_ms_64): Return AX_REG instead
of FIRST_SSE_REG for 4 or 8 byte modes.

testsuite/ChangeLog:

PR target/85667
* gcc.target/pr85667-1.c: New testcase.
* gcc.target/pr85667-2.c: New testcase.
* gcc.target/pr85667-3.c: New testcase.
* gcc.target/pr85667-4.c: New testcase.

From-SVN: r266355
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr85667-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr85667-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr85667-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr85667-4.c [new file with mode: 0644]