This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Vector Comparison patch
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: Richard Guenther <richard dot guenther at gmail dot com>
- Cc: Artem Shinkarov <artyom dot shinkaroff at gmail dot com>, Richard Henderson <rth at redhat dot com>, gcc-patches at gcc dot gnu dot org, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Thu, 8 Sep 2011 19:35:30 +0200
- Subject: Re: Vector Comparison patch
- References: <CABYV9SVekz5BkOpm42_ABnnPLNp3omCjWCt=1ebH=N=aBkmTMQ@mail.gmail.com> <CAFiYyc3ZEka=HNO63yzkP0wdHLTLbchHpFDAur2SoFGGCHjOEQ@mail.gmail.com> <CABYV9SVLJVvEeuK-bQ4t6ipBmNLtns5wjQiQAVqYL5t9Zfir7Q@mail.gmail.com> <CAFiYyc3RuMr4LrFY8XrPoetinSBXQgo63892kuq+LxUFSJtLqQ@mail.gmail.com> <CABYV9SW5QixOdKC+=WKfRrCp9e=jGBmNcw+9fuYNjOowOm0=3g@mail.gmail.com> <CABYV9SXu444+qJmXJDbR-nh-EpK-Ahu568U5f5sBa9B7C+z+bQ@mail.gmail.com> <CAFiYyc1y64uPKc7K3B0=5RW85Fmzgu3_NMOHWxzubedTL2oJBA@mail.gmail.com> <CABYV9SW-VK5XHuLFvXNYsFk1FhJFqRBtiz6ztSSNpNyhvxeECQ@mail.gmail.com> <CAFiYyc2k1BxC4=0O=fDxYCxLw8DDBuFqZOxhTk==DCQTzyqfEw@mail.gmail.com> <CABYV9SXJT6qx7Ln6dgDNmFWdZOVp_ueVU=SH0mhCsa9xMovKYA@mail.gmail.com> <CABYV9SUgzQNs78tsHAdumSacgi+9=1M=wLnFcdE319YvnuH71w@mail.gmail.com> <CAFiYyc2zWd7WikQ8X+5jdB9GUignVfk-N7BqbD4ggyo486S8ww@mail.gmail.com> <4E4D224F.1020206@redhat.com> <CABYV9SVn9OBiY-S2K0peSVmEOi_ZVNXn091yUcnj6K8q4homQA@mail.gmail.com> <CAFiYyc3rFjQPD69gUZynykYZvAEWjQ5ucz+6pkJYtC3jr9Mp-w@mail.gmail.com> <CABYV9SXotm+_4eOQTgZtAAx9JC_6EH=Pd_5tFYesKZNuuU+haw@mail.gmail.com> <CAFiYyc3b1tKoXvCbzW+1mpd1-bqB-4NnSJLodUXGuCAJMeET8A@mail.gmail.com> <CABYV9SWByyvdWo00G2jSROehUeJcux=3rTJVez2XHFL15g+Ewg@mail.gmail.com> <CAFiYyc1fqS_HRcna8JBFsx+pHHX6CAksaaUR4vvyMMZA0xhr4A@mail.gmail.com> <CABYV9SWrOWE4aDNrF69SMLWDeGe24+HG0n6-4=T8Mvw36uWW-g@mail.gmail.com> <CAFiYyc3T7tQLzMStnusWYaRFdBA3Whu+ttsyUyKw-2ZgvDD5zw@mail.gmail.com> <CABYV9SXhUVLwya=zpHN2J75rPfvhVt0sm3J=Qo1jts9MXMVz4w@mail.gmail.com> <CAFiYyc1F1_43DXHz8_JoL15-hfT9YZmwY3+zqJv4afwQp4gQ2A@mail.gmail.com> <CAFULd4bNzYBBjPrOiy0y59=35QGon0TSKBS_+WZJbWoFGh4gTg@mail.gmail.com> <CAFiYyc16spMBjvXrcekuV9EehvjKjmpv+n9gGteqYS=ZG8i8JA@mail.gmail.com> <CAFiYyc3A4DQE5010OqMcR_f4ngr+T+4CYHoO1k1kWMzNs4zugw@mail.gmail.com> <CABYV9SWThcvUPq7ivsGnznaka6d4SZaCK9-Bgg45wLHUJf-6nA@mail.gmail.com> <CAFiYyc1uzK1fOSRgpWkYco05bORKx8yugwFMYQBHbsGYX0Y5nw@mail.gmail.com> <CABYV9SWeQUE_gsXRS-pWzberO6gvq517Bi6ovU5Qrk0x_-2kHA@mail.gmail.com> <CAFiYyc1T4ePvC+2XC-e=x_GLrOLq939CN0-W73Bg6pFCgo_R5g@mail.gmail.com>
On Thu, Sep 8, 2011 at 2:41 PM, Richard Guenther
<richard.guenther@gmail.com> wrote:
>> All the rest is adjusted in the new version of the patch you can find
>> in the attachment.
>>
>> ChangLog
>>
>>
>> 20011-09-06 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
>>
>> ? ? ?gcc/
>> ? ? ?* expr.c (do_store_flag): Expand vector comparison by
>> ? ? ?building an appropriate VEC_COND_EXPR.
>> ? ? ?* c-typeck.c (build_binary_op): Typecheck vector comparisons.
>> ? ? ?(c_objc_common_truthvalue_conversion): Adjust.
>> ? ? ?* tree-vect-generic.c (do_compare): Helper function.
>> ? ? ?(expand_vector_comparison): Check if hardware supports
>> ? ? ?vector comparison of the given type or expand vector
>> ? ? ?piecewise.
>> ? ? ?(expand_vector_operation): Treat comparison as binary
>> ? ? ?operation of vector type.
>> ? ? ?(expand_vector_operations_1): Adjust.
>>
>> ? ? ?gcc/config/i386
>> ? ? ?* i386.c (ix86_expand_sse_movcc): Consider a case when
>> ? ? ?vcond operators are {-1,..} and {0,..}.
>>
>> ? ? ?gcc/doc
>> ? ? ?* extend.texi: Adjust.
>>
>> ? ? ?gcc/testsuite
>> ? ? ?* gcc.c-torture/execute/vector-compare-1.c: New test.
>> ? ? ?* gcc.c-torture/execute/vector-compare-2.c: New test.
>> ? ? ?* gcc.dg/vector-compare-1.c: New test.
>> ? ? ?* gcc.dg/vector-compare-2.c: New test.
>>
>> bootstrapped and tested on x86_64-unknown-linux-gnu.
The x86 part is OK.
Thanks,
Uros.