]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
emit-rtl.c (gen_int_mode): New function.
authorLars Brinkhoff <lars@nocrew.org>
Sun, 19 May 2002 09:05:30 +0000 (09:05 +0000)
committerFranz Sirl <sirl@gcc.gnu.org>
Sun, 19 May 2002 09:05:30 +0000 (09:05 +0000)
2002-03-19  Lars Brinkhoff  <lars@nocrew.org>

* emit-rtl.c (gen_int_mode): New function.
* rtl.h: Prototype for it.

From-SVN: r53618

gcc/ChangeLog
gcc/emit-rtl.c
gcc/rtl.h

index fe91f29b98442f4fefb6bf0fbdfe0d53602cd261..a4aa495c2d9808869a67d6c855604e694888d0d5 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
+
+       * emit-rtl.c (gen_int_mode): New function.
+       * rtl.h: Prototype for it.
+
 Sat May 18 23:09:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
 
        * i386.md (pushqi2, ashrqi_*): Fix constraint.
index f6c676163185a165c2c2c473e282da6652048750..3b1ebdb1f45632cdd48e9bbd47e30bbb06712829 100644 (file)
@@ -355,6 +355,14 @@ gen_rtx_CONST_INT (mode, arg)
   return (rtx) *slot;
 }
 
+rtx
+gen_int_mode (c, mode)
+     HOST_WIDE_INT c;
+     enum machine_mode mode;
+{
+  return GEN_INT (trunc_int_for_mode (c, mode));
+}
+
 /* CONST_DOUBLEs needs special handling because their length is known
    only at run-time.  */
 
index b9a9f10833a9978a79cbf6d2ada16289a18bfe84..12f994bc63e3fe53dde5d3bb808635567f744f04 100644 (file)
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -1237,6 +1237,8 @@ extern rtx gen_rtx                        PARAMS ((enum rtx_code,
 extern rtvec gen_rtvec                 PARAMS ((int, ...));
 extern rtx copy_insn_1                 PARAMS ((rtx));
 extern rtx copy_insn                   PARAMS ((rtx));
+extern rtx gen_int_mode                        PARAMS ((HOST_WIDE_INT,
+                                                enum machine_mode));
 
 /* In rtl.c */
 extern rtx rtx_alloc                   PARAMS ((RTX_CODE));