Commit 2e271932 by Richard Henderson

alpha.md (divmodsi_internal_er): Generate lituse sequence number for the literal.

        * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
        sequence number for the literal.
        (divmoddi_internal_er): Likewise.

From-SVN: r49110
parent 7f7cfc73
<<<<<<< ChangeLog
* config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
sequence number for the literal.
(divmoddi_internal_er): Likewise.
2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org> 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
PR java/4972 PR java/4972
......
...@@ -1212,6 +1212,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi" ...@@ -1212,6 +1212,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi"
[(parallel [(set (match_dup 0) [(parallel [(set (match_dup 0)
(sign_extend:DI (match_dup 3))) (sign_extend:DI (match_dup 3)))
(use (match_dup 0)) (use (match_dup 0))
(use (match_dup 4))
(clobber (reg:DI 23)) (clobber (reg:DI 23))
(clobber (reg:DI 28))])] (clobber (reg:DI 28))])]
{ {
...@@ -1233,7 +1234,10 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi" ...@@ -1233,7 +1234,10 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi"
default: default:
abort (); abort ();
} }
emit_move_insn (operands[0], gen_rtx_SYMBOL_REF (DImode, str)); operands[4] = GEN_INT (alpha_next_sequence_number++);
emit_insn (gen_movdi_er_high_g (operands[0], pic_offset_table_rtx,
gen_rtx_SYMBOL_REF (DImode, str),
operands[4]));
} }
[(set_attr "type" "jsr") [(set_attr "type" "jsr")
(set_attr "length" "8")]) (set_attr "length" "8")])
...@@ -1244,10 +1248,11 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi" ...@@ -1244,10 +1248,11 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi"
[(match_operand:DI 1 "register_operand" "a") [(match_operand:DI 1 "register_operand" "a")
(match_operand:DI 2 "register_operand" "b")]))) (match_operand:DI 2 "register_operand" "b")])))
(use (match_operand:DI 4 "register_operand" "c")) (use (match_operand:DI 4 "register_operand" "c"))
(use (match_operand 5 "const_int_operand" ""))
(clobber (reg:DI 23)) (clobber (reg:DI 23))
(clobber (reg:DI 28))] (clobber (reg:DI 28))]
"TARGET_EXPLICIT_RELOCS && ! TARGET_ABI_OPEN_VMS" "TARGET_EXPLICIT_RELOCS && ! TARGET_ABI_OPEN_VMS"
"jsr $23,($27),__%E3" "jsr $23,($27),__%E3%J5"
[(set_attr "type" "jsr") [(set_attr "type" "jsr")
(set_attr "length" "4")]) (set_attr "length" "4")])
...@@ -1275,6 +1280,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi" ...@@ -1275,6 +1280,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi"
"&& reload_completed" "&& reload_completed"
[(parallel [(set (match_dup 0) (match_dup 3)) [(parallel [(set (match_dup 0) (match_dup 3))
(use (match_dup 0)) (use (match_dup 0))
(use (match_dup 4))
(clobber (reg:DI 23)) (clobber (reg:DI 23))
(clobber (reg:DI 28))])] (clobber (reg:DI 28))])]
{ {
...@@ -1296,7 +1302,10 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi" ...@@ -1296,7 +1302,10 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi"
default: default:
abort (); abort ();
} }
emit_move_insn (operands[0], gen_rtx_SYMBOL_REF (DImode, str)); operands[4] = GEN_INT (alpha_next_sequence_number++);
emit_insn (gen_movdi_er_high_g (operands[0], pic_offset_table_rtx,
gen_rtx_SYMBOL_REF (DImode, str),
operands[4]));
} }
[(set_attr "type" "jsr") [(set_attr "type" "jsr")
(set_attr "length" "8")]) (set_attr "length" "8")])
...@@ -1307,10 +1316,11 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi" ...@@ -1307,10 +1316,11 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi,itof,multi"
[(match_operand:DI 1 "register_operand" "a") [(match_operand:DI 1 "register_operand" "a")
(match_operand:DI 2 "register_operand" "b")])) (match_operand:DI 2 "register_operand" "b")]))
(use (match_operand:DI 4 "register_operand" "c")) (use (match_operand:DI 4 "register_operand" "c"))
(use (match_operand 5 "const_int_operand" ""))
(clobber (reg:DI 23)) (clobber (reg:DI 23))
(clobber (reg:DI 28))] (clobber (reg:DI 28))]
"TARGET_EXPLICIT_RELOCS && ! TARGET_ABI_OPEN_VMS" "TARGET_EXPLICIT_RELOCS && ! TARGET_ABI_OPEN_VMS"
"jsr $23,($27),__%E3" "jsr $23,($27),__%E3%J5"
[(set_attr "type" "jsr") [(set_attr "type" "jsr")
(set_attr "length" "4")]) (set_attr "length" "4")])
......
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