This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [AVX]: More AVX updates


Hi Uros,

How about this patch?

Thanks.

H.J.
---

2008-05-23  H.J. Lu  <hongjiu.lu@intel.com>

        * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
        define.  Use ASM_OUTPUT_AVX_PREFIX.

        * config/i386/i386.c (print_operand): Check 'v'.

        * config/i386/i386.h (ASM_OUTPUT_AVX_PREFIX): New.
        (ASM_OUTPUT_OPCODE): Likewise.

        * config/i386/i386.md (*movdi_2_avx): New.
        (*movdf_nointeger): Support AVX.

On Fri, May 23, 2008 at 1:27 PM, Uros Bizjak <ubizjak@gmail.com> wrote:
> Hello!
>
>> I am checking this patch into AVX branch. Now we can generate
>> pure AVX codes for all intrinsics in 64bit.
>>  -  "cvtts<ssemodefsuffix>2si\t{%1, %0|%0, %1}"
>> +  "* return TARGET_AVX +            ? \"vcvtts<ssemodefsuffix>2si\t{%1,
>> %0|%0, %1}\"
>> +            :\"cvtts<ssemodefsuffix>2si\t{%1, %0|%0, %1}\";"
>>
>
> What do you think about adding "%v" asm directive, i.e.:
>
> "%vcvtts<ssemodefsuffix>2si\t{%1, %0|%0, %1}"
>
> and output 'v' in print_operand () function, depending on TARGET_AVX? This
> would simplify a lot of insn templates, probably even more when 'enabled'
> attribute is used.
>
> Uros.
>

Attachment: avx.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]