sh.md (ic_invalidate_line): Make sure the immediate constant is a valid sign-extensio...
authorAlexandre Oliva <aoliva@redhat.com>
Sun, 3 Feb 2002 00:50:50 +0000 (00:50 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Sun, 3 Feb 2002 00:50:50 +0000 (00:50 +0000)
* config/sh/sh.md (ic_invalidate_line): Make sure the immediate
constant is a valid sign-extension for Pmode.

From-SVN: r49451

gcc/ChangeLog
gcc/config/sh/sh.md

index cde41956626d36a89bd902076cad27acaf3e3c63..0057ca74666ee9dff046d627ec4b50ea7027ae2c 100644 (file)
@@ -1,3 +1,8 @@
+2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
+
+       * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
+       constant is a valid sign-extension for Pmode.
+
 2002-02-02  Kazu Hirata  <kazu@hxi.com>
 
        * config/h8300/h8300.c: Fix formatting.
index 9b54d29e7ca610c607fa576b325e7547bbc6e027..24fbacc6e6acc03695c0c1f8c237892958eba5e9 100644 (file)
   "
 {
   operands[0] = force_reg (Pmode, operands[0]);
-  operands[1] = force_reg (Pmode, GEN_INT (0xf0000008));
+  operands[1] = force_reg (Pmode, GEN_INT (trunc_int_for_mode (0xf0000008,
+                                                              Pmode)));
 }")
 
 ;; The address %0 is assumed to be 4-aligned at least.  Thus, by ORing