OSDN Git Service

PR target/27075
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Aug 2006 18:56:08 +0000 (18:56 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Aug 2006 18:56:08 +0000 (18:56 +0000)
        * config/rs6000/rs6000.c (print_operand): Only use e500 %y syntax
        for 8 byte objects.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116425 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 987e7c2..81bc0d7 100644 (file)
@@ -1,3 +1,9 @@
+2006-08-25  Alan Modra  <amodra@bigpond.net.au>
+
+       PR target/27075
+       * config/rs6000/rs6000.c (print_operand): Only use e500 %y syntax
+       for 8 byte objects.
+
 2006-08-25  J"orn Rennecke  <joern.rennecke@st.com>
 
        PR tree-optimization/16876
index 9bae3f8..780e905 100644 (file)
@@ -10789,7 +10789,8 @@ print_operand (FILE *file, rtx x, int code)
 
        tmp = XEXP (x, 0);
 
-       if (TARGET_E500)
+       /* Ugly hack because %y is overloaded.  */
+       if (TARGET_E500 && GET_MODE_SIZE (GET_MODE (x)) == 8)
          {
            /* Handle [reg].  */
            if (GET_CODE (tmp) == REG)