Commit 864962bd by Richard Henderson Committed by Richard Henderson

alpha.md (unaligned_extendhidi): Call gen_lowpart instead of hardcoding subregs…

alpha.md (unaligned_extendhidi): Call gen_lowpart instead of hardcoding subregs into the _be and _le patterns.

        * config/alpha/alpha.md (unaligned_extendhidi): Call gen_lowpart
        instead of hardcoding subregs into the _be and _le patterns.

From-SVN: r47852
parent c5997381
2001-12-10 Richard Henderson <rth@redhat.com>
* config/alpha/alpha.md (unaligned_extendhidi): Call gen_lowpart
instead of hardcoding subregs into the _be and _le patterns.
2001-12-10 Neil Booth <neil@daikokuya.demon.co.uk> 2001-12-10 Neil Booth <neil@daikokuya.demon.co.uk>
* c-lex.c, c-parse.in, c-typeck.c: Revert concatenation changes. * c-lex.c, c-parse.in, c-typeck.c: Revert concatenation changes.
......
...@@ -1806,10 +1806,10 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi" ...@@ -1806,10 +1806,10 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi"
(use (match_operand:DI 1 "address_operand" ""))] (use (match_operand:DI 1 "address_operand" ""))]
"" ""
{ {
if (WORDS_BIG_ENDIAN) operands[0] = gen_lowpart (DImode, operands[0]);
emit_insn (gen_unaligned_extendhidi_be (operands[0], operands[1])); emit_insn ((WORDS_BIG_ENDIAN
else ? gen_unaligned_extendhidi_be
emit_insn (gen_unaligned_extendhidi_le (operands[0], operands[1])); : gen_unaligned_extendhidi_le) (operands[0], operands[1]));
DONE; DONE;
}) })
...@@ -1824,7 +1824,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi" ...@@ -1824,7 +1824,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi"
(ashift:DI (ashift:DI
(and:DI (match_dup 2) (const_int 7)) (and:DI (match_dup 2) (const_int 7))
(const_int 3))))) (const_int 3)))))
(set (subreg:DI (match_operand:QI 0 "register_operand" "") 0) (set (match_operand:DI 0 "register_operand" "")
(ashiftrt:DI (match_dup 4) (const_int 48)))] (ashiftrt:DI (match_dup 4) (const_int 48)))]
"! WORDS_BIG_ENDIAN" "! WORDS_BIG_ENDIAN"
{ {
...@@ -1847,7 +1847,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi" ...@@ -1847,7 +1847,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi"
(plus:DI (match_dup 5) (const_int 1)) (plus:DI (match_dup 5) (const_int 1))
(const_int 7)) (const_int 7))
(const_int 3)))) (const_int 3))))
(set (subreg:DI (match_operand:QI 0 "register_operand" "") 0) (set (match_operand:DI 0 "register_operand" "")
(ashiftrt:DI (match_dup 6) (const_int 48)))] (ashiftrt:DI (match_dup 6) (const_int 48)))]
"WORDS_BIG_ENDIAN" "WORDS_BIG_ENDIAN"
{ {
......
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