This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] h8300.md: Use gen_int_mode.


Hi,

Attached is a patch to convert GEN_INT (trunc_int_for_mode (...)) to
gen_int_mode.

Tested on h8300 port.  Committed.

Kazu Hirata

2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>

	* config/h8300/h8300.md: Use gen_int_mode instead of
	GEN_INT (trunc_int_for_mode (...)).

Index: h8300.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.md,v
retrieving revision 1.229
diff -u -r1.229 h8300.md
--- h8300.md	6 Jul 2003 23:05:09 -0000	1.229
+++ h8300.md	7 Jul 2003 04:13:51 -0000
@@ -4491,7 +4491,7 @@
 		      (label_ref (match_dup 2))
 		      (pc)))]
   "operands[4] = gen_rtx_REG (QImode, REGNO (operands[0]));
-   operands[5] = GEN_INT (trunc_int_for_mode (INTVAL (operands[1]), QImode));")
+   operands[5] = gen_int_mode (INTVAL (operands[1]), QImode);")
 
 (define_peephole2
   [(set (match_operand:SI 0 "register_operand" "")
@@ -4515,7 +4515,7 @@
 		      (label_ref (match_dup 2))
 		      (pc)))]
   "operands[4] = gen_rtx_REG (QImode, REGNO (operands[0]));
-   operands[5] = GEN_INT (trunc_int_for_mode (INTVAL (operands[1]), QImode));")
+   operands[5] = gen_int_mode (INTVAL (operands[1]), QImode);")
 
 (define_peephole2
   [(set (match_operand:SI 0 "register_operand" "")
@@ -4539,7 +4539,7 @@
 		      (label_ref (match_dup 2))
 		      (pc)))]
   "operands[4] = gen_rtx_REG (HImode, REGNO (operands[0]));
-   operands[5] = GEN_INT (trunc_int_for_mode (INTVAL (operands[1]), HImode));")
+   operands[5] = gen_int_mode (INTVAL (operands[1]), HImode);")
 
 (define_peephole2
   [(set (match_operand:SI 0 "register_operand" "")
@@ -4570,5 +4570,5 @@
 		      (label_ref (match_dup 3))
 		      (pc)))]
   "operands[5] = gen_rtx_REG (QImode, REGNO (operands[0]));
-   operands[6] = GEN_INT (trunc_int_for_mode (INTVAL (operands[1]), QImode));
-   operands[7] = GEN_INT (trunc_int_for_mode (INTVAL (operands[2]), QImode));")
+   operands[6] = gen_int_mode (INTVAL (operands[1]), QImode);
+   operands[7] = gen_int_mode (INTVAL (operands[2]), QImode);")


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]