vsx.md (*vsx_extract_<mode>_load): Always match selection of 0th memory doubleword, regardless of endianness.

[gcc]

2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	* config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
	selection of 0th memory doubleword, regardless of endianness.

[gcc/testsuite]

2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	* gcc.target/powerpc/vsx-extract-1.c:  Test 0th doubleword
	regardless of endianness.

From-SVN: r214902
This commit is contained in:
Bill Schmidt 2014-09-04 14:27:45 +00:00 committed by William Schmidt
parent aad038845a
commit 2b3106ecef
4 changed files with 12 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
* config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
selection of 0th memory doubleword, regardless of endianness.
2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
* config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.

View File

@ -1835,7 +1835,7 @@
[(set (match_operand:<VS_scalar> 0 "register_operand" "=d,wv,wr")
(vec_select:<VS_scalar>
(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>mode)"
"@
lfd%U1%X1 %0,%1

View File

@ -1,3 +1,8 @@
2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
* gcc.target/powerpc/vsx-extract-1.c: Test 0th doubleword
regardless of endianness.
2014-09-02 Fritz Reese <Reese-Fritz@zai.com>
PR fortran/62174

View File

@ -7,10 +7,4 @@
#include <altivec.h>
#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); }