* config/sh/sh.c (mova_p): Fix test for mova_const.
authorAlexandre Oliva <aoliva@redhat.com>
Sat, 13 Jan 2001 03:30:38 +0000 (03:30 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Sat, 13 Jan 2001 03:30:38 +0000 (03:30 +0000)
From-SVN: r38974

gcc/ChangeLog
gcc/config/sh/sh.c

index fe1a7463266651f291adf320b9cf077adca6a818..cb9b83535d09b92c7c7b3c0ed244859600160fd1 100644 (file)
@@ -1,3 +1,7 @@
+2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
+
+       * config/sh/sh.c (mova_p): Fix test for mova_const.
+
 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
 
         * fix-header.c (read_scan_file): Use cpp_get_callbacks and
index b73ab59bb3c529d4e4ca6d0d4c5e608d4230c597..1526d78f93001b8b8393da06384048d70dde954a 100644 (file)
@@ -2105,7 +2105,7 @@ mova_p (insn)
          && GET_CODE (SET_SRC (PATTERN (insn))) == UNSPEC
          && XINT (SET_SRC (PATTERN (insn)), 1) == UNSPEC_MOVA
          /* Don't match mova_const.  */
-         && XVECEXP (SET_SRC (PATTERN (insn)), 0, 0) == LABEL_REF);
+         && GET_CODE (XVECEXP (SET_SRC (PATTERN (insn)), 0, 0)) == LABEL_REF);
 }
 
 /* Find the last barrier from insn FROM which is close enough to hold the