From: Lars Brinkhoff Date: Sun, 19 May 2002 09:05:30 +0000 (+0000) Subject: emit-rtl.c (gen_int_mode): New function. X-Git-Tag: releases/gcc-3.1.1~322 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3366297b1fe98d08adf9a550088ab876c5dcfbe6;p=thirdparty%2Fgcc.git emit-rtl.c (gen_int_mode): New function. 2002-03-19 Lars Brinkhoff * emit-rtl.c (gen_int_mode): New function. * rtl.h: Prototype for it. From-SVN: r53618 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fe91f29b9844..a4aa495c2d98 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-03-19 Lars Brinkhoff + + * emit-rtl.c (gen_int_mode): New function. + * rtl.h: Prototype for it. + Sat May 18 23:09:19 CEST 2002 Jan Hubicka * i386.md (pushqi2, ashrqi_*): Fix constraint. diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index f6c676163185..3b1ebdb1f456 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -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. */ diff --git a/gcc/rtl.h b/gcc/rtl.h index b9a9f10833a9..12f994bc63e3 100644 --- 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));