diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-11-17 09:45:35 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-11-17 09:45:35 +0000 |
commit | 55ec98614fceb3fd876c19c010603d24c559d175 (patch) | |
tree | babc7b76fe64b403a53a2ebff7f6d6b1b7d0e447 | |
parent | dec113c1f12a939c1899d22f8c32df9692fd12b3 (diff) | |
download | gcc-55ec98614fceb3fd876c19c010603d24c559d175.tar.gz |
PR target/68263
* config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
to 32 for IAMCU.
* config/i386/sse.md (*mov<mode>_internal): Always enable
AVX and SSE unaligned moves for IAMCU.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230456 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/config/i386/i386.h | 2 | ||||
-rw-r--r-- | gcc/config/i386/sse.md | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index 829c3f418b5..ceda4722db9 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -814,7 +814,7 @@ extern const char *host_detect_local_cpu (int argc, const char **argv); TARGET_ABSOLUTE_BIGGEST_ALIGNMENT. */ #define BIGGEST_ALIGNMENT \ - (TARGET_AVX512F ? 512 : (TARGET_AVX ? 256 : (TARGET_IAMCU ? 32 : 128))) + (TARGET_IAMCU ? 32 : (TARGET_AVX512F ? 512 : (TARGET_AVX ? 256 : 128))) /* Maximum stack alignment. */ #define MAX_STACK_ALIGNMENT MAX_OFILE_ALIGNMENT diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 71d78f77e88..e7b517aeb6c 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -892,30 +892,30 @@ case MODE_V16SF: case MODE_V8SF: case MODE_V4SF: - if (TARGET_AVX + if ((TARGET_AVX || TARGET_IAMCU) && (misaligned_operand (operands[0], <MODE>mode) || misaligned_operand (operands[1], <MODE>mode))) - return "vmovups\t{%1, %0|%0, %1}"; + return "%vmovups\t{%1, %0|%0, %1}"; else return "%vmovaps\t{%1, %0|%0, %1}"; case MODE_V8DF: case MODE_V4DF: case MODE_V2DF: - if (TARGET_AVX + if ((TARGET_AVX || TARGET_IAMCU) && (misaligned_operand (operands[0], <MODE>mode) || misaligned_operand (operands[1], <MODE>mode))) - return "vmovupd\t{%1, %0|%0, %1}"; + return "%vmovupd\t{%1, %0|%0, %1}"; else return "%vmovapd\t{%1, %0|%0, %1}"; case MODE_OI: case MODE_TI: - if (TARGET_AVX + if ((TARGET_AVX || TARGET_IAMCU) && (misaligned_operand (operands[0], <MODE>mode) || misaligned_operand (operands[1], <MODE>mode))) return TARGET_AVX512VL ? "vmovdqu64\t{%1, %0|%0, %1}" - : "vmovdqu\t{%1, %0|%0, %1}"; + : "%vmovdqu\t{%1, %0|%0, %1}"; else return TARGET_AVX512VL ? "vmovdqa64\t{%1, %0|%0, %1}" : "%vmovdqa\t{%1, %0|%0, %1}"; |