diff options
author | Jan Hubicka <jh@suse.cz> | 2001-07-20 14:15:36 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2001-07-20 12:15:36 +0000 |
commit | d24b34579faee5c199302fbf30b9887c72ee405c (patch) | |
tree | d540254a6fa6c65889930a2ba3ee3e6597cd2ac2 | |
parent | bc8d3f9122da17fd715724c8e1102f0325cb5bae (diff) | |
download | gcc-d24b34579faee5c199302fbf30b9887c72ee405c.zip gcc-d24b34579faee5c199302fbf30b9887c72ee405c.tar.gz gcc-d24b34579faee5c199302fbf30b9887c72ee405c.tar.bz2 |
i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
* i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
* i386.c (ix86_zero_extend_to_Pmode): Make global.
* i386.md (strclrsi expander): Use it.
From-SVN: r44194
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/i386/i386-protos.h | 1 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 2 | ||||
-rw-r--r-- | gcc/config/i386/i386.md | 2 |
4 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 69fd683..656ad64 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Fri Jul 20 14:12:57 CEST 2001 Jan Hubicka <jh@suse.cz> + + * i386-protos.h (ix86_zero_extend_to_Pmode): Declare. + * i386.c (ix86_zero_extend_to_Pmode): Make global. + * i386.md (strclrsi expander): Use it. + Fri Jul 20 13:24:16 CEST 2001 Jan Hubicka <jh@suse.cz> * integrate.c (copy_insn_list): handle diff --git a/gcc/config/i386/i386-protos.h b/gcc/config/i386/i386-protos.h index e204834..5b9e979 100644 --- a/gcc/config/i386/i386-protos.h +++ b/gcc/config/i386/i386-protos.h @@ -119,6 +119,7 @@ extern int ix86_expand_setcc PARAMS ((enum rtx_code, rtx)); extern int ix86_expand_int_movcc PARAMS ((rtx[])); extern int ix86_expand_fp_movcc PARAMS ((rtx[])); extern void x86_initialize_trampoline PARAMS ((rtx, rtx, rtx)); +extern rtx ix86_zero_extend_to_Pmode PARAMS ((rtx)); extern void ix86_split_long_move PARAMS ((rtx[])); extern void ix86_split_ashldi PARAMS ((rtx *, rtx)); extern void ix86_split_ashrdi PARAMS ((rtx *, rtx)); diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index dcafe01..27512cf 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -7463,7 +7463,7 @@ ix86_adjust_counter (countreg, value) } /* Zero extend possibly SImode EXP to Pmode register. */ -static rtx +rtx ix86_zero_extend_to_Pmode (exp) rtx exp; { diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 56158b9..d2ff08b 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -15197,7 +15197,7 @@ addr2 = copy_to_mode_reg (Pmode, XEXP (operands[2], 0)); count = operands[3]; - countreg = copy_to_mode_reg (Pmode, count); + countreg = ix86_zero_extend_to_Pmode (count); /* %%% Iff we are testing strict equality, we can use known alignment to good advantage. This may be possible with combine, particularly |