diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2016-05-14 15:22:45 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2016-05-14 15:22:45 +0200 |
commit | 3a65d8d709ae9c42d15dc258d34cb8ec4b9ea122 (patch) | |
tree | d87baf2946ff32137565c3fe846811ca09674f96 | |
parent | 377eaca734da58430ab9b37300f730e86ae8f04a (diff) | |
download | gcc-3a65d8d709ae9c42d15dc258d34cb8ec4b9ea122.zip gcc-3a65d8d709ae9c42d15dc258d34cb8ec4b9ea122.tar.gz gcc-3a65d8d709ae9c42d15dc258d34cb8ec4b9ea122.tar.bz2 |
re PR target/71097 (Additional testsuite failures with -mcmodel=medium)
PR target/71097
* config/i386/i386.md (*movtf_internal): Before register allocation,
do not allow FP constants for CM_MEDIUM memory model, allow only
standard FP constants for CM_LARGE and CM_LARGE_PIC models.
(*movxf_internal): Ditto.
(*movdf_internal): Ditto.
(*movsf_internal): Ditto.
From-SVN: r236240
-rw-r--r-- | gcc/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/config/i386/i386.md | 16 |
2 files changed, 18 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7178c7c..c0f78ed 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2016-05-14 Uros Bizjak <ubizjak@gmail.com> + + PR target/71097 + * config/i386/i386.md (*movtf_internal): Before register allocation, + do not allow FP constants for CM_MEDIUM memory model, allow only + standard FP constants for CM_LARGE and CM_LARGE_PIC models. + (*movxf_internal): Ditto. + (*movdf_internal): Ditto. + (*movsf_internal): Ditto. + 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org> PR rtl-optimization/67483 diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 02a0055..933faf8 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -3114,9 +3114,9 @@ "(TARGET_64BIT || TARGET_SSE) && !(MEM_P (operands[0]) && MEM_P (operands[1])) && (!can_create_pseudo_p () - || (ix86_cmodel == CM_MEDIUM || ix86_cmodel == CM_LARGE) || !CONST_DOUBLE_P (operands[1]) - || (optimize_function_for_size_p (cfun) + || ((optimize_function_for_size_p (cfun) + || (ix86_cmodel == CM_LARGE || ix86_cmodel == CM_LARGE_PIC)) && standard_sse_constant_p (operands[1], TFmode) == 1 && !memory_operand (operands[0], TFmode)) || (!TARGET_MEMORY_MISMATCH_STALL @@ -3200,9 +3200,9 @@ "fm,f,G,roF,r , *roF,*r,F ,C,roF,rF"))] "!(MEM_P (operands[0]) && MEM_P (operands[1])) && (!can_create_pseudo_p () - || (ix86_cmodel == CM_MEDIUM || ix86_cmodel == CM_LARGE) || !CONST_DOUBLE_P (operands[1]) - || (optimize_function_for_size_p (cfun) + || ((optimize_function_for_size_p (cfun) + || (ix86_cmodel == CM_LARGE || ix86_cmodel == CM_LARGE_PIC)) && standard_80387_constant_p (operands[1]) > 0 && !memory_operand (operands[0], XFmode)) || (!TARGET_MEMORY_MISMATCH_STALL @@ -3273,9 +3273,9 @@ "Yf*fm,Yf*f,G ,roF,r ,*roF,*r,F ,rm,rC,C ,F ,C,v,m,v,C ,*x,m ,*x,Yj,r ,roF,rF,rmF,rC"))] "!(MEM_P (operands[0]) && MEM_P (operands[1])) && (!can_create_pseudo_p () - || (ix86_cmodel == CM_MEDIUM || ix86_cmodel == CM_LARGE) || !CONST_DOUBLE_P (operands[1]) - || (optimize_function_for_size_p (cfun) + || ((optimize_function_for_size_p (cfun) + || (ix86_cmodel == CM_LARGE || ix86_cmodel == CM_LARGE_PIC)) && ((!(TARGET_SSE2 && TARGET_SSE_MATH) && standard_80387_constant_p (operands[1]) > 0) || (TARGET_SSE2 && TARGET_SSE_MATH @@ -3475,9 +3475,9 @@ "Yf*fm,Yf*f,G ,rmF,rF,C,v,m,v,Yj,r ,*y ,m ,*y,*Yn,r ,rmF,rF"))] "!(MEM_P (operands[0]) && MEM_P (operands[1])) && (!can_create_pseudo_p () - || (ix86_cmodel == CM_MEDIUM || ix86_cmodel == CM_LARGE) || !CONST_DOUBLE_P (operands[1]) - || (optimize_function_for_size_p (cfun) + || ((optimize_function_for_size_p (cfun) + || (ix86_cmodel == CM_LARGE || ix86_cmodel == CM_LARGE_PIC)) && ((!TARGET_SSE_MATH && standard_80387_constant_p (operands[1]) > 0) || (TARGET_SSE_MATH |