Commit fa7ac0a2 by Anthony Green Committed by Anthony Green

Fix zero extension for moxie

From-SVN: r219116
parent 581be128
2014-12-30 Anthony Green <green@moxielogic.com>
* config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2):
Switch from define_insn_and_split to define_insn. Fix instruction
length.
2014-12-30 Uros Bizjak <ubizjak@gmail.com> 2014-12-30 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (ix86_legitimize_address): Declare * config/i386/i386.c (ix86_legitimize_address): Declare
...@@ -268,7 +268,7 @@ ...@@ -268,7 +268,7 @@
ldo.l %0, %1" ldo.l %0, %1"
[(set_attr "length" "2,2,6,2,6,2,6,4,4")]) [(set_attr "length" "2,2,6,2,6,2,6,4,4")])
(define_insn_and_split "zero_extendqisi2" (define_insn "zero_extendqisi2"
[(set (match_operand:SI 0 "register_operand" "=r,r,r,r") [(set (match_operand:SI 0 "register_operand" "=r,r,r,r")
(zero_extend:SI (match_operand:QI 1 "nonimmediate_operand" "r,W,A,B")))] (zero_extend:SI (match_operand:QI 1 "nonimmediate_operand" "r,W,A,B")))]
"" ""
...@@ -277,15 +277,9 @@ ...@@ -277,15 +277,9 @@
ld.b %0, %1 ld.b %0, %1
lda.b %0, %1 lda.b %0, %1
ldo.b %0, %1" ldo.b %0, %1"
"reload_completed" [(set_attr "length" "2,2,6,4")])
[(set (match_dup 2) (match_dup 1))
(set (match_dup 0) (zero_extend:SI (match_dup 2)))]
{
operands[2] = gen_lowpart (QImode, operands[0]);
}
[(set_attr "length" "2,2,6,6")])
(define_insn_and_split "zero_extendhisi2" (define_insn "zero_extendhisi2"
[(set (match_operand:SI 0 "register_operand" "=r,r,r,r") [(set (match_operand:SI 0 "register_operand" "=r,r,r,r")
(zero_extend:SI (match_operand:HI 1 "nonimmediate_operand" "r,W,A,B")))] (zero_extend:SI (match_operand:HI 1 "nonimmediate_operand" "r,W,A,B")))]
"" ""
...@@ -294,13 +288,7 @@ ...@@ -294,13 +288,7 @@
ld.s %0, %1 ld.s %0, %1
lda.s %0, %1 lda.s %0, %1
ldo.s %0, %1" ldo.s %0, %1"
"reload_completed" [(set_attr "length" "2,2,6,4")])
[(set (match_dup 2) (match_dup 1))
(set (match_dup 0) (zero_extend:SI (match_dup 2)))]
{
operands[2] = gen_lowpart (HImode, operands[0]);
}
[(set_attr "length" "2,2,6,6")])
(define_insn "extendqisi2" (define_insn "extendqisi2"
[(set (match_operand:SI 0 "register_operand" "=r") [(set (match_operand:SI 0 "register_operand" "=r")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment