Patchwork PATCH: Add V8SI and V4DI to ssescalarmodesuffix

login
register
mail settings
Submitter H.J. Lu
Date Oct. 21, 2010, 5:15 a.m.
Message ID <20101021051552.GA20291@intel.com>
Download mbox | patch
Permalink /patch/68519/
State New
Headers show

Comments

H.J. Lu - Oct. 21, 2010, 5:15 a.m.
In gcc build directory,

[hjl@gnu-6 gcc]$ grep ssescalarmodesuffix *.c
insn-output.c:  "vbroadcast<ssescalarmodesuffix>\t{%1, %0|%0, %1}",
insn-output.c:  "vbroadcast<ssescalarmodesuffix>\t{%1, %0|%0, %1}",
[hjl@gnu-6 gcc]$ 

This patch fixes it.  OK for trunk?

Thanks.


H.J.
---
2010-10-20  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
Uros Bizjak - Oct. 21, 2010, 10:24 a.m.
On Thu, Oct 21, 2010 at 7:15 AM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> In gcc build directory,
>
> [hjl@gnu-6 gcc]$ grep ssescalarmodesuffix *.c
> insn-output.c:  "vbroadcast<ssescalarmodesuffix>\t{%1, %0|%0, %1}",
> insn-output.c:  "vbroadcast<ssescalarmodesuffix>\t{%1, %0|%0, %1}",
> [hjl@gnu-6 gcc]$
>
> This patch fixes it.  OK for trunk?
>
> Thanks.
>
>
> H.J.
> ---
> 2010-10-20  H.J. Lu  <hongjiu.lu@intel.com>
>
>        * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.

OK.

Thanks,
Uros.

Patch

diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md
index 283eee8..64622b2 100644
--- a/gcc/config/i386/sse.md
+++ b/gcc/config/i386/sse.md
@@ -117,8 +117,8 @@ 
   [(SF "ss") (DF "sd") (V4SF "ps") (V2DF "pd") (V8SF "ps") (V4DF "pd")
    (V8SI "ps") (V4DI "pd")])
 (define_mode_attr ssescalarmodesuffix 
-  [(SF "ss") (DF "sd") (V4SF "ss") (V2DF "sd") (V8SF "ss") (V4DF "sd")
-   (V4SI "d")])
+  [(SF "ss") (DF "sd") (V4SF "ss") (V2DF "sd") (V8SF "ss") (V8SI "ss")
+   (V4DF "sd") (V4SI "d") (V4DI "sd")])
 
 ;; Mapping of the max integer size for xop rotate immediate constraint
 (define_mode_attr sserotatemax [(V16QI "7") (V8HI "15") (V4SI "31") (V2DI "63")])