predicates.md (jump_address_operand): Fix register mode check.
authorRichard Sandiford <richard.sandiford@linaro.org>
Thu, 24 Mar 2011 10:03:40 +0000 (10:03 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 24 Mar 2011 10:03:40 +0000 (10:03 +0000)
gcc/
* config/h8300/predicates.md (jump_address_operand): Fix register
mode check.

From-SVN: r171384

gcc/ChangeLog
gcc/config/h8300/predicates.md

index 5cd6e3def5dd61e54c927cdf96ebc20a63c9c3fe..907c83b5121776dd17fc61c91f42ba526399248d 100644 (file)
@@ -1,3 +1,8 @@
+2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
+
+       * config/h8300/predicates.md (jump_address_operand): Fix register
+       mode check.
+
 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
 
        * doc/invoke.texi (max-stores-to-sink): Document.
index 895698b8221c624358eecdf30e0f385dd882422d..d1b7d42d921a5ff670a086ae6e864fb7c98b6f24 100644 (file)
   (match_code "reg,mem")
 {
   if (GET_CODE (op) == REG)
-    return mode == Pmode;
+    return GET_MODE (op) == Pmode;
 
   if (GET_CODE (op) == MEM)
     {