This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR target/66806: Don't pass/return vectors in registers for IAMCU
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 8 Jul 2015 13:49:16 +0200
- Subject: Re: [PATCH] PR target/66806: Don't pass/return vectors in registers for IAMCU
- Authentication-results: sourceware.org; auth=none
- References: <20150708114118 dot GA22923 at intel dot com>
On Wed, Jul 8, 2015 at 1:41 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> Vectors should be passed in memory for IAMCU.
>
> OK for trunk?
>
> H.J.
> ---
> gcc/
>
> PR target/66806
> * config/i386/i386.c (function_arg_advance_32): Don't pass
> vectors in registers for IAMCU.
> (function_arg_32): Likewise.
> (ix86_return_in_memory): Don't return vectors in registers for
> IAMCU.
>
> gcc/testsuite/
>
> PR target/66806
> * gcc.target/i386/pr66806.c: New test.
> +/* { dg-do compile { target ia32 } } */
> +/* { dg-options "-miamcu -mno-sse -mno-mmx -miamcu -Wno-psabi" } */
Double -miamcu.
Also, why Wno-psabi? We can check for the warning here, too.
Uros.