diff options
author | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2014-03-31 08:00:38 -0500 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2014-03-31 08:00:38 -0500 |
commit | 757d9dd5c3efa56fac75965abc014faaae7b7895 (patch) | |
tree | ce9ba1eeb3c3bb42716f669d9117ac5068e1663b /sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S | |
parent | 47c5adebd2c864a098c3af66e61e1147dc3cf0b4 (diff) | |
download | glibc-757d9dd5c3efa56fac75965abc014faaae7b7895.tar.gz glibc-757d9dd5c3efa56fac75965abc014faaae7b7895.tar.xz glibc-757d9dd5c3efa56fac75965abc014faaae7b7895.zip |
PowerPC: Fix little endian enconding for mfvsrd
This patch fixes the MFVSRD_R3_V1 macro that encodes 'mfvsrd r3,vs1' (to support old binutils) for little endian.
Diffstat (limited to 'sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S')
-rw-r--r-- | sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S b/sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S index 0e92af8d9f..d09b7fcef9 100644 --- a/sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S +++ b/sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S @@ -17,9 +17,14 @@ <http://www.gnu.org/licenses/>. */ #include <sysdep.h> +#include <endian.h> #include <math_ldbl_opt.h> +#if __BYTE_ORDER == __LITTLE_ENDIAN +#define MFVSRD_R3_V1 .byte 0x66,0x00,0x23,0x7c /* mfvsrd r3,vs1 */ +#else #define MFVSRD_R3_V1 .byte 0x7c,0x23,0x00,0x66 /* mfvsrd r3,vs1 */ +#endif /* int [r3] __isinf([fp1] x) */ |