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]

PATCH: Correct shift for x86 *vec_extractv2di_1_sse2


DI is 8byte. To select the higher DI in V2DI, we need to shift by
8 byte, not 4. Tested on Linux/Intel64.


H.J.
---
2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/sse.md (*vec_extractv2di_1_sse2): Correct shift.

--- gcc/config/i386/sse.md.typo	2007-05-24 08:33:37.000000000 -0700
+++ gcc/config/i386/sse.md	2007-05-24 23:01:04.000000000 -0700
@@ -4532,7 +4532,7 @@
   "TARGET_SSE2 && !(MEM_P (operands[0]) && MEM_P (operands[1]))"
   "@
    movhps\t{%1, %0|%0, %1}
-   psrldq\t{$4, %0|%0, 4}
+   psrldq\t{$8, %0|%0, 8}
    movq\t{%H1, %0|%0, %H1}"
   [(set_attr "type" "ssemov,sseishft,ssemov")
    (set_attr "mode" "V2SF,TI,TI")])


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