aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-12-05 09:04:24 +0000
committerJakub Jelinek <jakub@redhat.com>2019-12-05 09:04:24 +0000
commitd31620cfb810da01c3fbcf7f245c95591652ec02 (patch)
tree2f34567f9dbfdbe07cd9a2ec30bf21acff543c87
parentefd364f96093cf82ad0192c9f23631077ca18c23 (diff)
PR target/92791
* config/i386/i386.md (movstrict<mode>): Move test for TARGET_PARTIAL_REG_STALL and not optimizing for size from expander's condition to the body - FAIL; in that case. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@278989 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/i386/i386.md5
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7f44667ab21..9bb76236d24 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2019-12-05 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/92791
+ * config/i386/i386.md (movstrict<mode>): Move test for
+ TARGET_PARTIAL_REG_STALL and not optimizing for size from
+ expander's condition to the body - FAIL; in that case.
+
2019-12-03 Martin Sebor <msebor@redhat.com>
PR middle-end/91582
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index 2d43992724f..66a6f200672 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -2801,10 +2801,11 @@
(define_expand "movstrict<mode>"
[(set (strict_low_part (match_operand:SWI12 0 "register_operand"))
(match_operand:SWI12 1 "general_operand"))]
- "!TARGET_PARTIAL_REG_STALL || optimize_function_for_size_p (cfun)"
+ ""
{
gcc_assert (SUBREG_P (operands[0]));
- if (GET_MODE_CLASS (GET_MODE (SUBREG_REG (operands[0]))) != MODE_INT)
+ if ((TARGET_PARTIAL_REG_STALL && optimize_function_for_speed_p (cfun))
+ || GET_MODE_CLASS (GET_MODE (SUBREG_REG (operands[0]))) != MODE_INT)
FAIL;
})