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: PATCH PR target/40834: [4.5 Regression] standard_sse_constant_opcode crash on x86 64


On 08/05/2009 08:01 PM, H.J. Lu wrote:

There is no single AVX instruction to generate 256bit all 1s. This patch
returns -3 on 256bit all 1s. OK for trunk?

This is what I have committed:


2009-08-06  Uros Bizjak <ubizjak@gmail.com>
        H.J. Lu <hongjiu.lu@intel.com>

    PR target/40957
    * config/i386/i386.c (standard_sse_mode_p): Remove.
    (standard_sse_constant_p): Return 2 for integer mode
    vector_all_ones_operand when SSE2 is enabled.
    (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
    (ix86_expand_vector_move): Do not check for negative values from
    standard_sse_constant_p.

testsuite/ChangeLog:

2009-08-06  Uros Bizjak <ubizjak@gmail.com>
        H.J. Lu <hongjiu.lu@intel.com>

    PR target/40957
    * gcc.target/i386/pr40957: New test.

Patch was bootstrapped and regression tested on x86_64-pc-linux-gnu {,-m32}.

Uros.

Attachment: p.diff.txt
Description: Text document


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