From: Bill Schmidt Date: Thu, 4 Sep 2014 14:27:45 +0000 (+0000) Subject: vsx.md (*vsx_extract__load): Always match selection of 0th memory doubleword... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b3106ecef35e73229cca4c82b0ccd1fb2225f51;p=gcc.git vsx.md (*vsx_extract__load): Always match selection of 0th memory doubleword, regardless of endianness. [gcc] 2014-09-04 Bill Schmidt * config/rs6000/vsx.md (*vsx_extract__load): Always match selection of 0th memory doubleword, regardless of endianness. [gcc/testsuite] 2014-09-04 Bill Schmidt * gcc.target/powerpc/vsx-extract-1.c: Test 0th doubleword regardless of endianness. From-SVN: r214902 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d341bff6e98..c6042b53fcc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-09-04 Bill Schmidt + + * config/rs6000/vsx.md (*vsx_extract__load): Always match + selection of 0th memory doubleword, regardless of endianness. + 2014-09-04 Jan-Benedict Glaw * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces. diff --git a/gcc/config/rs6000/vsx.md b/gcc/config/rs6000/vsx.md index 922471fe292..dc78a61a824 100644 --- a/gcc/config/rs6000/vsx.md +++ b/gcc/config/rs6000/vsx.md @@ -1835,7 +1835,7 @@ [(set (match_operand: 0 "register_operand" "=d,wv,wr") (vec_select: (match_operand:VSX_D 1 "memory_operand" "m,Z,m") - (parallel [(match_operand:QI 2 "vsx_scalar_64bit" "wD,wD,wD")])))] + (parallel [(const_int 0)])))] "VECTOR_MEM_VSX_P (mode)" "@ lfd%U1%X1 %0,%1 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1312e4ecf56..3143e320889 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-09-04 Bill Schmidt + + * gcc.target/powerpc/vsx-extract-1.c: Test 0th doubleword + regardless of endianness. + 2014-09-02 Fritz Reese PR fortran/62174 diff --git a/gcc/testsuite/gcc.target/powerpc/vsx-extract-1.c b/gcc/testsuite/gcc.target/powerpc/vsx-extract-1.c index e1f0ca8e887..c4e76e6ac0e 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsx-extract-1.c +++ b/gcc/testsuite/gcc.target/powerpc/vsx-extract-1.c @@ -7,10 +7,4 @@ #include -#if __LITTLE_ENDIAN__ -#define OFFSET 1 -#else -#define OFFSET 0 -#endif - -double get_value (vector double *p) { return vec_extract (*p, OFFSET); } +double get_value (vector double *p) { return vec_extract (*p, 0); }