diff options
Diffstat (limited to 'sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S')
-rw-r--r-- | sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S b/sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S index c1ca9a5b89..b03c896acf 100644 --- a/sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S +++ b/sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.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] __isnan([f1] x) */ |