OSDN Git Service

Use Pmode with stack_pointer_rtx
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Nov 2013 10:09:49 +0000 (10:09 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Nov 2013 10:09:49 +0000 (10:09 +0000)
Backport from mainline
PR target/59034
* config/i386/i386.md (push peepholer/splitter): Use Pmode
with stack_pointer_rtx.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@204503 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386.md

index e352f08..bd0277f 100644 (file)
@@ -1,3 +1,9 @@
+2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR target/59034
+       * config/i386/i386.md (push peepholer/splitter): Use Pmode
+       with stack_pointer_rtx.
+
 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
index bfcbb2e..f85f17a 100644 (file)
   split_double_mode (DImode, &operands[1], 1, &operands[2], &operands[3]);
 
   operands[1] = gen_lowpart (DImode, operands[2]);
   split_double_mode (DImode, &operands[1], 1, &operands[2], &operands[3]);
 
   operands[1] = gen_lowpart (DImode, operands[2]);
-  operands[2] = gen_rtx_MEM (SImode, gen_rtx_PLUS (DImode, stack_pointer_rtx,
+  operands[2] = gen_rtx_MEM (SImode, gen_rtx_PLUS (Pmode, stack_pointer_rtx,
                                                   GEN_INT (4)));
 })
 
                                                   GEN_INT (4)));
 })
 
   split_double_mode (DImode, &operands[1], 1, &operands[2], &operands[3]);
 
   operands[1] = gen_lowpart (DImode, operands[2]);
   split_double_mode (DImode, &operands[1], 1, &operands[2], &operands[3]);
 
   operands[1] = gen_lowpart (DImode, operands[2]);
-  operands[2] = gen_rtx_MEM (SImode, gen_rtx_PLUS (DImode, stack_pointer_rtx,
+  operands[2] = gen_rtx_MEM (SImode, gen_rtx_PLUS (Pmode, stack_pointer_rtx,
                                                   GEN_INT (4)));
 })
 
                                                   GEN_INT (4)));
 })