diff options
author | zlomek <zlomek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-22 05:52:11 +0000 |
---|---|---|
committer | zlomek <zlomek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-22 05:52:11 +0000 |
commit | 98a0862274bfa202bdf32399af47737bd3e9a731 (patch) | |
tree | 6231371e6ded6f1ca895bfd9669278f19003ac94 | |
parent | 17a74abe326cf921d58ea60277de068d434f2903 (diff) | |
download | gcc-98a0862274bfa202bdf32399af47737bd3e9a731.tar.gz |
* config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
for copying a register.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63280 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/i386/i386.md | 20 |
2 files changed, 15 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 249d0f5ef2c..f52abfad2cf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-02-22 Josef Zlomek <zlomekj@suse.cz> + + * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG + for copying a register. + 2003-02-22 Steven Bosscher <s.bosscher@student.tudelft.nl> PR other/3782 diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 9449180367c..e6f1412ed18 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -9911,7 +9911,7 @@ [(parallel [(set (match_dup 0) (xor:SI (match_dup 0) (match_dup 1))) (clobber (reg:CC 17))])] "operands[1] = gen_int_mode (0x80000000, SImode); - operands[0] = gen_rtx_REG (SImode, REGNO (operands[0]));") + operands[0] = gen_lowpart (SImode, operands[0]);") (define_split [(set (match_operand 0 "memory_operand" "") @@ -10384,7 +10384,7 @@ [(parallel [(set (match_dup 0) (and:SI (match_dup 0) (match_dup 1))) (clobber (reg:CC 17))])] "operands[1] = gen_int_mode (~0x80000000, SImode); - operands[0] = gen_rtx_REG (SImode, REGNO (operands[0]));") + operands[0] = gen_lowpart (SImode, operands[0]);") (define_split [(set (match_operand 0 "memory_operand" "") @@ -13913,7 +13913,7 @@ (match_dup 2))] { operands[4] = gen_rtx_REG (GET_MODE (operands[0]), 17); - operands[5] = gen_rtx_REG (QImode, REGNO (operands[3])); + operands[5] = gen_lowpart (QImode, operands[3]); ix86_expand_clear (operands[3]); }) @@ -13935,7 +13935,7 @@ (match_dup 2))] { operands[4] = gen_rtx_REG (GET_MODE (operands[0]), 17); - operands[5] = gen_rtx_REG (QImode, REGNO (operands[3])); + operands[5] = gen_lowpart (QImode, operands[3]); ix86_expand_clear (operands[3]); }) @@ -17766,7 +17766,7 @@ [(parallel [(set (match_dup 2) (const_int 0)) (clobber (reg:CC 17))]) (set (match_dup 0) (match_dup 1))] - "operands[2] = gen_rtx_REG (SImode, true_regnum (operands[1]));") + "operands[2] = gen_lowpart (SImode, operands[1]);") (define_peephole2 [(match_scratch:QI 1 "q") @@ -17780,7 +17780,7 @@ [(parallel [(set (match_dup 2) (const_int 0)) (clobber (reg:CC 17))]) (set (match_dup 0) (match_dup 1))] - "operands[2] = gen_rtx_REG (SImode, true_regnum (operands[1]));") + "operands[2] = gen_lowpart (SImode, operands[1]);") (define_peephole2 [(match_scratch:SI 2 "r") @@ -18035,8 +18035,8 @@ && peep2_regno_dead_p (0, FLAGS_REG)" [(parallel [(set (match_dup 0) (const_int 0)) (clobber (reg:CC 17))])] - "operands[0] = gen_rtx_REG (GET_MODE (operands[0]) == DImode ? DImode : SImode, - true_regnum (operands[0]));") + "operands[0] = gen_lowpart (GET_MODE (operands[0]) == DImode ? DImode : SImode, + operands[0]);") (define_peephole2 [(set (strict_low_part (match_operand 0 "register_operand" "")) @@ -18059,8 +18059,8 @@ && peep2_regno_dead_p (0, FLAGS_REG)" [(parallel [(set (match_dup 0) (const_int -1)) (clobber (reg:CC 17))])] - "operands[0] = gen_rtx_REG (GET_MODE (operands[0]) == DImode ? DImode : SImode, - true_regnum (operands[0]));") + "operands[0] = gen_lowpart (GET_MODE (operands[0]) == DImode ? DImode : SImode, + operands[0]);") ;; Attempt to convert simple leas to adds. These can be created by ;; move expanders. |