|
|
This fixes some missing braces in i386/sse.md.
Bootstrapped on i686-unknown-linux-gnu and verified that the
testcase is fixed.
Ok for 4.0 and mainline?
Thanks,
Richard.
:ADDPATCH i386:
2005-08-26 Richard Guenther <rguenther@xxxxxxxxxxx>
* config/i386/sse.md (sse2_movsd): Add missing closing
braces.
* gcc.target/i386/pr23575.c: New testcase.
Index: config/i386/sse.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/sse.md,v
retrieving revision 1.22
diff -c -3 -p -r1.22 sse.md
*** config/i386/sse.md 21 Jul 2005 19:59:09 -0000 1.22
--- config/i386/sse.md 26 Aug 2005 13:39:37 -0000
***************
*** 2265,2272 ****
movlpd\t{%2, %0|%0, %2}
movlpd\t{%2, %0|%0, %2}
shufpd\t{$2, %2, %0|%0, %2, 2}
! movhps\t{%H1, %0|%0, %H1
! movhps\t{%1, %H0|%H0, %1"
[(set_attr "type" "ssemov,ssemov,ssemov,sselog,ssemov,ssemov")
(set_attr "mode" "DF,V1DF,V1DF,V2DF,V1DF,V1DF")])
--- 2265,2272 ----
movlpd\t{%2, %0|%0, %2}
movlpd\t{%2, %0|%0, %2}
shufpd\t{$2, %2, %0|%0, %2, 2}
! movhps\t{%H1, %0|%0, %H1}
! movhps\t{%1, %H0|%H0, %1}"
[(set_attr "type" "ssemov,ssemov,ssemov,sselog,ssemov,ssemov")
(set_attr "mode" "DF,V1DF,V1DF,V2DF,V1DF,V1DF")])
/* { dg-do compile } */
/* { dg-options "-march=pentium4 -O2" } */
/* We used to ICE because of a bogous pattern. */
typedef double __v2df __attribute__ ((__vector_size__ (16)));
typedef __v2df __m128d;
static __inline __m128d __attribute__((__always_inline__)) _mm_set1_pd (double
__F) {
return __extension__ (__m128d){__F, __F};
}
static __inline __m128d __attribute__((__always_inline__)) _mm_move_sd (__m128d
__A, __m128d __B) {
return (__m128d) __builtin_ia32_movsd ((__v2df)__A, (__v2df)__B);
}
void g(__m128d b);
__m128d cross(__m128d tmp9)
{
__m128d t1 = _mm_set1_pd(1.0);
__m128d tmp10 = _mm_move_sd(t1, tmp9);
return tmp10;
}
|
|